<?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>Running simple project with Softdevice and SDK 17.1.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/120429/running-simple-project-with-softdevice-and-sdk-17-1-0</link><description>Hello, 
 I am developing a new application using nRF52832 and writing and debugging code on Segger embedded studio (Release 5.68) with SDK v17.1.0. 
 I try to run simple application like the one below: 
 
 ------------------------- 
 int main(void) 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Apr 2025 20:35:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/120429/running-simple-project-with-softdevice-and-sdk-17-1-0" /><item><title>RE: Running simple project with Softdevice and SDK 17.1.0</title><link>https://devzone.nordicsemi.com/thread/531441?ContentTypeID=1</link><pubDate>Thu, 10 Apr 2025 20:35:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5a33aca-012d-4e4b-859b-1127c85e8b2e</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Christophe,&lt;/p&gt;
&lt;p&gt;I agree that this file can be a bit confusing. And yes, it varies between the examples.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The thing is that there is nothing magical about this file. It is just a file containing a lot of #define statements. When you are pulling features from one application example into another, you typically first start with the .c and .h files that define the functions that you want to use, and include them in your project. Then you may see that the functions are not declared even though you included the file. Take for example nrfx_clock.c, you added it to your project, but still it can&amp;#39;t find the definition for any of the functions defined inside that file, such as&amp;nbsp;nrfx_clock_init().&lt;/p&gt;
&lt;p&gt;If you look close to the top of that file, you will see the line:&lt;/p&gt;
&lt;p&gt;#if NRFX_CHECK(NRFX_CLOCK_ENABLED)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This checks if:&lt;/p&gt;
&lt;p&gt;1: NRFX_CLOCK_ENABLED is defined, and,&lt;/p&gt;
&lt;p&gt;2: NRFX_CLOCK_ENABLED is set to anything other than 0.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Now, to &amp;quot;activate&amp;quot; this file, you need to set NRFX_CLOCK_ENABLED to 1. You can look for it in the sdk_config.h of the file in your current application, but if you can&amp;#39;t find it there, you can copy it from the application that you are copying from.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I like to include everything that looks related to the driver/library that I am trying to import, so in this case, I would copy this chunk from the application that I was looking at into my own application:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
// &amp;lt;e&amp;gt; NRFX_CLOCK_ENABLED - nrfx_clock - CLOCK peripheral driver
//==========================================================
#ifndef NRFX_CLOCK_ENABLED
#define NRFX_CLOCK_ENABLED 1
#endif
// &amp;lt;o&amp;gt; NRFX_CLOCK_CONFIG_LF_SRC  - LF Clock Source
 
// &amp;lt;0=&amp;gt; RC 
// &amp;lt;1=&amp;gt; XTAL 
// &amp;lt;2=&amp;gt; Synth 
// &amp;lt;131073=&amp;gt; External Low Swing 
// &amp;lt;196609=&amp;gt; External Full Swing 

#ifndef NRFX_CLOCK_CONFIG_LF_SRC
#define NRFX_CLOCK_CONFIG_LF_SRC 1
#endif

// &amp;lt;o&amp;gt; NRFX_CLOCK_CONFIG_IRQ_PRIORITY  - Interrupt priority
 
// &amp;lt;0=&amp;gt; 0 (highest) 
// &amp;lt;1=&amp;gt; 1 
// &amp;lt;2=&amp;gt; 2 
// &amp;lt;3=&amp;gt; 3 
// &amp;lt;4=&amp;gt; 4 
// &amp;lt;5=&amp;gt; 5 
// &amp;lt;6=&amp;gt; 6 
// &amp;lt;7=&amp;gt; 7 

#ifndef NRFX_CLOCK_CONFIG_IRQ_PRIORITY
#define NRFX_CLOCK_CONFIG_IRQ_PRIORITY 6
#endif

// &amp;lt;e&amp;gt; NRFX_CLOCK_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRFX_CLOCK_CONFIG_LOG_ENABLED
#define NRFX_CLOCK_CONFIG_LOG_ENABLED 0
#endif
// &amp;lt;o&amp;gt; NRFX_CLOCK_CONFIG_LOG_LEVEL  - Default Severity level
 
// &amp;lt;0=&amp;gt; Off 
// &amp;lt;1=&amp;gt; Error 
// &amp;lt;2=&amp;gt; Warning 
// &amp;lt;3=&amp;gt; Info 
// &amp;lt;4=&amp;gt; Debug 

#ifndef NRFX_CLOCK_CONFIG_LOG_LEVEL
#define NRFX_CLOCK_CONFIG_LOG_LEVEL 3
#endif

