<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Multiple definition errors when trying to migrate code from toolchain 1.7.1 to 1.9.1</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86525/multiple-definition-errors-when-trying-to-migrate-code-from-toolchain-1-7-1-to-1-9-1</link><description>It&amp;#39;s early in the build so it&amp;#39;s only building Zephyr and other low level drivers and it&amp;#39;s erroring due to &amp;quot;multiple definition&amp;quot; of the same function name. If I search for these function names, I can see many modules with the same name. I don&amp;#39;t run into</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 24 Jun 2023 09:20:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86525/multiple-definition-errors-when-trying-to-migrate-code-from-toolchain-1-7-1-to-1-9-1" /><item><title>RE: Multiple definition errors when trying to migrate code from toolchain 1.7.1 to 1.9.1</title><link>https://devzone.nordicsemi.com/thread/432796?ContentTypeID=1</link><pubDate>Sat, 24 Jun 2023 09:20:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c837fae-4601-46ad-85ca-29f8deee5efb</guid><dc:creator>mohamad</dc:creator><description>&lt;p&gt;thank u all guys that helping other to solve their problems, i have same problem but i can&amp;#39;t find&amp;nbsp;&lt;em&gt;nrf/subsys/spm/Kconfig i use vscode with nrfconnect extention i remove systick in device tree and other rtc and solved this problem for me hope worked for someone else too&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple definition errors when trying to migrate code from toolchain 1.7.1 to 1.9.1</title><link>https://devzone.nordicsemi.com/thread/364542?ContentTypeID=1</link><pubDate>Fri, 22 Apr 2022 19:44:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7958a945-bc50-4e87-ac28-f5c9ef454c84</guid><dc:creator>GameCodingNinja</dc:creator><description>&lt;p&gt;&lt;span&gt;Aleksa&amp;#39;s solution did work for me. I have not tried&amp;nbsp;Parthitce solution yet. Have not tried the&amp;nbsp;Hello World example.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple definition errors when trying to migrate code from toolchain 1.7.1 to 1.9.1</title><link>https://devzone.nordicsemi.com/thread/364485?ContentTypeID=1</link><pubDate>Fri, 22 Apr 2022 12:51:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:016883de-b3d2-42c6-b79a-ff7c0ea132a8</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello again, and&amp;nbsp;&lt;span&gt;thanks for your patience on this issue during the Easter vacation.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Did the solution presented by Aleksa and Parthitce work for you?&amp;nbsp;If not, I am still unable to reproduce the issue.&lt;/p&gt;
&lt;p&gt;Could you send me your project?&amp;nbsp;&lt;/p&gt;
[quote user="GameCodingNinja"]I did a test where I compiled an empty main() function with all my&amp;nbsp;&lt;span&gt;proj.conf settings commented out and my cmakelists.txt only referencing the main.c for compile and it still errored with &amp;quot;multiple definition&amp;quot;.&lt;/span&gt;[/quote]
&lt;p&gt;So this is also the case with eg. the basic Hello World example in 1.9.1 for you?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple definition errors when trying to migrate code from toolchain 1.7.1 to 1.9.1</title><link>https://devzone.nordicsemi.com/thread/363984?ContentTypeID=1</link><pubDate>Wed, 20 Apr 2022 14:09:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d01af88-a138-4aed-87c2-5ca20b4fc0e4</guid><dc:creator>parthitce</dc:creator><description>&lt;p&gt;I faced the same problem in my application software and managed to solve it today. Here is how&lt;/p&gt;
&lt;p&gt;- Compilation is failed for SPM, prj.conf for SPM build needs to be updated&lt;br /&gt;- Add `child_image/spm/prj.conf` in your application project&lt;br /&gt;- Make sure to have `CONFIG_CORTEX_M_SYSTICK=n` in it with all the basic configuration for spm (you can find the nrf-sdk mainline repo a sample prj,conf for spm)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple definition errors when trying to migrate code from toolchain 1.7.1 to 1.9.1</title><link>https://devzone.nordicsemi.com/thread/363192?ContentTypeID=1</link><pubDate>Wed, 13 Apr 2022 12:33:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9c0458b-a834-4e47-b7e3-b23590571580</guid><dc:creator>GameCodingNinja</dc:creator><description>&lt;p&gt;Your above&amp;nbsp;fix did&amp;nbsp;allow me to get past the point that would otherwise error. Now I would have to fix my code due to changes in 1.9.1 vs 1.7.1. Awesome!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple definition errors when trying to migrate code from toolchain 1.7.1 to 1.9.1</title><link>https://devzone.nordicsemi.com/thread/362982?ContentTypeID=1</link><pubDate>Tue, 12 Apr 2022 09:58:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3189f9ea-09fb-476b-a7a3-f093a8d1d673</guid><dc:creator>John</dc:creator><description>&lt;p&gt;I have the same problem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple definition errors when trying to migrate code from toolchain 1.7.1 to 1.9.1</title><link>https://devzone.nordicsemi.com/thread/362633?ContentTypeID=1</link><pubDate>Fri, 08 Apr 2022 13:41:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c1dde4e-ae6b-47a4-b508-d8b99c26fbcc</guid><dc:creator>GameCodingNinja</dc:creator><description>&lt;p&gt;Thank you for debugging this! I&amp;#39;m still cutting my teeth on Zephyr and wouldn&amp;#39;t have even known to look there. I&amp;#39;ve been unclear as to the roll of the Kconfig file but this has shed some light on the subject.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll give this a try and report back.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple definition errors when trying to migrate code from toolchain 1.7.1 to 1.9.1</title><link>https://devzone.nordicsemi.com/thread/362630?ContentTypeID=1</link><pubDate>Fri, 08 Apr 2022 13:30:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7549500a-f29d-4a64-a7d4-71aaa2dc4933</guid><dc:creator>Aleksa</dc:creator><description>&lt;p&gt;I&amp;#39;ve done it directly in he nrf/subsys/spm/Kconfig. But it&amp;#39;s not an optimal solution unless you make your own fork of the nrf repo. Even then, this is just a temporary fix.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple definition errors when trying to migrate code from toolchain 1.7.1 to 1.9.1</title><link>https://devzone.nordicsemi.com/thread/362622?ContentTypeID=1</link><pubDate>Fri, 08 Apr 2022 13:13:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1fb75061-b8f8-4410-b611-a0e07c016acd</guid><dc:creator>GameCodingNinja</dc:creator><description>&lt;p&gt;Is the local Kconfig file how you would override settings in the Kconfig in&amp;nbsp;&lt;em&gt;nrf/subsys/spm?&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple definition errors when trying to migrate code from toolchain 1.7.1 to 1.9.1</title><link>https://devzone.nordicsemi.com/thread/362529?ContentTypeID=1</link><pubDate>Fri, 08 Apr 2022 09:05:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb03eeaf-2c97-4984-ae6b-c444c759f7d4</guid><dc:creator>Aleksa</dc:creator><description>&lt;p&gt;I am not sure about that. Obviously these two definitions shouldn&amp;#39;t be allowed to be active at the same time.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;File &lt;em&gt;nrf/subsys/spm/Kconfig&lt;/em&gt; has been changed between ncs v1.6.1(from which I&amp;#39;m migrating) and v1.9.1.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;When I build any of your samples, and&amp;nbsp;I check &lt;em&gt;libdrivers__timer.a&lt;/em&gt; for symbols, I find that&amp;nbsp; these three functions are all defined in &lt;em&gt;nrf_rtc_timer.c&lt;/em&gt;. Which means that in our case, &lt;em&gt;cortex_m_systick.c&lt;/em&gt; shouldn&amp;#39;t be&amp;nbsp;built as a part of&amp;nbsp;this library. Obviously the two CONFIGs are the issue.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;What I&amp;#39;ve done as a workaround for now is to edit &lt;em&gt;nrf/subsys/spm/Kconfig,&amp;nbsp;&lt;/em&gt;so that the CORTEX_M_SYSTICK works like this:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;config CORTEX_M_SYSTICK
	default n if NRF_RTC_TIMER
	default y if SPM_NRF_RTC1_NS
	help
	  Use the Cortex-M SYSTICK timer as the system clock driver since RTC1 is Non-Secure
