2013-11-29 02:17 AM
Hello,
I want to verify the UART boot loader ofSTM32L151R8T6 using the following procedure:1. Put device into reset (NRST -> GND)2. Set BOOT0 -> 2.7V & BOOT1 -> 0 V (-> System memory (boot loader))3. Set VDD -> 2.7 V4. Connecting GND, UART_TX1 and UART_RX1 to host UART cable5. Release reset6. STMFlashLoader.exe -c --pn 11 --br 115200 --to 5000 -i STM32L_Med-density-64K -p --drp -d --fn fw.hex --vOutput on console:Opening Port [OK]Activating device [OK]disabling read protection [KO] DOWNLOADING ...downloading page 0 @0x 8000000 size 0.25(KB) [KO]The flash may be read protected; use -p --drp to disable write protection. [KO] Press any key to continue ...I always get a fail [KO] on the drp. No problem at all to use jlink.exe or program/debug using IAR.If I skip the drp switch it will still fail on downloading phase.
Any hints?
Thanks
jens
2013-12-02 04:56 AM
I don't have any specific knowledge about your issue, I am using our own loader to talk to the system loader. Would suggest you verify the parity settings, quality of your serial port, and review the source and system loader responses to better understand the failure.