// &amp;lt;o&amp;gt; NRFX_CLOCK_CONFIG_INFO_COLOR  - ANSI escape code prefix.
 
// &amp;lt;0=&amp;gt; Default 
// &amp;lt;1=&amp;gt; Black 
// &amp;lt;2=&amp;gt; Red 
// &amp;lt;3=&amp;gt; Green 
// &amp;lt;4=&amp;gt; Yellow 
// &amp;lt;5=&amp;gt; Blue 
// &amp;lt;6=&amp;gt; Magenta 
// &amp;lt;7=&amp;gt; Cyan 
// &amp;lt;8=&amp;gt; White 

#ifndef NRFX_CLOCK_CONFIG_INFO_COLOR
#define NRFX_CLOCK_CONFIG_INFO_COLOR 0
#endif

// &amp;lt;o&amp;gt; NRFX_CLOCK_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
 
// &amp;lt;0=&amp;gt; Default 
// &amp;lt;1=&amp;gt; Black 
// &amp;lt;2=&amp;gt; Red 
// &amp;lt;3=&amp;gt; Green 
// &amp;lt;4=&amp;gt; Yellow 
// &amp;lt;5=&amp;gt; Blue 
// &amp;lt;6=&amp;gt; Magenta 
// &amp;lt;7=&amp;gt; Cyan 
// &amp;lt;8=&amp;gt; White 

#ifndef NRFX_CLOCK_CONFIG_DEBUG_COLOR
#define NRFX_CLOCK_CONFIG_DEBUG_COLOR 0
#endif

// &amp;lt;/e&amp;gt;

