STM32L412 issues...
I have built many STM32 boards and usually bringing them up is a snap.
This time I'm having trouble.... The chip is the 48-pin STM32L412CB.
When I boot in DFU mode (it does so by default) I get
dfu-util: Error during special command "ERASE_PAGE" get_statusWhen I hook up the STLINK-V2 debugger, I seem to get ONE chance where the chip claims to get programmed ok. After that I always get:
ERROR flash_loader.c: flash loader run errorbut in both cases... nothing gets programmed.
In the debugger I can dump memory at 0x20000000: RAM and I see some sort of vector table. Probably that "flash loader" program that st-util uploads. When I dump the memory at 0x08000000 (Main flasn), then I see just empty flash. What could be wrong to cause this behavior ?
One of the things that I see happening is that it always boots to the bootloader. But this can be explained by the first word in main flash still being 0xffffffff. ...
Any suggestions on what to try or what might cause this?