<?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>nrf9160 Linker error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96765/nrf9160-linker-error</link><description>Hi J&amp;#248;rgen, 
 I have an issue when trying to link the libmodem.a library in the nrfxlib/nrf_modem directory. I&amp;#39;m using the following version of MDK-ARM: Tool Version Numbers: Toolchain: MDK Essential 5.36 (Flex): 3 user(s) Version: 5.36.0.0 Toolchain Path</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 Feb 2023 14:24:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96765/nrf9160-linker-error" /><item><title>RE: nrf9160 Linker error</title><link>https://devzone.nordicsemi.com/thread/410932?ContentTypeID=1</link><pubDate>Mon, 20 Feb 2023 14:24:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:023c8638-08b7-465e-b76f-882e95b4df77</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could this error be due to the sections? similar to what is stated here on keil&amp;#39;s website?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.arm.com/documentation/ka004410/latest"&gt;https://developer.arm.com/documentation/ka004410/latest&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 Linker error</title><link>https://devzone.nordicsemi.com/thread/410730?ContentTypeID=1</link><pubDate>Fri, 17 Feb 2023 21:43:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05fd011c-150a-4a98-b60f-e280bc11c99a</guid><dc:creator>beethoven62</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;H&amp;aring;kon,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So after trying various things, I got it to link with my current version. I needed to use short enums only (-fshort-enums). The tool has a checkbox that only allows you to use short enums and wchars combined or no option. I had to add the one option to the miscellaneous options field.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;m able to build with no errors using your library. I now have a new problem, but I don&amp;#39;t think it&amp;#39;s related to your library at this point. When I compile in the code that uses the library functions, I get an internal error from the Keil tool:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;linking...&lt;br /&gt;.\Objects\nRF9160_ns.axf: Internal fault: [0xb3b91b:6160001]&lt;br /&gt;.\Objects\nRF9160_ns.axf: Please contact your supplier.&lt;br /&gt;&amp;quot;.\Objects\nRF9160_ns.axf&amp;quot; - 2 Error(s), 0 Warning(s).&lt;br /&gt;Target not created.&lt;br /&gt;Build Time Elapsed: 00:00:10&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;ll contact Keil on this one, but please stay tuned. They might say&amp;nbsp;that&amp;nbsp;your library is indirectly contributing to this new error.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Johnas&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 Linker error</title><link>https://devzone.nordicsemi.com/thread/410528?ContentTypeID=1</link><pubDate>Fri, 17 Feb 2023 08:11:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48480e23-714a-4540-9f3a-a5bfaf6ef44b</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]I&amp;#39;ve read articles related to this and there is an option that allows me to specify short enums and short whars (-fshort-enums -fshort-wchar). I&amp;#39;ve tried both configurations with it activated and deactivated.[/quote]
&lt;p&gt;When changing the compiler options, you should always clean the project and recompile.&lt;/p&gt;
&lt;p&gt;Could you try this?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And if it still fails, can you please share the full log?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>