CubeIDE debugger vs Atollic, how to make a startup script?
Apologize if this was already asked, I cannot find answers here.
In the Atollic debugger config there's a Startup script tab.
Default script looks like this:
# Set flash parallelism mode to 32, 16, or 8 bit when using STM32 F2/F4 microcontrollers
# Uncomment next line, 2=32 bit, 1=16 bit and 0=8 bit parallelism mode
# Set flash parallelism mode to 32, 16, or 8 bit when using STM32 F2/F4 microcontrollers
# Uncomment next line, 2=32 bit, 1=16 bit and 0=8 bit parallelism mode
#monitor flash set_parallelism_mode 2
# Set character encoding
set host-charset CP1252
set target-charset CP1252
# Reset to known state
monitor reset
# Load the program executable
load
# Reset the chip to get to a known state. Remove "monitor reset" command
# if the code is not located at default address and does not run by reset.
monitor reset
# Enable Debug connection in low power modes (DBGMCU->CR)
set *0xE0042004 = (*0xE0042004) | 0x7
# Set a breakpoint at main().
tbreak main
# Run to the breakpoint.
continueCubeIDE for ST-LINK server has two areas: Initialization commands and Run commands, both empty.
Questions:
- What commands CubeIDE debugger issues by default when both areas are empty?
- Where can we find reference of available commands?
- If the server commands are same as for Atollic, where to break the Atollic script to "initialization" and "run" sections?
Actually I want to replace the "load" command to some action of my own bootloader which activates after the 1st reset (line 12), and avoid the 2nd reset after the "load" (as suggested by comment in line 18)
I'm looking for a way to load stuff into external volatile RAM without a custom external loader.
Any ideas?
-- pa
