2022-08-17 06:22 PM
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.
2022-08-19 01:32 AM
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