Skip to main content
Visitor II
August 18, 2022
Question

STM8L151K6U6 - Bootloader NACK after sending ADDR+CHECKSUM

  • August 18, 2022
  • 1 reply
  • 625 views

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.

    This topic has been closed for replies.

    1 reply

    ccampesAuthor
    Visitor II
    August 19, 2022

    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