// &amp;lt;/e&amp;gt;
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The &amp;lt;e&amp;gt; and &amp;lt;o&amp;gt; stuff is not strictly necessary, but Keil IDE has a tool that can be used to parse these files, and it uses these to understand how to present it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please note that if you are struggling with enabling something, then you should be aware that there is a file called apply_old_config.h, and it checks for duplicates between the old legacy names and the &amp;quot;new&amp;quot; nrfx driver names. So if both are present, then the old name, without NRFX will be the one that becomes valid, and &amp;quot;overwrite&amp;quot; the new one.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running simple project with Softdevice and SDK 17.1.0</title><link>https://devzone.nordicsemi.com/thread/531360?ContentTypeID=1</link><pubDate>Thu, 10 Apr 2025 12:36:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5950466-a6b9-469d-a920-d45fd19bc714</guid><dc:creator>Syntima_Chris</dc:creator><description>&lt;p&gt;Quick question for my understanding: why sdk_config.h file is different between examples. When we are building project with BLE, UART, SPI and so on, how can we trust any examples !!!! and documentation !!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running simple project with Softdevice and SDK 17.1.0</title><link>https://devzone.nordicsemi.com/thread/530993?ContentTypeID=1</link><pubDate>Tue, 08 Apr 2025 09:27:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:290f7643-d162-4e6b-8ac5-523c09f14060</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I am glad you found the cause of the issue! Best of luck with the rest of the development &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running simple project with Softdevice and SDK 17.1.0</title><link>https://devzone.nordicsemi.com/thread/530987?ContentTypeID=1</link><pubDate>Tue, 08 Apr 2025 09:14:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da93343e-3529-4ace-8947-aad88bab92f9</guid><dc:creator>Syntima_Chris</dc:creator><description>&lt;p&gt;I think I found the issue. I use a ublox chip on my custom board and realized that ublox remapped gpios to different pin numbers. I am now able to toggle LEDs on the ublox dev kit. :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running simple project with Softdevice and SDK 17.1.0</title><link>https://devzone.nordicsemi.com/thread/530979?ContentTypeID=1</link><pubDate>Tue, 08 Apr 2025 08:55:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c51cf1c3-7cf0-4cfc-9347-5139688195c9</guid><dc:creator>Syntima_Chris</dc:creator><description>&lt;p&gt;I have a ublox dev kit on hand. I have ran simple blinky app on the kit and have same issue than with my custom board. I guess there is something simple to fix in configuration of the project. Looking deeper in project configuration ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running simple project with Softdevice and SDK 17.1.0</title><link>https://devzone.nordicsemi.com/thread/530963?ContentTypeID=1</link><pubDate>Tue, 08 Apr 2025 08:02:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97f6fca5-e887-42c3-8928-056e21c085c7</guid><dc:creator>Syntima_Chris</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am able to run example with advertising. I have tried couple of things like using internal oscillator instead of external crystal (no success toggling GPIO). I have few years of experience running project on nRF52832 (until 2022). I am back to this micro for a new project but hard to make simple things working. Maybe, my custom board have an issue but I have to figure where issue is.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running simple project with Softdevice and SDK 17.1.0</title><link>https://devzone.nordicsemi.com/thread/530959?ContentTypeID=1</link><pubDate>Tue, 08 Apr 2025 07:56:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8198bb88-35bc-4a8b-a9a4-9f1692696bf8</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Are you sure you have mapped the GPIOs correctly? That your IO_13 is connected to P0.13 on the nRF? And if you run the same application on the DK, does the corresponding GPIOs toggle? On your custom board, do you have an LFXTAL? If not, have you told your application that it doesn&amp;#39;t have it?&lt;/p&gt;
&lt;p&gt;If you flash the softdevice and a BLE sample, do you see any advertisements?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running simple project with Softdevice and SDK 17.1.0</title><link>https://devzone.nordicsemi.com/thread/530875?ContentTypeID=1</link><pubDate>Mon, 07 Apr 2025 16:11:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66241801-a57a-4235-ab92-2560063959c6</guid><dc:creator>Syntima_Chris</dc:creator><description>&lt;p&gt;Hi, I have moved a step forward. First of all, I got a nrf52832 dev kit and run simple blinky example using sdk 17.1.0 without any problems. I am now moving to my own custom board.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have 1 LED (IO_13) and 3 test_pins (IO_29 to 31) I can easily use to start running simple project. Unfortunately, I have not been able to see any gpio toggling right now.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I have created my custom board, and modify simply blinky example to match with my board. I can run program step by step and can through assembly code, but none of the GPIOs toggle.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;If you have any suggestions for my next steps, it would be helpful :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running simple project with Softdevice and SDK 17.1.0</title><link>https://devzone.nordicsemi.com/thread/530581?ContentTypeID=1</link><pubDate>Fri, 04 Apr 2025 09:46:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f4a7ddd-9fcd-46aa-95d2-9f3fa15ff0e1</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Ok. That sounds weird. Do you think it is possible for me to reproduce what you are seeing? Is it possible to zip and upload the application folder? When you were working on SDK17, did you do any changes to any of the files outside the SDK folder? You could, for instance, try to extract a new copy of the SDK, and copy your application into this one to see if the behavior remains the same.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running simple project with Softdevice and SDK 17.1.0</title><link>https://devzone.nordicsemi.com/thread/530465?ContentTypeID=1</link><pubDate>Thu, 03 Apr 2025 13:14:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f9abc41-f48f-4091-9b18-1c91aeea8579</guid><dc:creator>Syntima_Chris</dc:creator><description>&lt;p&gt;with SDK 15.0.0, I have no issue running the application. I will remain on this version for now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running simple project with Softdevice and SDK 17.1.0</title><link>https://devzone.nordicsemi.com/thread/530462?ContentTypeID=1</link><pubDate>Thu, 03 Apr 2025 13:08:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:866e69f7-5617-475e-a331-1c80b38b6cd0</guid><dc:creator>Syntima_Chris</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;thanks for the first reply. I tried your suggestion without success.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As stated in my initial message, application stops running and messages don&amp;#39;t come as expected (with delay) but in one shot.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;See below # of loop iterations before issue according to delay specified in nrf_delay_ms():&lt;/p&gt;
&lt;p&gt;100ms: # = 37&lt;/p&gt;
&lt;p&gt;500ms: # = 0&lt;/p&gt;
&lt;p&gt;1000ms: # = 3&lt;/p&gt;
&lt;p&gt;I am going to try with an older version of sdk and softdevice to compare behaviour&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running simple project with Softdevice and SDK 17.1.0</title><link>https://devzone.nordicsemi.com/thread/530459?ContentTypeID=1</link><pubDate>Thu, 03 Apr 2025 12:50:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c2253e3-fb0e-40c2-a390-9e227c4a4071</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;It may be that since you are printing the same thing over and over, it actually writes it again, but since the content of the buffer doesn&amp;#39;t change, the RTT terminal doesn&amp;#39;t realize it is a new log record. The RTT buffer is just an area in the RAM that the debugger continuously monitors.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you try the following:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;int main(void)
{
    uint32_t dummy_counter = 0;
    SEGGER_RTT_printf(0, &amp;quot;firmware started\n&amp;quot;);
    
    while(1)
    
    {
        
        SEGGER_RTT_printf(0, &amp;quot;test %d\n&amp;quot;, dummy_counter);
        dummy_counter++;
        nrf_delay_ms(1000);
        
    }

}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and see if the behavior changes?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>