<?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>NCS for VS Code creating a project in Zephyr RTOS for ideal mode configuration and deep sleep mode configuration using power management library functions with Bluetooth example to achieve the defined current consumption in low power mode .</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112308/ncs-for-vs-code-creating-a-project-in-zephyr-rtos-for-ideal-mode-configuration-and-deep-sleep-mode-configuration-using-power-management-library-functions-with-bluetooth-example-to-achieve-the-defined-current-consumption-in-lo</link><description>Hi 
 I want to migrate my application to Zephyr RTOS platform from old setup given below. 
 
 Old Setup: Hardware: nRF52832 board. Soft device: S132 Software: SEGGER Embedded Studio SDK: nRF5_SDK_15.3.0 
 
 
 
 New Setup: Hardware: nRF52832 board. Software</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Jun 2024 08:12:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112308/ncs-for-vs-code-creating-a-project-in-zephyr-rtos-for-ideal-mode-configuration-and-deep-sleep-mode-configuration-using-power-management-library-functions-with-bluetooth-example-to-achieve-the-defined-current-consumption-in-lo" /><item><title>RE: NCS for VS Code creating a project in Zephyr RTOS for ideal mode configuration and deep sleep mode configuration using power management library functions with Bluetooth example to achieve the defined current consumption in low power mode .</title><link>https://devzone.nordicsemi.com/thread/490788?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2024 08:12:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c6d4d3c-d935-4d75-90f5-b81073391101</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;You do not need to worry about MCUBoot or anything else in order to flash something with NCS. Or atleast not more than with nRF5 SDK.&lt;/p&gt;
