<?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>Possible SIGTRAP in Softdevice S140</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/103110/possible-sigtrap-in-softdevice-s140</link><description>Hello, 
 We are currently in the progress of porting a project from the nrf52840dk reference board to a custom board and are having some issues during initilization. 
 Setup is using Softdevice S140 7.2.0 and nRF52 SDK 17.1.0 using secure_bootloader </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 27 Oct 2023 12:06:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/103110/possible-sigtrap-in-softdevice-s140" /><item><title>RE: Possible SIGTRAP in Softdevice S140</title><link>https://devzone.nordicsemi.com/thread/452780?ContentTypeID=1</link><pubDate>Fri, 27 Oct 2023 12:06:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc894520-0a7c-45e6-b03e-74faf5d29d04</guid><dc:creator>patric</dc:creator><description>&lt;p&gt;Issue was due bad ram in the MCU. Closing issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Possible SIGTRAP in Softdevice S140</title><link>https://devzone.nordicsemi.com/thread/443140?ContentTypeID=1</link><pubDate>Fri, 25 Aug 2023 10:27:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b7b36e2-a502-4270-87fd-9b2d67827c79</guid><dc:creator>patric</dc:creator><description>&lt;p&gt;Private issue has been created.&amp;nbsp;313592&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Possible SIGTRAP in Softdevice S140</title><link>https://devzone.nordicsemi.com/thread/443134?ContentTypeID=1</link><pubDate>Fri, 25 Aug 2023 09:35:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:527be3cc-fbd3-43b9-93f8-fb6bed0f3093</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see. None of that should explain why you see a difference in the buffer handling in the logger, though. How did you&amp;nbsp;narrow down to the values of the pointers in&amp;nbsp;nrf_memobj_alloc()?&amp;nbsp;Could it be that you are missing something when debugging? First of all, I would suggest disablign optimization when debugging you have not done so. And as you wrote earlier that you had some problems with GDB (I know I do), perhaps it would be better to use a GUI debugger, like &lt;a href="https://www.segger.com/products/development-tools/ozone-j-link-debugger/"&gt;Segger Ozone&lt;/a&gt;? (note that you. need to change the Ozon configuration to start from address 0 as described in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/47464/segger-ozone-causes-a-soft-device-error-when-trying-to-debug-or-reset-during-debugging/187734"&gt;this post&lt;/a&gt;, or just attach to the running target if the issue does not occur immediately).&lt;/p&gt;
[quote user="patric"]Do you have a mail i could share the linker-scripts on?[/quote]
&lt;p&gt;You can upload here (Insert -&amp;gt; Image/video/file) or make a new private case where you refer to this thread, and upload there if you do not want tos hare it publically.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Possible SIGTRAP in Softdevice S140</title><link>https://devzone.nordicsemi.com/thread/443125?ContentTypeID=1</link><pubDate>Fri, 25 Aug 2023 08:52:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f6d303e-255d-4fa9-8058-2454ed5ce6c7</guid><dc:creator>patric</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;bsp_board_init() has been changed to not use any led&amp;#39;s or buttons as there are other devices connected, ie a empty function compared with&amp;nbsp;components/boards/boards.c.&lt;/p&gt;
&lt;p&gt;NRF_DFU_HW_VERSION has been changed.&lt;/p&gt;
&lt;p&gt;New signing key for application image as been included.&lt;/p&gt;
&lt;p&gt;Aligned ld linker-scripts to keep the rtt sections at the same place between both bootloader and application.&amp;nbsp;We are using&amp;nbsp;SEGGER_RTT_SECTION set to &amp;quot;.rtt&amp;quot; and then defining a&lt;/p&gt;
&lt;p&gt;.rtt (NOLOAD) :&lt;br /&gt; {&lt;br /&gt; } &amp;gt; RAM&lt;/p&gt;
&lt;p&gt;in the linker-script.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Of course using a external segger jlink on the custom board instead of the embedded jlink on the DK board. JMemExe,&amp;nbsp;JLinkGDBServer and&amp;nbsp;JLinkRTTViewerExe works as expected from what i can see.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;During troubleshooting i did changed the linker-script to allocate a bit more ram for the SD.&lt;/p&gt;
&lt;p&gt;RAM (rwx) :&amp;nbsp; ORIGIN = 0x20008000, LENGTH = 0x38000&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Do you have a mail i could share the linker-scripts on?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Possible SIGTRAP in Softdevice S140</title><link>https://devzone.nordicsemi.com/thread/443120?ContentTypeID=1</link><pubDate>Fri, 25 Aug 2023 08:26:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9ee94d8-fbd7-450b-9599-4295e2d7ad0e</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What is the differences in the firmware you run on the DK (successfully) and the firmware you run on your custom board?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Possible SIGTRAP in Softdevice S140</title><link>https://devzone.nordicsemi.com/thread/442934?ContentTypeID=1</link><pubDate>Thu, 24 Aug 2023 10:24:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a5b7f8c-7c93-4b25-b1f9-313679a81691</guid><dc:creator>patric</dc:creator><description>&lt;p&gt;The reason seems to be that nrf_memobj_alloc() in nrf_log_frontend_dequeue() returns NULL&lt;/p&gt;
&lt;p&gt;This happens because&lt;/p&gt;
&lt;div&gt;
&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;/pre&gt;
if (p_pool-&amp;gt;p_cb-&amp;gt;p_stack_pointer &amp;gt; p_pool-&amp;gt;p_stack_base)&lt;br /&gt;in&lt;br /&gt;nrf_balloc_alloc() fails
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;p_stack_pointer = 0x20002953&lt;/div&gt;
&lt;div&gt;&lt;span&gt;p_stack_base =&amp;nbsp;0x2000926c&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Possible SIGTRAP in Softdevice S140</title><link>https://devzone.nordicsemi.com/thread/442910?ContentTypeID=1</link><pubDate>Thu, 24 Aug 2023 09:05:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc1d0147-d12b-449d-9991-27d65b822a98</guid><dc:creator>patric</dc:creator><description>&lt;p&gt;This is not in the softdevice. After further digging, and handeling signals a bit better in gdb, this is happening during RTT logging backend init/first log within the bootloader.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>