Skip to main content
Associate II
October 1, 2024
Solved

STM32WL5MOC Bootloader NACK

  • October 1, 2024
  • 1 reply
  • 810 views

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

 

Best answer by TDK

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.

1 reply

TDK
TDKBest answer
Super User
October 1, 2024

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""."