Closed mastupristi closed 1 week ago
Have you considered using overrideLaunchCommands
instead of postLaunchCommands
Also, don't duplicate what we do in your customizations or it will become a mess, and, most things in it are not even needed.
I have to close this issue as I can't see what the issue is. It is up to you to customize
The problem I'm having is a reset issued after writing the flash. In fact, writing the flash also sets the PC, the subsequent reset nullifies this setting.
Yes, we have to do that so that after programming, the execution starts at the reset vector and not at some random location in some random memory. Like I said, you can override this...
Have you considered using
overrideLaunchCommands
instead ofpostLaunchCommands
Also, don't duplicate what we do in your customizations or it will become a mess, and, most things in it are not even needed.
I will try using overrideLaunchCommands
then. Where can I find the list of steps that are done by default?
I have to close this issue as I can't see what the issue is. It is up to you to customize
Yes, no problem at all. I wrote here because I couldn't find a community (mailing list or forum) in which to start a discussion.
Yes, we have to do that so that after programming, the execution starts at the reset vector and not at some random location in some random memory.
This is not always the scenario. In any case, writing the flash (I don't know if also the ram) also causes the PC to be written, loading the entry point into it. So the execution would not start at a random location but at the right address,
best regards
See https://github.com/Marus/cortex-debug/wiki/Cortex-Debug-Under-the-hood
If you enable debug, every command sent to gdb is shown.
I'm using vscode 1.94.0, cortex-debug 1.12.1 preview, Segger JLink 7.98h and arm-gnu-toolchain-13.3.rel1-x86_64-arm-none-eabi toolchain. JLink script and settings file are copied from NXP SDK:
The board I am testing with is NXP MIMXRT1170 EVKB. The problem I'm having is a reset issued after writing the flash. In fact, writing the flash also sets the PC, the subsequent reset nullifies this setting.
one workaround I found is to use postlaunch commands to write the elf in flash one more time only to have the PC rewrite:
MCUXpresso IDE has a checkbox for not issuing the second reset:
Where can I find the cortex-debug equivalent?