<?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>load command inside gdb CLI doesn&amp;#39;t flash new image into device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109049/load-command-inside-gdb-cli-doesn-t-flash-new-image-into-device</link><description>I use `west debug` to start `gdb` for debugging nRF5340DK 
 when I use `west build` to update the image, I use `load` command inside gdb CLI, the new `zephyr.elf` is loaded, then `mon reset` and `continue` but the execution (changed text inside LOG_)</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Jun 2024 09:34:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109049/load-command-inside-gdb-cli-doesn-t-flash-new-image-into-device" /><item><title>RE: load command inside gdb CLI doesn't flash new image into device</title><link>https://devzone.nordicsemi.com/thread/487253?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2024 09:34:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a42415e-db2c-42ac-a971-795f0a420e20</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I am sorry for a delayed reply.&lt;br /&gt;&lt;br /&gt;&lt;span&gt;There are 2 commands - one loads a new hex/elf file to the device and the other one loads the symbols to gdb. They do not perform 2 actions at once but one action only. Therefore, you would need to run them both.&lt;br /&gt;File command loads symbols to gdb and does not load anything to the device.&lt;br /&gt;Load command loads new data to the device and does not load symbols.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: load command inside gdb CLI doesn't flash new image into device</title><link>https://devzone.nordicsemi.com/thread/475723?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2024 15:17:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9666efee-35fb-4f83-bff9-493d207348d4</guid><dc:creator>sprhawk</dc:creator><description>&lt;p&gt;No problem ! Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: load command inside gdb CLI doesn't flash new image into device</title><link>https://devzone.nordicsemi.com/thread/475427?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2024 14:37:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e90ee283-4728-4626-9f63-8a52aedbdef3</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;This is just to provide you with an update. We are still looking into this issue internally. Unfortunately, I cannot say at this point when the issue might get resolved, but some additional time is needed. I will get back to you when I get relevant information.&lt;br /&gt;&lt;br /&gt;Thank you for your patience.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: load command inside gdb CLI doesn't flash new image into device</title><link>https://devzone.nordicsemi.com/thread/473713?ContentTypeID=1</link><pubDate>Wed, 13 Mar 2024 15:34:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32636f47-5737-45f8-8bc9-9c646f987b72</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;We will look into it internally. I will get back to you when I get some information, probably during next week.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: load command inside gdb CLI doesn't flash new image into device</title><link>https://devzone.nordicsemi.com/thread/473430?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2024 12:57:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2a7475b-69d1-4130-967e-c3c64cf3a1e7</guid><dc:creator>sprhawk</dc:creator><description>&lt;p&gt;I don&amp;#39;t have nrf52840-DK in hand.&lt;/p&gt;
