<?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>nrf5 SDK SVC #255 / 0xFF</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115330/nrf5-sdk-svc-255-0xff</link><description>Hello all, 
 I ported an old nrf5 application from SDK 12.3 to SDK 17.1. It uses S112 7.3.0 and FreeRTOS. Unfortunately I am getting time variant softdevice hard faults at 0xA60. ETM debugging shows that the fault is triggered by at least two different</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Oct 2024 11:19:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115330/nrf5-sdk-svc-255-0xff" /><item><title>RE: nrf5 SDK SVC #255 / 0xFF</title><link>https://devzone.nordicsemi.com/thread/505533?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2024 11:19:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3d2b7df-28e3-4467-b84b-b1045e171066</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Place a breakpoint in the&amp;nbsp;&lt;span&gt;app_error_fault_handler, and take a look at the&amp;nbsp;callstack why it was called. It could actually be because of UART overrun, see this page:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/109573/ble_app_uart"&gt;&amp;quot;ble_app_uart&amp;quot;&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf52832/page/uarte.html#d955e7425"&gt;https://docs.nordicsemi.com/bundle/ps_nrf52832/page/uarte.html#d955e7425&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You should also look at the pc and info field the app_error_fault_handler() was called with.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5 SDK SVC #255 / 0xFF</title><link>https://devzone.nordicsemi.com/thread/505525?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2024 11:00:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f6ce4f9-cde9-41d9-a509-0fba9bd2f7ca</guid><dc:creator>Arne_CV</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I can see that the SVC is made during handling of IRQ 1 (RADIO).&amp;nbsp;app_error_fault_handler() gets called with id = 1 (NRF_ERROR_SVC_HANDLER_MISSING). Any suggestions where it might come from? missing headers? Damaged vector table?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Most parts of my application are working fine (SD init, BLE advertising, connect/disconnect), but sometimes this error occurs. So I guess that most SD SVCs are working fine&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5 SDK SVC #255 / 0xFF</title><link>https://devzone.nordicsemi.com/thread/505428?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2024 19:50:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b822039e-2f79-4843-ae87-8110dc7e7c05</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;br /&gt;&lt;br /&gt;&lt;span&gt;0x00000A60 is the hardfault exception handler inside the MBR. It&amp;#39;s normally forwarded to the main application, but&amp;nbsp;will get trapped if breakpoint on hardfault is enabled in SES.&lt;br /&gt;You can disable it like this:&lt;/span&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4428.pastedimage1587130782995v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;To debug hardfaults, add&amp;nbsp;&lt;span&gt;the&amp;nbsp;&lt;/span&gt;&lt;span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_hardfault.html"&gt;HardFault handling library&lt;/a&gt;&amp;nbsp;to your project&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Add these to your projects:&lt;/p&gt;
&lt;p&gt;$(SDK_ROOT)/components/libraries/hardfault/hardfault_implementation.c&amp;nbsp;&lt;br /&gt;$(SDK_ROOT)/components/libraries/hardfault/nrf52/handler/hardfault_handler_gcc.c&amp;nbsp; (variant here depends on your toolchain)&lt;/p&gt;
&lt;p&gt;And set HARDFAULT_HANDLER_ENABLED to 1 in sdk_config.h, and add DEBUG_NRF in your preprocessor definitions&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5 SDK SVC #255 / 0xFF</title><link>https://devzone.nordicsemi.com/thread/505342?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2024 12:25:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72697408-8217-4190-a5bc-015403910084</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;The SVC number might be a &amp;quot;don&amp;#39;t care&amp;quot; here, this value is not properly tracked in the ARMv7-M hardware registers. In case software wanted to use it, it has to read it from the calling code flash via the stacked PC pointer.&lt;/p&gt;
&lt;p&gt;You are probably looking at an SD SVC call from either the app or the softdevice interrupt handler...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>