<?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>S130 crashes on Fujitsu module with 16 KB of RAM</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9613/s130-crashes-on-fujitsu-module-with-16-kb-of-ram</link><description>Hi all, 
 I&amp;#39;m working with the Nordic nRF51422 DK that has the nRF51422 chip with 32 KB of RAM.
My application works great on it using the SoftDevice S130 as BLE stack. 
 Our final product is based on Fujitsu MBH7BLZ07 who has nRF51822 with 16 KB of</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 16 Oct 2015 06:43:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9613/s130-crashes-on-fujitsu-module-with-16-kb-of-ram" /><item><title>RE: S130 crashes on Fujitsu module with 16 KB of RAM</title><link>https://devzone.nordicsemi.com/thread/35546?ContentTypeID=1</link><pubDate>Fri, 16 Oct 2015 06:43:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7840a70-379b-48bf-8c52-b60ff13ae01f</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Can I ask which Which UICR register??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 crashes on Fujitsu module with 16 KB of RAM</title><link>https://devzone.nordicsemi.com/thread/35545?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2015 15:00:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9d224ea-9832-4cb4-846c-8d30ef8891cd</guid><dc:creator>ppatierno</dc:creator><description>&lt;p&gt;We solved the problem. To use internal RC oscillator with Fujitsu module, it&amp;#39;s needed to write a specific value inside the UICR register. This change is documented by Fujitsu but they never send the document.
