cancel
Showing results for 
Search instead for 
Did you mean: 

UART boot loader of STM32L151R8T6 problem

jens
Associate
Posted on November 29, 2013 at 11:17

Hello,

I want to verify the UART boot loader of

STM32L151R8T6 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 V

4. Connecting GND, UART_TX1 and UART_RX1 to host UART cable

5. Release reset

6. STMFlashLoader.exe -c --pn 11 --br 115200 --to 5000 -i STM32L_Med-density-64K -p --drp -d --fn fw.hex --v

Output 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

1 REPLY 1
Posted on December 02, 2013 at 13:56

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..