cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WL5MOC Bootloader NACK

alexemdesgagne
Associate II

Hi,

I'm having an issue regarding sending commands to the Bootloader by UART. My commands are followed by a NACK. I'm working with an STM32WL5MOC and my baudrate is set at 9600 (Also tried with 115200). Here's my sequence:

Sending 0x7F twice and receiving an ACK. Then, sending 0x00FF to get the commands and receiving a NACK.

alexemdesgagne_3-1727798638503.png

If I'm sending 0x7F once, I'm receiving a NACK after the byte 0x00 of my first command as bellow. It's kind of unsync.

alexemdesgagne_1-1727798409265.png

Do you have an idea of why I'm getting NACK after each command I'm trying to send? According to the AN3155, 0x00 is not a protected command and should receive something.

Thanks,

Alexandre

 

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

Looks like you're using 8-N-1. Bootloader expects even parity, 8-E-1. So you should have 9 bits sent for each byte.

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

1 REPLY 1
TDK
Guru

Looks like you're using 8-N-1. Bootloader expects even parity, 8-E-1. So you should have 9 bits sent for each byte.

If you feel a post has answered your question, please click "Accept as Solution".