I don&amp;#39;t know why this change is needed.
Why I didn&amp;#39;t need to write this register for the DK ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 crashes on Fujitsu module with 16 KB of RAM</title><link>https://devzone.nordicsemi.com/thread/35544?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2015 12:32:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ce23d9d-8225-4654-8fba-0d5d79beca39</guid><dc:creator>ppatierno</dc:creator><description>&lt;p&gt;we are using the simple template ble_app_template_s110_pca10028&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 crashes on Fujitsu module with 16 KB of RAM</title><link>https://devzone.nordicsemi.com/thread/35543?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2015 11:08:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7902b2ad-731c-4d6f-824b-069f35795f75</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;which sample example were you trying ... for some reason the the RNG interrupt was triggered wrongly. I have never seen this issue before. need to investigate more ... At this I need to verify this myself.. but i do not have the chip version you have, so it might take few days for me to answer you back.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 crashes on Fujitsu module with 16 KB of RAM</title><link>https://devzone.nordicsemi.com/thread/35542?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2015 10:56:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6d67f6f-39c2-4366-9972-191e60e742bc</guid><dc:creator>ppatierno</dc:creator><description>&lt;p&gt;If I comment the sd_ble_enable line code, we have the same crash with exactly same assert when calling the next function softdevice_ble_evt_handler_set (always inside the ble_stack_init function)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 crashes on Fujitsu module with 16 KB of RAM</title><link>https://devzone.nordicsemi.com/thread/35541?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2015 10:27:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0916e44-ae2e-446c-b366-0ccfaba3ca54</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;your attached screen shot gave me some useful information. I can now see where inside the softdevice the fault is generated. Can you comment out sd_ble_enable and confirm me that hardfault is still triggered (it should, if the data in the screenshot has to make sense)&lt;/p&gt;
&lt;p&gt;If the hardfault is still triggered after you comment out sd_ble_enable, then it seems that there is some hardware issue i need to investigate.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 crashes on Fujitsu module with 16 KB of RAM</title><link>https://devzone.nordicsemi.com/thread/35539?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2015 09:43:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e19eee12-1121-4810-949c-3bb9cdff8fc3</guid><dc:creator>ppatierno</dc:creator><description>&lt;p&gt;Just to give you more information ...&lt;/p&gt;
&lt;p&gt;Enviroment and Hardware
Windows 7
MDK 5.14
SoftDevice 8.0.0&lt;/p&gt;
&lt;p&gt;Fujitsu MBH7BLZ07 with nRF51822 CEAAE00 cpuid (0x0079). rom 256KB ram 16KB cpu version 3&lt;/p&gt;
&lt;p&gt;We decided to restart from a simple code and copying it from one of the example in nordik sdk. The initialization should be always the same for all the examples. The only difference is :&lt;/p&gt;
&lt;p&gt;// Initialize the SoftDevice handler module.
SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_250MS_CALIBRATION, NULL);&lt;/p&gt;
&lt;p&gt;because the fujitsu soc doesn&amp;#39;t mount external low frequency crystal.&lt;/p&gt;
&lt;p&gt;For that test we create a new custom board in &amp;quot;custom_board.h&amp;quot; with no led and button, to make the test more clean and simple as we can. The rom starts at 0x18000 and the size is 0x28000, tha ram starts at 0x20002000 and the size is 0x2000.&lt;/p&gt;
&lt;p&gt;I updated the post with a screenshot of assert_nrf_callback.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 crashes on Fujitsu module with 16 KB of RAM</title><link>https://devzone.nordicsemi.com/thread/35538?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2015 08:48:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a802e617-4060-452e-91aa-ecb2e63e651e</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;If the hardfault is triggered inside and seems like SOFTDEVICE_HANDKER_INIT was successful, then you can put a breakpoint at assert_nrf_callback function, which will be called when softdevice asserts.
Atleast we can get the file and line number inside softdevice where hardfault was generated and I can look into it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 crashes on Fujitsu module with 16 KB of RAM</title><link>https://devzone.nordicsemi.com/thread/35537?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2015 08:20:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e8a9b57-51bd-450e-bbf2-3955021d03e2</guid><dc:creator>ppatierno</dc:creator><description>&lt;p&gt;I already debug into ble_stack_init. When I call the sd_ble_enable it doesn&amp;#39;t return but the code jumps to the hard fault handler&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 crashes on Fujitsu module with 16 KB of RAM</title><link>https://devzone.nordicsemi.com/thread/35540?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2015 07:15:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e892f02e-628f-4ea8-8e1f-80b4f87023fe</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Please debug it into the ble_stack_init function and tell us what error code was returned inside it.
There are few APP_ERROR_CHECK macro inside that function and if err_code is not NRF_SUCCESS it will reset your chip.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 crashes on Fujitsu module with 16 KB of RAM</title><link>https://devzone.nordicsemi.com/thread/35536?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2015 14:27:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d00a09f-07a7-43de-9a3b-84dd0f37a3f3</guid><dc:creator>ppatierno</dc:creator><description>&lt;p&gt;It crashes just calling that function&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 crashes on Fujitsu module with 16 KB of RAM</title><link>https://devzone.nordicsemi.com/thread/35535?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2015 11:14:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f23c853-a9ab-4e1c-945c-428dc5d00c2b</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;We do not know why the application crashes, but it will be possible for you to debug where the crash happened. You say that sd_ble_Enable always crashes? just calling that function crashes or it crashes after  it returns?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 crashes on Fujitsu module with 16 KB of RAM</title><link>https://devzone.nordicsemi.com/thread/35534?ContentTypeID=1</link><pubDate>Fri, 09 Oct 2015 13:31:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d074d4a9-e9ed-4e24-a24b-c6c8efaeae47</guid><dc:creator>ppatierno</dc:creator><description>&lt;p&gt;We are already using the internal RC oscillator on both boards (DK and Fujitsu module).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 crashes on Fujitsu module with 16 KB of RAM</title><link>https://devzone.nordicsemi.com/thread/35533?ContentTypeID=1</link><pubDate>Fri, 09 Oct 2015 13:29:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e173cbde-1850-404c-b021-0e0d58d03a1c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Are you sure you are using the correct clock source? As you may know, the DK kit uses an external crystal as the LF clock source, but many modules does not have it. Instead you can use the &lt;a href="https://devzone.nordicsemi.com/question/953/what-low-frequency-clock-sources-can-i-use/"&gt;internal RC oscillator&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 crashes on Fujitsu module with 16 KB of RAM</title><link>https://devzone.nordicsemi.com/thread/35532?ContentTypeID=1</link><pubDate>Fri, 09 Oct 2015 12:37:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c85b7de2-06d0-43e8-9104-169c76e086bf</guid><dc:creator>ppatierno</dc:creator><description>&lt;p&gt;Now we are trying to use S110 stack with a related example from Nordic. Programming S110 we don&amp;#39;t receive the error but the sample application crashes.
The function is always the sd_ble_enable().
Of course the application works fine on Nordic DK but crashes on Fujitsu module.&lt;/p&gt;
&lt;p&gt;Attached you can find the programming error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 crashes on Fujitsu module with 16 KB of RAM</title><link>https://devzone.nordicsemi.com/thread/35531?ContentTypeID=1</link><pubDate>Fri, 09 Oct 2015 10:57:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81a185bb-ce71-405c-b8c8-f385b5f0e1a2</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;The programming step fails? but that has nothing to do if softdevice is built for 16KB or 32KB.
What is the error message given when the step fails?
Do you have more than one chip to test this behavior? I do not have rev 3 chip with 16KB RAM, else i would  have tried it right away.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 crashes on Fujitsu module with 16 KB of RAM</title><link>https://devzone.nordicsemi.com/thread/35530?ContentTypeID=1</link><pubDate>Fri, 09 Oct 2015 10:37:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6a021ba-1bec-4a02-bcb4-49566c41eb06</guid><dc:creator>ppatierno</dc:creator><description>&lt;p&gt;Our Fujitsu module has chip Rev.3.
To give you more information I notice the following strange behavior : when I use nRFGo studio to flash the S130 stack on the module, the programming step fails more time before go right. When it works, the region 0 shows &amp;quot;unknown&amp;quot; and not S130.
I&amp;#39;m flshing the S130 HEX file under : NordicSemiconductor\nRF_SoftDevice_S130\1.0.0\hex
Is it possible that this HEX file has some information about 32 KB of RAM instead 16 KB of RAM we are using ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 crashes on Fujitsu module with 16 KB of RAM</title><link>https://devzone.nordicsemi.com/thread/35529?ContentTypeID=1</link><pubDate>Fri, 09 Oct 2015 09:39:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcd6a522-a539-4485-8a4b-443073ab568a</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;S1301.0.0 should work even with 16KB RAM. which version of chip are you using? is it IC rev2 or IC rev3?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 crashes on Fujitsu module with 16 KB of RAM</title><link>https://devzone.nordicsemi.com/thread/35528?ContentTypeID=1</link><pubDate>Thu, 08 Oct 2015 14:25:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47bd2cf4-af1a-4a0f-8804-c15bb4e4e108</guid><dc:creator>ppatierno</dc:creator><description>&lt;p&gt;Yes of course&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S130 crashes on Fujitsu module with 16 KB of RAM</title><link>https://devzone.nordicsemi.com/thread/35527?ContentTypeID=1</link><pubDate>Thu, 08 Oct 2015 08:29:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88b555ee-9b85-4214-86b2-f5b1beea179b</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;have you changed your IRAM settings to reflect the change from 32KB to 16KB RAM?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>