&lt;p&gt;The physical act of flashing/program can happen in two ways essentially. Either you flash it using a JLink debugger connected to the SoC you are flashing, or you are taking advantage of a bootloader being already on the SoC you are planning on flashing, and making it update it&amp;#39;s application with what you are providing by essentially doing a DFU. This is practical in situations where you do not have a dedicated OB debugger on the board, &lt;a href="https://www.nordicsemi.com/Products/Development-hardware/nRF52840-Dongle"&gt;like on the nRF52840 dongle&lt;/a&gt;. You do this the same way on the nRF5 SDK and in NCS.&lt;/p&gt;
[quote user="Naveed"]I&amp;#39;ve learned that in order to program my freshly migrated application in&amp;nbsp;the NCS[/quote]
&lt;p&gt;If you by &amp;quot;freshly migrated&amp;quot; do you mean that&amp;nbsp;this is an application you want to move to a board that is already in the field, or with the customer? If so then you of course wouldn&amp;#39;t be able to flash things in the normal way, since you do not necessarily have access to it. Though once again, that would also be a problem with nRF5 SDK.&lt;/p&gt;
[quote user="Naveed"]&lt;p&gt;How will I program my device in the Zephyr RTOS environment after upgrading to NCS? Will the process remain same what will be the change?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;The programming will be the same.&amp;nbsp;Things regarding bootloaders will be&amp;nbsp; bit more complicated than this, but the main thing to keep in mind is that now instead of 2 hex files (softdevice and app) you get &lt;strong&gt;1&lt;/strong&gt; (app+host+SDC). So the flashing is easier, since there is only one file to worry about.&lt;/p&gt;
&lt;p&gt;Of course if you want to create an application for the nRF5340 which has two cores, or the nRF54, or if you are working on something for DFU, it might be a bit more complex. But generally it&amp;#39;s as simple as this.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS for VS Code creating a project in Zephyr RTOS for ideal mode configuration and deep sleep mode configuration using power management library functions with Bluetooth example to achieve the defined current consumption in low power mode .</title><link>https://devzone.nordicsemi.com/thread/490675?ContentTypeID=1</link><pubDate>Tue, 25 Jun 2024 13:47:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb01f252-5161-4e3f-bcd7-23bd716d06d0</guid><dc:creator>Naveed</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Elfving,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you for you reply. Your inputs are much appreciated and will be very helpful in getting the NCS in the Zephyr RTOS platform going.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m going to take the course that you have suggested. I have further queries concerning the implementation as I continue to migrate my application onto NCS. I will be communicating with you via the same ticket going forward.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Currently my&amp;nbsp;&lt;/span&gt;&lt;span&gt;nRF52832 device is working on nRF SDK with the following hex files.&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Secure bootloader code hex file &lt;span style="background-color:#ffff00;"&gt;&amp;quot;secure_bootloader_ble_s132_pca10040.hex&amp;quot;&lt;/span&gt;.&lt;br /&gt;&lt;/span&gt;&lt;span&gt;SDK path: ..\..\nRF5_SDK_15.3.0_59ac345\examples\dfu\secure_bootloader\pca10040_ble\ses&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Soft device hex file: &lt;span style="background-color:#ffff00;"&gt;&amp;quot;s132_nrf52_6.1.1_softdevice.hex&amp;quot;&lt;/span&gt;&lt;br /&gt;Path: ..\..\nRF5_SDK_15.3.0_59ac345\components\softdevice\s132\hex&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;And my application hex file: &lt;span style="background-color:#ffff00;"&gt;my_application.hex&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;Flashing steps:&lt;/strong&gt; &lt;br /&gt;I am currently flashing&amp;nbsp;my application program using two different steps,&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Only&amp;nbsp;using nrf command line tool by running the script and programming (&lt;span style="background-color:#ffff00;"&gt;SBL+SD+my_application&lt;/span&gt;) using jlink.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Using (nrf command line tool + nrf Connect mobile application), first generate the zip file using nrfgenpkg script, program&lt;/span&gt;&lt;span&gt;&amp;nbsp;the &lt;span style="background-color:#ffff00;"&gt;(SBL+SD)&lt;/span&gt; from the PC using nrf command line tool(by running the script) via jlink. And flash the generated zip file package with&amp;nbsp;nRF Connect mobile application.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve learned that in order to program my freshly migrated application in&amp;nbsp;the NCS, I need to use the MCU boot secure bootloader&amp;nbsp;and&amp;nbsp;SDC .Could you please clarify the necessary configuration and how to obtain these hex files to accomplish this? Correct me if I am wrong.&lt;/p&gt;
&lt;p&gt;How will I program my device in the Zephyr RTOS environment after upgrading to NCS? Will the process remain same what will be the change?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Naveed&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS for VS Code creating a project in Zephyr RTOS for ideal mode configuration and deep sleep mode configuration using power management library functions with Bluetooth example to achieve the defined current consumption in low power mode .</title><link>https://devzone.nordicsemi.com/thread/489951?ContentTypeID=1</link><pubDate>Fri, 21 Jun 2024 11:41:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:942774e8-2a31-4d24-a0c9-3e4e44bd30b6</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;span&gt;Naveed,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user=""]&lt;p&gt;&lt;span&gt;I&amp;#39;ve already opened a ticket regarding the porting task, but I wasn&amp;#39;t sure how to move forward in this case:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/110919/porting-the-application-from-nrf5_sdk_15-3-0-to-the-nrf-connect-sdk-for-vs-code"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/110919/porting-the-application-from-nrf5_sdk_15-3-0-to-the-nrf-connect-sdk-for-vs-code&lt;/a&gt;&amp;nbsp;. Since there is no&amp;nbsp;1-1 mapping of API of all functionalities as these SDK work on different fundamental concepts of one being baremetal and the other being RTOS based.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yeah I can imagine that being a bit annoying. Like you&amp;#39;ve seen in this previous case of yours, it unfortunately&amp;nbsp;isn&amp;#39;t that straight forward to simply migrate something to NCS. You would essentially have to remake it from scratch, adding one element at the time.&amp;nbsp;It might be a process to migrate an entire application, but hopefully you&amp;#39;ll find the flexibility, the learning and the development process of NCS worthwhile. For more on the difference between the two SDKs, &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/nrf-connect-sdk-and-nrf5-sdk-statement"&gt;see here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;I would first of all recommend you to have a look at our &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/"&gt;Dev Academy&lt;/a&gt;, which would help you on how to get started with NCS and how to develop with it. This is the first step you are looking for.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Once you are done with the&amp;nbsp;&amp;#39;Fundamentals&amp;#39; course, have a look at the others in DevAcademy. Like the Intermediate and BLE&amp;nbsp;one.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Congrats on taking the first steps towards the nRF Connect SDK!&lt;/span&gt;&lt;/p&gt;
[quote user=""]In the ticket, I found out that there is no separate soft device for nRF connect[/quote]
&lt;p&gt;Right. In NCS, we get the host layer of the stack from Zephyr, and the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrfxlib/softdevice_controller/README.html"&gt;SoftDeviceController &lt;/a&gt;is automatically added when building the project in NCS. You get everything you need in one hexfile.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]What configuration adjustments in the nRF Connect SDK project would be necessary to achieve the same functionality (deep sleep mode, ideal mode/low power mode)?[/quote]
&lt;p&gt;NCS is a bit different in the way that you don&amp;#39;t have to do much to get low power consumption. It will perform great with just the idle thread running. Though there are ofcourse a few other things to keep in mind, like the use of peripherals which would affect the power consumption.&lt;/p&gt;
[quote user=""]What other possible settings must I make in order to maintain the same functionality of my code since Zephyr RTOS does not support independent soft devices? There are no libraries in Zephyr RTOS that support soft devices.?[/quote]
&lt;p&gt;I am not sure if I understand. If by softdevices you mean closed source BLE stacks that are added independently from the application, then no, those are not needed/used. In Zephyr&amp;amp;NCS, the SDC and Zephyr host layer is added automatically. Though I should say that there are a &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrfxlib/softdevice_controller/README.html"&gt;few different versions of the SDC&lt;/a&gt;, and the correct version gets automatically added to the project depending on what features are enabled ( eg. &lt;span&gt;Scanner functionality if CONFIG_CENTRAL is enabled&lt;/span&gt;). If you want to use the open source zephyr controller you can do so as well.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So everything needed for the BLE stack is added automatically.&lt;/p&gt;
[quote user=""]In the&amp;nbsp;&amp;quot;ble_app_buttonless_dfu&amp;quot; example code we have below function. what is the equivalent API to be used while porting into the Zephyr RTOS.[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/100061/dfu-in-zephyr-nsc-2-3-0/427223"&gt;See here.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>