Hi,
every now and then we have the problem that when the debugger is started, it does not jump into the main routine and stops there. Together with this problem, the error message that the readout protection is activated, comes up every now and then. We don't know why the readout protection should be activated. We don't use this feature.
For a first test we want to disable the readout protection in the GDB startup script. This is the actual startup script.
Display All
How can I unlock the readout protection in the GDB startup script? In the software we have to do this with these commands.
What are the corresponding commands in the debug script?
OS: Windows 7
IDE: Atollic V9.3.0.
Micro: ST32F091RC
Debugger: Segger J-LINK Ultra+
Thanks for your help.
every now and then we have the problem that when the debugger is started, it does not jump into the main routine and stops there. Together with this problem, the error message that the readout protection is activated, comes up every now and then. We don't know why the readout protection should be activated. We don't use this feature.
For a first test we want to disable the readout protection in the GDB startup script. This is the actual startup script.
Source Code
- # Default GDB command file (FLASH) for SEGGER J-LINK and STMicroelectronics STM32F091RC microcontroller.
- # Set character encoding
- set host-charset CP1252
- set target-charset CP1252
- # Set JTAG speed to 30 kHz
- monitor speed 30
- # Set GDBServer to little endian
- monitor endian little
- # Reset the chip to get to a known state.
- monitor reset
- # Set auto JTAG speed
- monitor speed auto
- # Setup GDB FOR FASTER DOWNLOADS
- set remote memory-write-packet-size 1024
- set remote memory-write-packet-size fixed
- # Enable flash download
- monitor flash download = 1
- # 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
- # Set a breakpoint at main().
- tbreak main
- # Run to the breakpoint.
- continue
How can I unlock the readout protection in the GDB startup script? In the software we have to do this with these commands.
What are the corresponding commands in the debug script?
OS: Windows 7
IDE: Atollic V9.3.0.
Micro: ST32F091RC
Debugger: Segger J-LINK Ultra+
Thanks for your help.