cancel
Showing results for 
Search instead for 
Did you mean: 

STM8L151K6U6 - Bootloader NACK after sending ADDR+CHECKSUM

ccampes
Associate

I am using an microcontroller to work as a flash programmer (let's call it My-Programmer) for the STM8L151K6U6 over USART.

Basically, the My-Programmer sends the following (in normal text), and receives from STM8 (in bold):

0x7F

0x79

0x31

0xCE

0x79

0x00

0x00

0x80

0x00

0x80

0x1F

I also tried to invert the address endianess, just to make sure I was not doing something wrong, and still, the same behavior is seen.

1 REPLY 1
ccampes
Associate

The problem was that I was using the wrong parity.

It should be set to EVEN parity, then it works. fine.

Data frame: 1 start bit, 8 data bit, no parity bit, 1 stop bit