<?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>Overwrite Unity Config File</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111971/overwrite-unity-config-file</link><description>Hello, Im trying to use the Unity framework. I was able to run a simple test, however I would like to change the print function - UNITY_OUTPUT_CHAR . From the nrf/test/unity/unity_config.h this is the file that Unity is using to change the print function</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Jun 2024 07:51:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111971/overwrite-unity-config-file" /><item><title>RE: Overwrite Unity Config File</title><link>https://devzone.nordicsemi.com/thread/488234?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2024 07:51:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59c35c04-7f18-420f-a594-76f43bcbde34</guid><dc:creator>Miguel Ferreira</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I believe I found a solution meanwhile by adding a unity_config.h file in my project and in the CMake include the folder where this config file is before adding the Zephyr package:&lt;br /&gt;&lt;code&gt;include_directories(BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/src)&lt;/code&gt;&lt;br /&gt;&lt;code&gt;find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>