cancel
Showing results for 
Search instead for 
Did you mean: 

STM8L151G4 programming over UART with ROP

Posted on November 21, 2013 at 19:57

Hi, 

I have STM8L151G4 with ROP set and I'm using UART interface. In my software there is an function which jumps to bootloader at 0x602d and it works fine. I can use commands like 'get' or 'go', but writing doesn't work. Here is my comunication log with bootloader after jump with ROP set: 

  Trying to disable ROP:

T: 0x7f

R: 0x79

T: 0x31ce

R: 0x79

T: 0x0000480048

R: 0x79

T: 0x00aaaa

R: timeout

  Trying to write to flash:

T: 0x7f

R: 0x79

T: 0x31ce

R: 0x79

T: 0x0000840084

R: 0x79

T: 0x000000

R: timeout

Is there any way to upgrade firmware or disable ROP through bootloader? Maybe I'm doing something wrong? After these commands nothing happens and bootloader doesn't respond.

0 REPLIES 0