2018-01-17 04:11 AM
Hallo!
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 failedI 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 flashFailure 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 modemonitor flash set_parallelism_mode 2# Load the program executable
load# Enable Debug connection in low power modes (DBGMCU->CR)
set *0xE0042004 = (*0xE0042004) | 0x7# Set a breakpoint at main().tbreak main# Run to the breakpoint.
continueI 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
Solved! Go to Solution.
2018-03-01 07:38 AM
For anyone who don't uses the KEIL IDE: You can use the STM Cube Programmer to disable the DBANK flag in the Option Byte region of the processor like this:
2018-01-17 05:24 AM
>>
Does this Problem sound familiar to anyone?
On the STM32L4R9-DISCO it was necessary to select the 'Dual Bank' variant of the Flash Algorithm for Keil to program the board. There should be two 2MB algorithms, pick the one you're currently not using.
2018-01-17 07:22 AM
Hallo Clive, its probably a totally stupid question to a pro user, but where can i find that option? Keil Help doest give results, The output of google is Zero. Only searching for Flash algorithm brings me to
http://www.keil.com/support/man/docs/uv4/uv4_fl_flash_algorithms.htm
which tells nothing but leads me to a folder where .FLM files are.
And in Keil the 'options for Target xxxxxx' is totally confusing for ARM beginners.
Could you please point me to that option?
2018-01-17 07:57 AM
Thank you Clive One, that was the solution and very helpfull.
2018-01-17 08:34 AM
2018-03-01 07:38 AM
For anyone who don't uses the KEIL IDE: You can use the STM Cube Programmer to disable the DBANK flag in the Option Byte region of the processor like this:
2018-04-05 08:27 AM
Thanks, this is the correct solution in order to use Atollic True Studio with STML4+
Another Solution with activated FLAG would be to do a full chip erase via ST Link Utility every time a debug session with TS is started.