<?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>manage and remove DEBUG flags for FW in production stage</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106638/manage-and-remove-debug-flags-for-fw-in-production-stage</link><description>Dear Nordic, 
 I need to release to the production stage a FW developed. I have two separated project: one for the bootloader and one for the application. 
 The bootloader is compiled with DEBUG_NRF and NRF_DFU_DEBUG_VERSION defines setted. 
 The application</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Dec 2023 14:47:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106638/manage-and-remove-debug-flags-for-fw-in-production-stage" /><item><title>RE: manage and remove DEBUG flags for FW in production stage</title><link>https://devzone.nordicsemi.com/thread/461464?ContentTypeID=1</link><pubDate>Thu, 21 Dec 2023 14:47:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14c41536-7f55-47a5-ac7a-4c32f61d0d69</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="StefXinet"]I&amp;#39;m using&amp;nbsp;&lt;span&gt;pca10040_s132_ble_debug example but with S332 SD (7.0.1) because I need ANT+ features.&lt;/span&gt;[/quote]
&lt;p&gt;&lt;span&gt;There is no S332 example, but the closest project will be the S212 projects:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nRF5_SDK_17.0.2_d674dde\examples\dfu\secure_bootloader\pca10040_s212_ant_debug&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please also check out &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/57330/dfu-in-sdk-16-for-ant/232542"&gt;this post&lt;/a&gt;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What S132 version are you using?&amp;nbsp;&lt;/span&gt;For the application firmware command, it should be --sd-req 0x0101 if you are using&amp;nbsp;s132_nrf52_7.2.0.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you provide the logs for Bootloader:&amp;nbsp;&lt;span&gt;DEBUG&amp;nbsp;works with&lt;/span&gt;&amp;nbsp;Firmware:&amp;nbsp;DEBUG and&amp;nbsp;&lt;span&gt;RELEASE?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;I will start the holiday tomorrow and will not reply until January. 09.2024. If this case is urgent to support. Please create a new support case.&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Merry Christmas &amp;amp; Happy New Year.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: manage and remove DEBUG flags for FW in production stage</title><link>https://devzone.nordicsemi.com/thread/461385?ContentTypeID=1</link><pubDate>Thu, 21 Dec 2023 09:05:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:817e96a1-8671-447a-b205-4160288dbe5b</guid><dc:creator>StefXinet</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using&amp;nbsp;&lt;span&gt;pca10040_s132_ble_debug example but with S332 SD (7.0.1) because I need ANT+ features.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;the Bootloader is compiled with these flags for DEBUG:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;DEBUG_BUILD DEBUG_NRF NRF_DFU_DEBUG_VERSION S332 BLE_STACK_SUPPORT_REQD BOARD_CUSTOM CONFIG_GPIO_AS_PINRESET CONFIG_NFCT_PINS_AS_GPIOS FLOAT_ABI_HARD NRF52 NRF52832_XXAA NRF52_PAN_74 NRF_DFU_SETTINGS_VERSION=2 NRF_DFU_SVCI_ENABLED NRF_SD_BLE_API_VERSION=7 SOFTDEVICE_PRESENT SVC_INTERFACE_CALL_AS_NORMAL_FUNCTION __HEAP_SIZE=0 uECC_ENABLE_VLI_API=0 uECC_OPTIMIZATION_LEVEL=3 uECC_SQUARE_FUNC=0 uECC_SUPPORT_COMPRESSED_POINT=0 uECC_VLI_NATIVE_LITTLE_ENDIAN=1&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;t&lt;/span&gt;&lt;span&gt;he Bootloader is compiled with these flags for RELEASE:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;RELEASE_BUILD S332 BLE_STACK_SUPPORT_REQD BOARD_CUSTOM CONFIG_GPIO_AS_PINRESET CONFIG_NFCT_PINS_AS_GPIOS FLOAT_ABI_HARD NRF52 NRF52832_XXAA NRF52_PAN_74 NRF_DFU_SETTINGS_VERSION=2 NRF_DFU_SVCI_ENABLED NRF_SD_BLE_API_VERSION=7 SOFTDEVICE_PRESENT SVC_INTERFACE_CALL_AS_NORMAL_FUNCTION __HEAP_SIZE=0 uECC_ENABLE_VLI_API=0 uECC_OPTIMIZATION_LEVEL=3 uECC_SQUARE_FUNC=0 uECC_SUPPORT_COMPRESSED_POINT=0 uECC_VLI_NATIVE_LITTLE_ENDIAN=1&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;The Application firmware&amp;nbsp;&amp;nbsp;is&amp;nbsp;packed&amp;nbsp;with these parameters for&amp;nbsp;DEBUG:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="batchfile"&gt;&amp;quot;%cd%\nrfutil\nrfutil.exe&amp;quot; pkg generate ^
--debug-mode ^
--application &amp;quot;%cd%\_build\release\release.hex&amp;quot; ^
--application-version 0001 ^
--hw-version 52 ^
--sd-req 0x0126 ^
--key-file &amp;quot;%cd%\nrfutil\private.pem&amp;quot; &amp;quot;%cd%\_output\%product%_%release%.zip&amp;quot;&lt;/pre&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The Application firmware&amp;nbsp;&amp;nbsp;is packed with these parameters for&amp;nbsp;RELEASE:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="batchfile"&gt;&amp;quot;%cd%\nrfutil\nrfutil.exe&amp;quot; pkg generate ^
--application &amp;quot;%cd%\_build\release\release.hex&amp;quot; ^
--application-version 0001 ^
--hw-version 52 ^
--sd-req 0x0126 ^
--key-file &amp;quot;%cd%\nrfutil\private.pem&amp;quot; &amp;quot;%cd%\_output\%product%_%release%.zip&amp;quot;&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This is what I&amp;#39;m trying:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;Bootloader  Firmware    DFU works?
DEBUG       DEBUG       done
DEBUG       RELEASE     fail
RELEASE     DEBUG       fail
RELEASE     RELEASE     fail&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Every time the bootloader&amp;nbsp;is working fine and between every test I perform a full nRF52 erase.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What is not working?&lt;br /&gt;Thanks.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: manage and remove DEBUG flags for FW in production stage</title><link>https://devzone.nordicsemi.com/thread/460906?ContentTypeID=1</link><pubDate>Mon, 18 Dec 2023 17:16:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d114d658-daa1-4bd7-9581-edbf794c40ca</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="StefXinet"]I based my bootloader on&amp;nbsp;pca10040_s132_ble_debug example.[/quote]
&lt;p&gt;Is it possible to test with the&amp;nbsp;&lt;span&gt;bootloader on&amp;nbsp;pca10040_s132_ble?&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;With --debug-mode, it would stitch to Debug mode and enable version check&amp;nbsp;skipping.&lt;/p&gt;
&lt;p&gt;Could you try to change the application-version number?&lt;/p&gt;
&lt;p&gt;What S132 version are you using?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The firmware ID 0x126 is s112_nrf52_7.3.0&lt;/p&gt;
[quote user="StefXinet"]What should I do to go in production stage?[/quote]
&lt;p&gt;Do you modify the pca10040_s132_ble_debug example for the development? If not, you could use&amp;nbsp;pca10040_s132_ble without the debug version which would not show the debug log.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: manage and remove DEBUG flags for FW in production stage</title><link>https://devzone.nordicsemi.com/thread/460731?ContentTypeID=1</link><pubDate>Mon, 18 Dec 2023 08:19:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c856ace6-0149-4c95-b1e1-5020b2ebfa73</guid><dc:creator>StefXinet</dc:creator><description>&lt;p&gt;sorry, I did a mistake: I based my bootloader on&amp;nbsp;pca10040_s132_ble_debug example.&lt;/p&gt;
&lt;p&gt;What should I do to go in production stage?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: manage and remove DEBUG flags for FW in production stage</title><link>https://devzone.nordicsemi.com/thread/460637?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2023 20:47:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:780a8bcd-c6d4-45db-8b1d-b0602851ae98</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Can you try&amp;nbsp;pca10040e_s112_ble?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: manage and remove DEBUG flags for FW in production stage</title><link>https://devzone.nordicsemi.com/thread/460593?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2023 14:34:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f7ebca2-973d-4b7f-9516-40daab896367</guid><dc:creator>StefXinet</dc:creator><description>&lt;p&gt;I&amp;#39;m using the latest SDK:&amp;nbsp;nRF5_SDK_17.1.0_ddde560&lt;/p&gt;
&lt;p&gt;The bootloader I&amp;#39;m using is the&amp;nbsp;\dfu\secure_bootloader\pca10040e_s112_ble_debug&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: manage and remove DEBUG flags for FW in production stage</title><link>https://devzone.nordicsemi.com/thread/460586?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2023 14:23:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97b68ec5-77cf-4f04-80e7-53277a16b9ab</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which nRF5 SDK version are you using?&lt;/p&gt;
&lt;p&gt;Are you using the example bootloader or the custom bootloader?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Maybe you could try to test with the non-debug version of the example bootloader.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>