<?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>xQueueReceive FreeRTOS hardfault NRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46262/xqueuereceive-freertos-hardfault-nrf52840</link><description>Hello, It is my first time running FreeRTOS on NRF52 and I would really appreciate any help to figure out the root cause for the hard fault. I run a simple FreeRTOS application with 2 tasks. The application receives UART data and loops it back. The system</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 May 2019 08:51:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46262/xqueuereceive-freertos-hardfault-nrf52840" /><item><title>RE: xQueueReceive FreeRTOS hardfault NRF52840</title><link>https://devzone.nordicsemi.com/thread/185380?ContentTypeID=1</link><pubDate>Mon, 06 May 2019 08:51:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10137899-4963-48aa-8ccf-06173c1a5d84</guid><dc:creator>AntonLev</dc:creator><description>&lt;p&gt;We have used the configuration file from the previous project that used another ARM processor. The mentioned&amp;nbsp;&lt;span&gt;configMAX_SYSCALL_INTERRUPT_PRIORITY and&amp;nbsp;configKERNEL_INTERRUPT_PRIORITY values were correct for the other processor but wrong for NRF52840.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I followed&amp;nbsp;the description from here&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v11.0.0%2Ffreertos.html"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v11.0.0%2Ffreertos.html&lt;/a&gt;. The configMAX_SYSCALL_INTERRUPT_PRIORITY and&amp;nbsp;configKERNEL_INTERRUPT_PRIORITY&amp;nbsp; values were changed to&amp;nbsp;NRF_APP_PRIORITY_LOW that&amp;nbsp; is 6 in our case.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: xQueueReceive FreeRTOS hardfault NRF52840</title><link>https://devzone.nordicsemi.com/thread/185356?ContentTypeID=1</link><pubDate>Mon, 06 May 2019 07:30:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5646227e-2971-4787-819c-0ab850dfc78d</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;were they wrong in the example file, or they did not suit your application? What values did you change them to?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Just trying to understand the need for change.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: xQueueReceive FreeRTOS hardfault NRF52840</title><link>https://devzone.nordicsemi.com/thread/185350?ContentTypeID=1</link><pubDate>Mon, 06 May 2019 06:59:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8367f800-9175-4908-bbb0-bac1b6cc6e16</guid><dc:creator>AntonLev</dc:creator><description>&lt;p&gt;Hi Susheel,&lt;br /&gt;&lt;br /&gt;Yes, it took me some time&amp;nbsp;but found the root cause. The&amp;nbsp;configMAX_SYSCALL_INTERRUPT_PRIORITY and&amp;nbsp;configKERNEL_INTERRUPT_PRIORITY values were incorrect in the FreeRTOS configuration file.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best Regards,&lt;br /&gt;Anton&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: xQueueReceive FreeRTOS hardfault NRF52840</title><link>https://devzone.nordicsemi.com/thread/185186?ContentTypeID=1</link><pubDate>Fri, 03 May 2019 12:33:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dce6a7e0-c30a-4e59-b691-8de3b07a7885</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Antony,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry for the late response,&lt;/p&gt;
&lt;p&gt;did you find out the reason? if not then i could do a quick test run if you give me the code for your tasks and see what causing the hardfault&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>