<?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>hang after flash.. no output    chip rev2 soft device incompatible???</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69208/hang-after-flash-no-output-chip-rev2-soft-device-incompatible</link><description>Hi all, I&amp;#39;m having this really strange issue with the wrong hardware+software+soft combos... Last week I merged together a program that incorporates the following: SDK15, FreeRtos, and s140 7.2.0.. this software runs and executes fine on 2 out of the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 08 Dec 2020 15:58:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69208/hang-after-flash-no-output-chip-rev2-soft-device-incompatible" /><item><title>RE: hang after flash.. no output    chip rev2 soft device incompatible???</title><link>https://devzone.nordicsemi.com/thread/283886?ContentTypeID=1</link><pubDate>Tue, 08 Dec 2020 15:58:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2beefed4-b3fc-4630-aa1d-eaca8ebc09dc</guid><dc:creator>colin_was_here</dc:creator><description>&lt;p&gt;hmoles-&lt;br /&gt;&lt;br /&gt;thanks for the info.. last night I tried out what you said and diffed the emproject file, turns out it was on sdk17 all along, and it did match up in terms of flash adresses :).. then I looked into the &lt;em&gt;NRF_FICR&lt;/em&gt; register and found out that they were all on AD, except for the laird eval kit which was on AC, this ruled out the hardware version as the issue.. &lt;br /&gt;&lt;br /&gt;So at that point I was pretty disappointed and called it a night.. coming in this morning I talked w a coworker who thought it&amp;#39;d be worth it to just erase the entire chip and re-flash.. I didn&amp;#39;t actually think that&amp;#39;d work but I gave it a shot.. low and behold it booted perfectly and stopped at main this time.. :)&lt;/p&gt;
&lt;p&gt;I gotta say I was pleasantly surprised by this.. when I was flashing before it would always say &amp;#39;contents already match&amp;#39; for the softdevice.. then it would flash my app if it was different.. I always assumed that it was actually checking and comparing the flash... but apparently not. &lt;br /&gt;&lt;br /&gt;anyways- takeaway is that I /you should always fully erase the chips from laird.. they come pre installed with a bunch of firmware and it&amp;#39;s not enough just to flash over it..&lt;br /&gt;&lt;br /&gt;Thx, Colin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hang after flash.. no output    chip rev2 soft device incompatible???</title><link>https://devzone.nordicsemi.com/thread/283674?ContentTypeID=1</link><pubDate>Mon, 07 Dec 2020 23:27:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fa98d5a-f574-42e5-bb4f-aaedf54cff13</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Is it possible that the softdevice is already loaded on the 2 working boards?&lt;/p&gt;
&lt;p&gt;There is a memory alignment issue if using a softdevice which differs from the project settings, which will happen if using SDK15 and SDv7 without adjusting the linker settings and indeed possible the include files at &lt;em&gt;.\components\softdevice\s132\headers\&lt;/em&gt; which are softdevice version dependent. Since the SDK v15 uses SD v 6, how come SD v7 is getting loaded in the first place?&lt;/p&gt;
&lt;p&gt;Anyway, the softdevice is defined in the SDK v16 or v17 project file like this:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;debug_additional_load_file=&amp;quot;../../../../../../components/softdevice/s140/hex/s140_nrf52_7.2.0_softdevice.hex&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;SDK v15 uses (typically) v6.1.1 like this:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;debug_additional_load_file=&amp;quot;../../../../../../components/softdevice/s140/hex/s140_nrf52_6.1.1_softdevice.hex&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The Sofdevice has to be specified in the project file &lt;em&gt;Optons-&amp;gt;Preprocessor Definitions&lt;/em&gt; as either 6 or 7:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;NRF_SD_BLE_API_VERSION=7&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The link map must match (this is nRF52840 SD V7.2.0):&lt;/p&gt;
&lt;p&gt;&lt;em&gt;linker_section_placement_macros=&amp;quot;FLASH_PH_START=0x0;FLASH_PH_SIZE=0x100000;RAM_PH_START=0x20000000;RAM_PH_SIZE=0x40000;FLASH_START=0x27000;FLASH_SIZE=0xd9000;RAM_START=0x20002ae8;RAM_SIZE=0x3d518&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;this is nRF52840 SD V6.1.1:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;linker_section_placement_macros=&amp;quot;FLASH_PH_START=0x0;FLASH_PH_SIZE=0x100000;RAM_PH_START=0x20000000;RAM_PH_SIZE=0x40000;FLASH_START=0x26000;FLASH_SIZE=0xda000;RAM_START=0x20002a98;RAM_SIZE=0x3d568&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Maybe the best starting point is to compare a BLE example project .emProject with the project you are using; the differences should be apparent.&lt;/p&gt;
&lt;p&gt;More info here&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/mem_usage/mem_usage.html"&gt;https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/mem_usage/mem_usage.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can check the Rev.2 stuff by looking at&amp;nbsp;&lt;em&gt;NRF_FICR-&amp;gt;INFO &lt;/em&gt;in the debugger or via a printf&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>