<?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>Changing unity printf to Segger RTT</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22674/changing-unity-printf-to-segger-rtt</link><description>I&amp;#39;m wondering if anyone uses unity.c for unit testing and managed to change the print function to segger rtt in order to read the output. 
 According to unity 
 By default, Unity prints its results to `stdout` as it runs. This works
perfectly fine</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 30 Jul 2019 13:27:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22674/changing-unity-printf-to-segger-rtt" /><item><title>RE: Changing unity printf to Segger RTT</title><link>https://devzone.nordicsemi.com/thread/201268?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2019 13:27:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cdba7f8-966d-4b89-ba94-f1bddcc4b04e</guid><dc:creator>jgvillap</dc:creator><description>&lt;p&gt;Hello, has anyone figured this out yet?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing unity printf to Segger RTT</title><link>https://devzone.nordicsemi.com/thread/89142?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2017 22:46:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8c5b76b-495e-4848-969f-f24bd8a9343a</guid><dc:creator>faikab</dc:creator><description>&lt;p&gt;As  I am using an NRF51822 XXAC board with PCA10028 i had to perform some modifications to the makefile/code in order to run the example. However after performing the modifications i could not see any output on Putty. Below is a list of the modiciations/changes performed, perhaps i missed something:&lt;/p&gt;
&lt;p&gt;1- changed the following flags (in both C Flags, ASM Flags &amp;amp; LD Flags)
from mfloat-abi=hard -mfpu=fpv4-sp-d16 to mfloat-abi=soft
from -mcpu=cortex-m4 to -mcpu=cortex-m0
from NRF52 to NRF51
from NF52832_XXAA to NRF51822
from BOARD_PCA10040 to BOARD_PCA10028&lt;/p&gt;
&lt;p&gt;2- Delete the NRF52_PANXX flags&lt;/p&gt;
&lt;p&gt;3- Changed the debug pin in app_test_runner.c from pin 27 to pin 7  which corresponds to the SCL pin on the PCA10028 board&lt;/p&gt;
&lt;p&gt;4-  changed the test_example_gcc_nrf52.ld file to test_example_gcc_nrf51.ld (copied the values from the blinky example of SDK11 for PCA10028)&lt;/p&gt;
&lt;p&gt;Im running the code using the instructions in the readme file however unfortunately nothing is printing to Putty at a baudrate of 115200.&lt;/p&gt;
&lt;p&gt;I am running the code using SDK13.1 which is the same one used in initial example, I want to get it working there before i migrate it back to SDK 11.&lt;/p&gt;
&lt;p&gt;Can anyone spot where im going wrong/ why i cant see any output on Putty&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing unity printf to Segger RTT</title><link>https://devzone.nordicsemi.com/thread/89141?ContentTypeID=1</link><pubDate>Thu, 06 Jul 2017 20:47:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4e1898d-d2d2-4a34-836b-21d07ad0b616</guid><dc:creator>faikab</dc:creator><description>&lt;p&gt;Thanks Krzysztof! This will defientiely be of great help, as I am using SDK 11.0.0 &amp;amp; nrf51822 with PCA10028 i will need to do some modifications to the make files/code to match my configuration I will try to do that and let you know how it goes from there. If you already have makefiles for that then it would be super helpful. otherwise im on it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing unity printf to Segger RTT</title><link>https://devzone.nordicsemi.com/thread/89140?ContentTypeID=1</link><pubDate>Mon, 03 Jul 2017 01:17:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99f1060c-a2ae-402d-ae3f-9e6ffe31d244</guid><dc:creator>Masahiro Kondo</dc:creator><description>&lt;p&gt;Is there any way that I can use Keil to run this example or do you have similar example for Keil?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Changing unity printf to Segger RTT</title><link>https://devzone.nordicsemi.com/thread/89139?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 10:41:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecc4f36b-0cf3-46e1-916b-0aeed25ba6c8</guid><dc:creator>Krzysztof Chruscinski</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;in nRF5 SDK team we are using Unity test framework to execute on target unit tests. We use UART to flush test report. Test cases are well isolated because each test case is separated by software reset. Pin reset triggers start of the suite.
I have uploaded and example which is based on nRF5 SDK 13.0.0.&lt;/p&gt;
&lt;p&gt;See the readme.txt in the zip. It contains short &amp;#39;howto&amp;#39;.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/test_5F00_example.zip"&gt;test_example.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>