cancel
Showing results for 
Search instead for 
Did you mean: 

Error during debugging - Failure at line: 13 in 'Target Software Startup Scripsts'.

MMart.16
Associate

Hey guys

I am having a problem with my NUCLEO-L073RZ approval board and would like to ask your help:

I use Atollic Truestudio for programming and debugging my NUCLEO board. When I plug in the board and start debugging, it returns the following error:

Failure at line: 13 in 'Target Software Startup Scripsts'. 

Please edit the debug configuration settings

Error finishing flash operation .

I've tried erasing the flash using the ST-LINK Utility, but it keeps giving the same error. I've also uninstalled Atollic Truestudio and formatted the computer and I couldn't solve this problem either. Another important point to highlight is that when I use STMCUBEIDE and debugging happens normally without errors.

Debug Settings

# 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.

continue

Thank you all.

0 REPLIES 0