<?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>Hardfault in FreeRTOS button code</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78310/hardfault-in-freertos-button-code</link><description>Hello All, 
 I have taken usbd_ble_uart_freertos example and modified it for USB MIDI example (taken from Github) for nRF5 SDK and modified it to use nRF52833 SoC. 
 I am using Segger Embedded Studio on Windows 10 PC and EVK of ublox having NINA-B406</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 07 Dec 2021 04:39:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78310/hardfault-in-freertos-button-code" /><item><title>RE: Hardfault in FreeRTOS button code</title><link>https://devzone.nordicsemi.com/thread/342220?ContentTypeID=1</link><pubDate>Tue, 07 Dec 2021 04:39:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1bfe4c7-05e8-4876-87d8-10cffea3dfb9</guid><dc:creator>Pandurang Chauhan</dc:creator><description>&lt;p&gt;This is resolved. May be the code was not properly modified&amp;nbsp;for the button.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hardfault in FreeRTOS button code</title><link>https://devzone.nordicsemi.com/thread/324106?ContentTypeID=1</link><pubDate>Tue, 10 Aug 2021 06:09:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8df2f3f-8ab1-4868-afb4-58faa6accc52</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;So the strange behavior is seen when you change the name of the files/project only?&amp;nbsp; The code compiles OK?&lt;/p&gt;
&lt;p&gt;This is very strange, Seems like a Segger issue but I am curious, can you please attach your project so that I can test it out?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hardfault in FreeRTOS button code</title><link>https://devzone.nordicsemi.com/thread/323909?ContentTypeID=1</link><pubDate>Mon, 09 Aug 2021 06:04:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c77bd0b-4e14-4ce5-9969-4fd3f49d1cb4</guid><dc:creator>Pandurang Chauhan</dc:creator><description>&lt;p&gt;Thanks Susheel for your reply.&lt;/p&gt;
&lt;p&gt;button interrupt priority is set as below (in sdk_config.h)&lt;/p&gt;
&lt;p&gt;#ifndef NRFX_GPIOTE_CONFIG_IRQ_PRIORITY&lt;br /&gt;#define NRFX_GPIOTE_CONFIG_IRQ_PRIORITY 6&lt;br /&gt;#endif&lt;/p&gt;
&lt;p&gt;By the way, there is one good news. Earlier&amp;nbsp;I have added USB MIDI functionality and then modified for buttons. Now, I have started again. In that, I have first checked button functionality in usbd_ble_uart_freertos example and found working. After that I have modified the main.c file for USB MIDI related changes and found that two buttons are working as expected.&lt;/p&gt;
&lt;p&gt;Next I was changing the name of project, solution, project and folders. I have changed all at once and to my surprise, the code has same behavior (not working) as mentioned in my first (main) post.&lt;/p&gt;
&lt;p&gt;So, I changed again and kept all the names same as earlier and found working again when checked. So, I changed the names one by one, and found that when I changed the project name from &amp;quot;usbd_ble_uart_freertos_pca10056_s140.emProject&amp;quot; to some other, the code was not working. So, for now, I have kept the project name as default.&lt;/p&gt;
&lt;p&gt;What can be the reason? There should not be project name dependency, right?&lt;/p&gt;
&lt;p&gt;One more thing, when I gave my code to my colleague, the same code is not working. He has Segger version 5.50b and I have 5.50d.&lt;/p&gt;
&lt;p&gt;Is there any dependency? What can be the reason?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hardfault in FreeRTOS button code</title><link>https://devzone.nordicsemi.com/thread/323791?ContentTypeID=1</link><pubDate>Fri, 06 Aug 2021 13:49:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b9da4fa-68e5-4ed4-8632-731c0c662069</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;What is the priority of the button interrupt handler you have? (Check&amp;nbsp;NRFX_GPIOTE_CONFIG_IRQ_PRIORITY in sdk_config.h file)&lt;/p&gt;
&lt;p&gt;You are seeing an assert inside the softdevice at address at 0XA06. This normally should forward this handling to the application app_error_fault_handler (second argument to sd_softdevice_enable) function. If you are using the default fault handler from the SDK, it should throw out some more information regarding the assert on the log output (depending on whether you have enabled logs and built the code with DEBUG macro enabled)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>