<?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>Flashing the code to nRF52832 BLE module.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86762/flashing-the-code-to-nrf52832-ble-module</link><description>Hi, I need some help on flashing the code to nRF52832 BLE module. I would like to mention that I am flashing the code to nRF module using ST-link v2 debugger with the help of open-OCD tool. Whenever, I flash the example hex file provided by nordic (i</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 02 Jun 2022 11:16:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86762/flashing-the-code-to-nrf52832-ble-module" /><item><title>RE: Flashing the code to nRF52832 BLE module.</title><link>https://devzone.nordicsemi.com/thread/370662?ContentTypeID=1</link><pubDate>Thu, 02 Jun 2022 11:16:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6070a2e5-da48-4411-896f-613ccd8ab440</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Ok, you need to be able to debug to see why the application faults, or whether the application&amp;#39;s main() function is reached at all.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I guess one more thing you can try is to do is:&lt;/p&gt;
&lt;p&gt;Since you need to program the application twice before it starts working. Try to program it only once, and read back the flash. I don&amp;#39;t know how to do that with your programmer, but if you get hold of a JLink you can use nRF Command Line Tools and the command &amp;quot;nrfjprog --readcode my_flash_dump.hex&amp;quot; to read it back. Then we can use that to compare the flash after programming it only once, and after programming it twice. Are they identical?&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: Flashing the code to nRF52832 BLE module.</title><link>https://devzone.nordicsemi.com/thread/370558?ContentTypeID=1</link><pubDate>Thu, 02 Jun 2022 05:10:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d9b2682-37b7-42e3-8c04-ae89316e4edb</guid><dc:creator>PKANNAN</dc:creator><description>&lt;p&gt;Hi, no worries.&lt;/p&gt;
&lt;p&gt;Thank you for your response!&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/86762/flashing-the-code-to-nrf52832-ble-module/369911#369911"]I am not familiar with the open OCD tool, but I guess you don&amp;#39;t actively erase the chip between programming the softdevice and the application.&amp;nbsp;[/quote]
&lt;p&gt;Correct. I program the softdevice followed by application. I rarely do mass erase.&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/86762/flashing-the-code-to-nrf52832-ble-module/369911#369911"] I guess RTT Logging isn&amp;#39;t supported over ST Link by default.[/quote]
&lt;p&gt;Yes, I am not able to debug/log using ST link.&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/86762/flashing-the-code-to-nrf52832-ble-module/369911#369911"]What UART pins is your application using? Are the UART pins connected to anything? If not, perhaps you can try to comment out uart_init() and see if the behavior changes. (The application may crash if the UART&amp;#39;s RX pin is left floating).&amp;nbsp;[/quote]
&lt;p&gt;I am using UART pins 6(TX) and 8(RX). These UART pins are connected to the application chip (STM32MCU).&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/86762/flashing-the-code-to-nrf52832-ble-module/369911#369911"]Please let me know if you have access to debugging and/or any logs.[/quote]
&lt;p&gt;No, this is the challenge I&amp;#39;m facing using ST link debugger. I could only flash the code, not able to debug.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing the code to nRF52832 BLE module.</title><link>https://devzone.nordicsemi.com/thread/369911?ContentTypeID=1</link><pubDate>Mon, 30 May 2022 08:45:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47a86576-b432-445b-a2bc-956d33171fdb</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Sorry for the late reply. I was out of office last week.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am not familiar with the open OCD tool, but I guess you don&amp;#39;t actively erase the chip between programming the softdevice and the application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you tried debugging the application? Is your main() function reached? Do you see any log output? I guess RTT Logging isn&amp;#39;t supported over ST Link by default.&lt;/p&gt;
&lt;p&gt;What UART pins is your application using? Are the UART pins connected to anything? If not, perhaps you can try to comment out uart_init() and see if the behavior changes. (The application may crash if the UART&amp;#39;s RX pin is left floating).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please let me know if you have access to debugging and/or any logs.&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing the code to nRF52832 BLE module.</title><link>https://devzone.nordicsemi.com/thread/369408?ContentTypeID=1</link><pubDate>Wed, 25 May 2022 04:37:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cea66b0-fb07-4685-afb0-1851da360c17</guid><dc:creator>PKANNAN</dc:creator><description>&lt;p&gt;Hi, thank you for your response.&lt;/p&gt;
&lt;p&gt;Yes, modifications are made in&amp;nbsp;&lt;span&gt;ble_app_uart application. I am flashing the hex file to nRF52832 module using ST link v2 debugger with the help of open OCD tool.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In nRF5SDK, I&amp;#39;m taking the hex file from the location: examples\ble_peripheral\ble_app_uart\pca10040\s112\ses\Output\Release\Exe&lt;/span&gt;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/86762/flashing-the-code-to-nrf52832-ble-module/363430#363430"]And you are sure that the flash is not erased between flashing the softdevice and the application?&amp;nbsp;[/quote]
&lt;p&gt;I am not sure how to verify this, may I know how can I ensure that the flash is not erased?&lt;br /&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing the code to nRF52832 BLE module.</title><link>https://devzone.nordicsemi.com/thread/363430?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2022 07:04:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa78fa29-ddce-4e72-a1e9-ce329cde7e98</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Did you do any modifications to the application (ble_app_uart)? How do you flash the .hex files? And where exactly do you find the .hex file for the application?&lt;/p&gt;
&lt;p&gt;And you are sure that the flash is not erased between flashing the softdevice and the application?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing the code to nRF52832 BLE module.</title><link>https://devzone.nordicsemi.com/thread/363116?ContentTypeID=1</link><pubDate>Wed, 13 Apr 2022 07:53:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e406e13b-f728-4766-b621-8ce9f6d52e78</guid><dc:creator>PKANNAN</dc:creator><description>&lt;p&gt;Thank you for the response.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes, I&amp;#39;m using S112 softdevice, and SDK17.1.0 only.&amp;nbsp; I&amp;#39;m using ble_app_uart example.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As you suggested, I tried flashing the softdevice from &lt;span&gt;SDK\components\softdevice\s112\hex\s112_nrf52_7.2.0_softdevice.hex&amp;nbsp;&lt;/span&gt;and then flashed my application. But no changes were seen. It shows chip is programmed and target has been reset but BLE broadcasting is not seen.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing the code to nRF52832 BLE module.</title><link>https://devzone.nordicsemi.com/thread/363023?ContentTypeID=1</link><pubDate>Tue, 12 Apr 2022 12:51:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41b85fb0-8493-4414-a188-70f3e1bd566a</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Perhaps you are not flashing the softdevice? I don&amp;#39;t know what softdevice your application is using, but I guess it is either S132 or S112 (you should be able to tell from your project settings. If not, let me know what example your application started from).&lt;/p&gt;
&lt;p&gt;Try flashing the softdevice before flashing your application. The softdevices are found in (depending on which one you are using):&lt;/p&gt;
&lt;p&gt;SDK\components\softdevice\s132\hex\s132_nrf52_7.2.0_softdevice.hex&lt;/p&gt;
&lt;p&gt;SDK\components\softdevice\s112\hex\s112_nrf52_7.2.0_softdevice.hex&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;(the softdevice version, which is 7.2.0 may differ from your case, depending on what SDK version you are using. These names are from SDK17.1.0).&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: Flashing the code to nRF52832 BLE module.</title><link>https://devzone.nordicsemi.com/thread/362986?ContentTypeID=1</link><pubDate>Tue, 12 Apr 2022 10:10:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e5c8fc4-93c2-4351-be13-d6e23a069227</guid><dc:creator>PKANNAN</dc:creator><description>&lt;p&gt;Thank you very much for your response.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would like to mention that I&amp;#39;m resetting the nRF chip every time after programming it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;May I know if there are any other solutions that would help? Thanks in advance!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing the code to nRF52832 BLE module.</title><link>https://devzone.nordicsemi.com/thread/362626?ContentTypeID=1</link><pubDate>Fri, 08 Apr 2022 13:19:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebe5cb1f-9483-4dc5-b5d2-f97d7f807cce</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;This is not really a debugger that we support, but it seems like you get it to almost work, if it is advertising. Did you remember to reset the nRF chip after you have programmed it? I don&amp;#39;t know how you program it exactly, but you can try to power cycle the nRF52832 after it has been programmed.&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>