No ACK received form SPI Bootloader
NB: To view the kvdat files I have attached as part of this post use the KingstVIS Logic Analyser software. Freely availible from https://www.qdkingst.com/en/download . You will also need to decompress them using XZ and Tar
Hi All,
I'm trying to get a bootloader working over SPI to program an STM32WB55. I've been making some good progress with getting the bootloader up and running and I've been able to do some proofs of concepts to make sure that it's working. I have attached Logic Analyser traces of the "Good" behaviour as SPI Bootloader Good.kvdat . This probes the device and reads/writes some locations in SRAM without issue. So, I know I have the fundamental protocol working.
However, when I try to erase the flash the device never returns an ACK to me. It also never returns a NACK, it just sits there sending me 0xA5 for infinity. I have attached this as SPI Bootloader Bad.kvdat . I know the trace I have attached only shows a second or so but I've tried it with multiple minutes and it still doesn't do it. I've worked through the flowchart in AN4286 but I can't see where I'm going wrong, the traces look good to me. I'm just trying a bulk flash erase here to start with. I'll try erasing individual pages once I get this working.
Can anyone point me in the right direction?
Thanks
Chris