&lt;p&gt;I am using single application core, not multi image build.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: load command inside gdb CLI doesn't flash new image into device</title><link>https://devzone.nordicsemi.com/thread/473394?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2024 10:34:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01251c67-913b-408e-9c2d-da3c3861ca41</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;If you have&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/device_guides/working_with_nrf/nrf53/nrf5340.html#multi-image-builds"&gt;multi-image build&lt;/a&gt;, &amp;quot;load&amp;quot; should not be used since it only loads the current .elf file but not the other such as tf-m or mcuboot.&lt;br /&gt;&lt;br /&gt;Could you check if the same issue happens when you use nrf52840-dk?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: load command inside gdb CLI doesn't flash new image into device</title><link>https://devzone.nordicsemi.com/thread/473319?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2024 01:10:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3676886-bf04-4842-9d6e-7f3893c81ca2</guid><dc:creator>sprhawk</dc:creator><description>&lt;p&gt;Normally, when I started a gdb session, and I changed and rebuilt my code, I don&amp;#39;t need to quit and restart my gdb session, I just need to use gdb load command to both : reload symbols and re-flash the device, and use mon reset and continue to use the new firmware.&lt;/p&gt;
&lt;p&gt;But now, the load command only reload symbols but didn&amp;#39;t flash the device use the new binary. I have to quit gdb session and use west debug to start gdb again, or not quit current gdb session, but use west flash in another terminal to do flashing the device to use the new firmware ( still need to use gdb load command to reload the symbols)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: load command inside gdb CLI doesn't flash new image into device</title><link>https://devzone.nordicsemi.com/thread/473239?ContentTypeID=1</link><pubDate>Mon, 11 Mar 2024 14:38:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b2857d5-dfb9-4187-8cc8-ea79c608e47a</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Thank you for additional information.&lt;/p&gt;
[quote user=""]when I use `west build` to update the image, I use `load` command inside gdb CLI, the new `zephyr.elf` is loaded, then `mon reset` and `continue` but the execution (changed text inside LOG_) still remains, I think the load doesn&amp;#39;t flash the device as intended.[/quote]
&lt;p&gt;Could you rephrase &amp;quot;but the execution (changed text inside LOG_) still remains&amp;quot;?&lt;br /&gt;What do you expect to happen and what actually happens?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: load command inside gdb CLI doesn't flash new image into device</title><link>https://devzone.nordicsemi.com/thread/473153?ContentTypeID=1</link><pubDate>Mon, 11 Mar 2024 11:54:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5a59359-84c6-41b9-99e9-9d2c7bb5b2b0</guid><dc:creator>sprhawk</dc:creator><description>&lt;p&gt;Under Debian bookworm&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;My workspace likes:&lt;/p&gt;
&lt;p&gt;ROOT / applications / app / src&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / CMakeLists.txt&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / boards / ... overlay/conf&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / ncs / nrf&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / zephyr&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / nrfxlib&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / bootloader&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / ...&lt;/p&gt;
&lt;p&gt;I ran &amp;quot;west debug&amp;quot; under my application root directory, which &amp;quot;app&amp;quot; in above directory structure.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: load command inside gdb CLI doesn't flash new image into device</title><link>https://devzone.nordicsemi.com/thread/473128?ContentTypeID=1</link><pubDate>Mon, 11 Mar 2024 09:59:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:683406fc-c6ca-4865-8477-05b2a907085a</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Thank you for additional information.&lt;br /&gt;&lt;br /&gt;Which operating system do you use?&lt;br /&gt;&lt;br /&gt;Where do you run &amp;quot;west debug&amp;quot; command from?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: load command inside gdb CLI doesn't flash new image into device</title><link>https://devzone.nordicsemi.com/thread/472968?ContentTypeID=1</link><pubDate>Fri, 08 Mar 2024 13:56:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b7f53dd-d6fb-4853-8ea7-99170d9c2a72</guid><dc:creator>sprhawk</dc:creator><description>&lt;p&gt;Here is response returned from west debug&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;$ west debug
-- west debug: rebuilding
[0/31] Performing build step for &amp;#39;tfm&amp;#39;
ninja: no work to do.
-- west debug: using runner jlink
-- runners.jlink: JLink version: 7.94e
-- runners.jlink: J-Link GDB server running on port 2331; thread info enabled
SEGGER J-Link GDB Server V7.94e Command Line Version

JLinkARM.dll V7.94e (DLL compiled Jan 15 2024 15:19:33)

-----GDB Server start settings-----
GDBInit file:                  none
GDB Server Listening port:     2331
SWO raw output listening port: 2332
Terminal I/O port:             2333
Accept remote connection:      yes
Generate logfile:              off
Verify download:               off
Init regs on start:            off
Silent mode:                   on
Single run mode:               on
Target connection timeout:     0 ms
------J-Link related settings------
J-Link Host interface:         USB
J-Link script:                 none
J-Link settings file:          none
------Target related settings------
Target device:                 nrf5340_xxaa_app
Target device parameters:      none
Target interface:              SWD
Target interface speed:        4000kHz
Target endian:                 little

GNU gdb (Zephyr SDK 0.16.5) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later &amp;lt;http://gnu.org/licenses/gpl.html&amp;gt;
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type &amp;quot;show copying&amp;quot; and &amp;quot;show warranty&amp;quot; for details.
This GDB was configured as &amp;quot;--host=x86_64-build_pc-linux-gnu --target=arm-zephyr-eabi&amp;quot;.
Type &amp;quot;show configuration&amp;quot; for configuration details.
For bug reporting instructions, please see:
&amp;lt;https://github.com/zephyrproject-rtos/sdk-ng/issues&amp;gt;.
Find the GDB manual and other documentation resources online at:
    &amp;lt;http://www.gnu.org/software/gdb/documentation/&amp;gt;.

