<?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>FreeRTOS with RTT</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18295/freertos-with-rtt</link><description>I am building the ble_app_hrs_freertos example code for a pca10040 dev board located in the SDK 12.2 at: nRF5_SDK_12.1.0_0d23e2a/examples/ble_peripheral/ble_app_hrs_freertos 
 I have the following 2 RTT macros define: 
 Makefile - NRF_LOG_USES_RTT=1</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Dec 2016 09:06:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18295/freertos-with-rtt" /><item><title>RE: FreeRTOS with RTT</title><link>https://devzone.nordicsemi.com/thread/70664?ContentTypeID=1</link><pubDate>Wed, 28 Dec 2016 09:06:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2209c9a-1394-4e81-af65-a1a2e2e7bd1d</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;So now the hardfault happens with -O3 instead of -O0. I really want to reproduce that fault on my desk. Can you please share your code to help me reproduce it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FreeRTOS with RTT</title><link>https://devzone.nordicsemi.com/thread/70663?ContentTypeID=1</link><pubDate>Tue, 27 Dec 2016 21:28:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f752879d-1b97-43ee-a785-8fdf6e76fe7d</guid><dc:creator>forevers</dc:creator><description>&lt;p&gt;I still see the hardfault with these freertos changes with -O3 optimization. I can however proceed with -Og which works for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FreeRTOS with RTT</title><link>https://devzone.nordicsemi.com/thread/70662?ContentTypeID=1</link><pubDate>Tue, 13 Dec 2016 10:59:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6f8aef4-860f-4349-aef9-e0c35f916ea5</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi please try again with below attachment.
remove the directory SDKx\external\freertos and unzip
&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/freertos.rar"&gt;freertos.rar&lt;/a&gt; to SDKx\external&lt;/p&gt;
&lt;p&gt;There were some timing issues fixed that are not yet released, and i think it will fix your issue.
If this does not work, then let me know.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FreeRTOS with RTT</title><link>https://devzone.nordicsemi.com/thread/70661?ContentTypeID=1</link><pubDate>Mon, 12 Dec 2016 04:29:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fdc4bbd-7e2c-4fb2-9f37-177808fe1f33</guid><dc:creator>forevers</dc:creator><description>&lt;p&gt;I am using the quarterly released gcc compiler gcc-arm-none-eabi-5_4-2016q2.&lt;/p&gt;
&lt;p&gt;I just updated from 12.1 to 12.2 sdk and tried building and running ble_app_hrs_freertos example. The only change I made was to enable RTT in sdk_config.h&lt;/p&gt;
&lt;p&gt;#ifndef NRF_LOG_ENABLED
#define NRF_LOG_ENABLED 1
#endif&lt;/p&gt;
&lt;p&gt;This routes NRF_LOG message to a UART console. This build looks to run fine if I use the make file as provided. If I disable optimizations (change -O3 to -O0 in the makefile) I see hardfaults again.&lt;/p&gt;
&lt;p&gt;APP:INFO:Fast Adverstising&lt;br /&gt;
HARDFAULT:ERROR:Hardfault PC:597&lt;/p&gt;
&lt;p&gt;I also applied changes to port_cmsis_systick,c and applied the vTaskStepTick.patch and get the same Hardfault.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FreeRTOS with RTT</title><link>https://devzone.nordicsemi.com/thread/70659?ContentTypeID=1</link><pubDate>Sun, 11 Dec 2016 01:17:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:198b8ef3-4b92-4ad8-a07c-a2af57bc155f</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Are you using GCC? could you upload some files to help me replicate this problem. If i can see this on my desk, i can try to debug and will be able to help you faster.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FreeRTOS with RTT</title><link>https://devzone.nordicsemi.com/thread/70658?ContentTypeID=1</link><pubDate>Sat, 10 Dec 2016 22:47:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:436c6822-effb-44f8-b7b2-a81c03919dd7</guid><dc:creator>forevers</dc:creator><description>&lt;p&gt;Thanks for the suggestion Aryan.&lt;/p&gt;
&lt;p&gt;I built the example project with the port_cmsis_systick.c you provided and applied the vTaskStepTick.patch as well. I am using SDK 12.1 targeting a PCA10040 board. I still receive the hard fault after several seconds even without NRF_LOG enabled. I&amp;#39;ll look at the FreeRTOS configuration a bit more. ~ Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FreeRTOS with RTT</title><link>https://devzone.nordicsemi.com/thread/70660?ContentTypeID=1</link><pubDate>Sat, 10 Dec 2016 07:33:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eea3c6e5-24e0-4c55-b489-c176e334d893</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I did, But I faced few problems if the logs are too long and too frequent. The hardfault could be due to the RTOS timer inaccuracy. Try the patches mentioned in &lt;a href="https://devzone.nordicsemi.com/question/105973/freertos-changes-for-better-rtos-timer-accuracy/"&gt;this&lt;/a&gt; thread and see if this problem gets solved. It worked for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>