SPI bootloader fails to accept every other command.
I am trying to use the SPI bootloader on a Nucleo F446ZE board and have problems when issuing commands. The symptom is that every other command is not acknowledge and every other works fine. Trying for instance the GET_VERSION command gives the following:
MOSI MISO
0x5A 0xA5
0x01 0xA5
0xFE 0xA5
The second time around it all works fine
MOSI MISO
0x5A 0x79 ---- Start of frame
0x01 0x79 ---- Command
0xFE 0x79 ---- ~Command
0x00 0x79 ---- Ack frame
0x00 0x79
0x79 0x79
0x00 0x79 ---- Dummy read
0x00 0x11 ---- Version
0x00 0x79 ---- Ack frame
0x00 0x79
0x79 0x79
It seems very strange that the command ends fine with a 0x79 but when sending the next 0x5A this returns A5 and no 0x79. I have the same problem with GET and ERASE as well.
By the way: the version returned is 0x11.