For help, type &amp;quot;help&amp;quot;.
Type &amp;quot;apropos word&amp;quot; to search for commands related to &amp;quot;word&amp;quot;...
Scripting in the &amp;quot;Python&amp;quot; language is not supported in this copy of GDB.
Reading symbols from /home/hongbo/Developer/Embedded/IotPi/lte-tracker/fw/applications/lte_tracker/build/zephyr/zephyr.elf...
Remote debugging using :2331

Resetting target
Loading section rom_start, size 0x154 lma 0x8000
Loading section text, size 0x44808 lma 0x8154
Loading section .ARM.exidx, size 0x8 lma 0x4c95c
Loading section initlevel, size 0xa8 lma 0x4c964
Loading section device_area, size 0xa0 lma 0x4ca0c
Loading section sw_isr_table, size 0x228 lma 0x4caac
Loading section app_shmem_regions, size 0x8 lma 0x4ccd4
Loading section _static_thread_data_area, size 0x2c lma 0x4ccdc
Loading section ctors, size 0xc lma 0x4cd08
--Type &amp;lt;RET&amp;gt; for more, q to quit, c to continue without paging--
Loading section log_const_area, size 0xc0 lma 0x4cd14
Loading section log_backend_area, size 0x10 lma 0x4cdd4
Loading section zephyr_dbg_info, size 0x41 lma 0x4cde4
Loading section shell_area, size 0x30 lma 0x4ce28
Loading section shell_root_cmds_area, size 0x30 lma 0x4ce58
Loading section shell_subcmds_area, size 0x14 lma 0x4ce88
Loading section shell_dynamic_subcmds_area, size 0xc lma 0x4ce9c
Loading section rodata, size 0xb5e8 lma 0x4ceb0
Loading section datas, size 0x5c0 lma 0x58c98
Loading section device_states, size 0x10 lma 0x59258
Loading section log_mpsc_pbuf_area, size 0x44 lma 0x59268
Loading section log_msg_ptr_area, size 0x4 lma 0x592ac
Loading section log_dynamic_area, size 0x60 lma 0x592b0
Loading section k_mem_slab_area, size 0x20 lma 0x59310
Loading section k_mutex_area, size 0x14 lma 0x59330
Loading section k_sem_area, size 0x18 lma 0x59344
Loading section net_buf_pool_area, size 0x34 lma 0x5935c
Loading section kobject_data, size 0x5d0 lma 0x59390
Loading section .last_section, size 0x4 lma 0x59960
Start address 0x00017f20, load size 332121
Transfer rate: 25 KB/sec, 7066 bytes/write.&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: load command inside gdb CLI doesn't flash new image into device</title><link>https://devzone.nordicsemi.com/thread/472967?ContentTypeID=1</link><pubDate>Fri, 08 Mar 2024 13:52:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7cbcf53-d3cd-4cf1-8f90-5ad8731da419</guid><dc:creator>sprhawk</dc:creator><description>&lt;p&gt;I first use&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;west debug&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;to start gdb, then it loaded and flash firmware into nRF5340.&lt;/p&gt;
&lt;p&gt;then inside gdb command line,&lt;/p&gt;
&lt;p&gt;I used the commands ( they are all under gdb command line prompt ) as the code I referenced in my first post.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: load command inside gdb CLI doesn't flash new image into device</title><link>https://devzone.nordicsemi.com/thread/472940?ContentTypeID=1</link><pubDate>Fri, 08 Mar 2024 12:30:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b08ebc83-fabf-4ab8-8e85-c5f0316f04df</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Could you provide all commands that you used in sequential order and relevant commands&amp;#39; output? Where did you run mentioned commands from?&lt;br /&gt;&lt;br /&gt;Which command did you run to get showed loading section? Is the loading section that you showed complete? If not, could you please provide a complete one?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>