AnsweredAssumed Answered

Can not Programm STM32L4R5 Nucleo Board

Question asked by Alexander Wolf on Jan 17, 2018
Latest reply on Apr 5, 2018 by Alexander Wolf


Next to almost all other available nucelo boards I now own two STM32L4R5 Nucleo boards. The first one arrived last week, the second today. Long story short, i can not programm the Nucleo boards. Today i got a brand new borad, because i thought i might have bricked the other one. Connecting it first to PC the pre programmed  Push button & Blinking LED programm worked. Next step was checking the via ST-Link Upgrade the Firmware version which is V2.J29.M18 and seems to be up to date. I did not touch any jumper ( attached Photo) .

So i opened the STM32L4R5ZI-Nucleo examples from CubeMX and opened one example with Keil MDK ARM uVision and build it. But Programming now showed plenty of Errors ( Attached JPG): Errors like:

Content mismatch at: xxxxxx Flash xxxx...
Error: Flash Download failed


I also own a License of True Studio, so i generated a plain Project with cubeMX and also failed to programm the nucleo board, with a
Error writing data to flash

Failure at line:6 in "target Software Startup Scripts". Please edit debug Configuration settings.

which i checked, but couldnt find anything suspicious,

Startup Skripts:

# Set flash parallelism mode to 32, 16, or 8 bit when using STM32 F2/F4 microcontrollers
# 2=32 bit, 1=16 bit and 0=8 bit parallelism mode
monitor flash set_parallelism_mode 2


# Load the program executable


# Enable Debug connection in low power modes (DBGMCU->CR)
set *0xE0042004 = (*0xE0042004) | 0x7
# Set a breakpoint at main().
tbreak main


# Run to the breakpoint.


I doublechecked the Jumpers with the Nucleo Manual but could find any wrong connections. All other MCUs L0 L1 L4 F4 ... can still be programmed.


Does this Problem sound familiar to anyone? Thnaks in advance