&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple definition errors when trying to migrate code from toolchain 1.7.1 to 1.9.1</title><link>https://devzone.nordicsemi.com/thread/362511?ContentTypeID=1</link><pubDate>Fri, 08 Apr 2022 08:18:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ef7c86f-492f-4c62-9fda-3234b898e384</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Then there seems to be something wrong with the toolchain. Try reinstalling NCS 1.9.1.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple definition errors when trying to migrate code from toolchain 1.7.1 to 1.9.1</title><link>https://devzone.nordicsemi.com/thread/362402?ContentTypeID=1</link><pubDate>Thu, 07 Apr 2022 14:28:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c529cca-6579-4f05-be81-2d200a6fb883</guid><dc:creator>GameCodingNinja</dc:creator><description>&lt;p&gt;My project does use&amp;nbsp;&lt;span&gt;CONFIG_AT_CMD and&amp;nbsp;CONFIG_AT_NOTIF but I did have to comment these out when trying to build under toolchain 1.9.1. Forgot to do that when posting my proj.conf file. I made that change above.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;My project under 1.7.1 does build and run with&amp;nbsp;&lt;/span&gt;CONFIG_LTE_LOG_LEVEL_DBG but it&amp;#39;s in my autoconf.h by default.&lt;/p&gt;
&lt;p&gt;I did a test where I compiled an empty main() function with all my&amp;nbsp;&lt;span&gt;proj.conf settings commented out and my cmakelists.txt only referencing the main.c for compile and it still errored with &amp;quot;multiple definition&amp;quot;.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple definition errors when trying to migrate code from toolchain 1.7.1 to 1.9.1</title><link>https://devzone.nordicsemi.com/thread/362364?ContentTypeID=1</link><pubDate>Thu, 07 Apr 2022 13:23:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38d1d2be-597b-4ce2-8804-54497711d5da</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;Howard and Aleksa,&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;haven&amp;#39;t managed to reproduce your exact error message, though I do also see errors when trying to run CMake with your configurations. It seems that some of your configurations are outdated, for instance:&amp;nbsp;CONFIG_AT_CMD and&amp;nbsp;CONFIG_AT_NOTIF. For an overview of configurations available on different versions, &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/index.html"&gt;you can check out the KConfig reference here&lt;/a&gt;. Are you getting your project to run with&amp;nbsp;CONFIG_LTE_LOG_LEVEL_DBG on NCS 1.7.1?&lt;/p&gt;
&lt;p&gt;Could you also tell me more about your project? Is it maybe based on any sample in particular, so that I can have an easier way of trying to reproduce your issues?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple definition errors when trying to migrate code from toolchain 1.7.1 to 1.9.1</title><link>https://devzone.nordicsemi.com/thread/361785?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2022 09:38:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:943b4b46-6f11-4f2f-bd65-84ce02ee2881</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello Howard,&lt;/p&gt;
&lt;p&gt;I will have to get back to you on this.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple definition errors when trying to migrate code from toolchain 1.7.1 to 1.9.1</title><link>https://devzone.nordicsemi.com/thread/361718?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2022 06:53:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83c60933-41f0-4d9d-9cf6-982e547bfe6c</guid><dc:creator>Aleksa</dc:creator><description>&lt;p&gt;I wasn&amp;#39;t able to fix it either. Hopefully tech support comes soon.&amp;nbsp;&lt;br /&gt;If I find anything out, I&amp;#39;ll contact you here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple definition errors when trying to migrate code from toolchain 1.7.1 to 1.9.1</title><link>https://devzone.nordicsemi.com/thread/361595?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2022 14:57:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6114ac3-b727-4ef2-af0a-185e1208acd1</guid><dc:creator>GameCodingNinja</dc:creator><description>&lt;p&gt;I added&amp;nbsp;CONFIG_NRF_RTC_TIMER=n to my prj.conf and it was not added to autoconf.h but it still errors with the &amp;quot;multiple definitions&amp;quot;. If&amp;nbsp;&lt;span&gt;CONFIG_NRF_RTC_TIMER is not defined in my&amp;nbsp;prj.conf, then it is added as 1. Either way it still errors for me.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple definition errors when trying to migrate code from toolchain 1.7.1 to 1.9.1</title><link>https://devzone.nordicsemi.com/thread/361570?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2022 14:18:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f94b1ec6-9bb5-481a-a7f2-b66bfafdfe48</guid><dc:creator>Aleksa</dc:creator><description>&lt;p&gt;I didn&amp;#39;t use them either, they get auto generated. Check your autoconf.h in build output files for these conf options, I bet you&amp;#39;ll find them defined to 1.&lt;br /&gt;&lt;br /&gt;If you go to the:&amp;nbsp;&lt;em&gt;zephyr/drivers/timer/CMakeLists.txt&lt;br /&gt;&lt;/em&gt;You will see that timer related source files that go into the project,&amp;nbsp;depend on project&amp;nbsp;configurations, such as these two.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;And&amp;nbsp;the functions that are defined multiple times for us are only declared here:&amp;nbsp;&lt;em&gt;zephyr/include/drivers/timer/system_timer.h&lt;br /&gt;&lt;br /&gt;&lt;/em&gt;I&amp;#39;m pretty sure that there is some weird reason in Kconfig why these two project options now get enabled for us, instead of only&amp;nbsp;&lt;em&gt;CONFIG_NRF_RTC_TIMER.&amp;nbsp;&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple definition errors when trying to migrate code from toolchain 1.7.1 to 1.9.1</title><link>https://devzone.nordicsemi.com/thread/361529?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2022 13:02:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d8acc26-65e8-4080-a845-58df15fbaaa6</guid><dc:creator>GameCodingNinja</dc:creator><description>&lt;p&gt;Yeah, I&amp;#39;m not using those conf options. The&amp;nbsp;nrf_rtc_timer.c has header files that expose the other definitions in the same file. Right now I don&amp;#39;t understand why I can compile some things and not others. Tried to debug it but gave up because I was going to deep down the rabbit hole. The code base doesn&amp;#39;t look like it&amp;#39;s applying a proper standard to handle includes and this is the result.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple definition errors when trying to migrate code from toolchain 1.7.1 to 1.9.1</title><link>https://devzone.nordicsemi.com/thread/361463?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2022 10:21:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa36fe46-5037-4d76-905e-2e7a9d12ab6d</guid><dc:creator>Aleksa</dc:creator><description>&lt;p&gt;I have the exact same problem. Not sure what to do. I can build the nrf sample code still.&lt;/p&gt;
&lt;p&gt;The two files that get included depend on&amp;nbsp;the following Kconfig options: CONFIG_CORTEX_M_SYSTICK and CONFIG_NRF_RTC_TIMER.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve tried setting these two options to false, but it didn&amp;#39;t help because the build system would override my settings, and change both options to true.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>