If for some reason you get a NAK talking to the boot loader is the only recourse to reboot the STM32?
I am writing SW in python to eventually program the STM32G051K8 over the UART from a BeagleBone Black (BBB). For testing I am doing it from the PC with a TTL-232R-3V3-WE USB to TTL Serial adapter.
At the moment I am making routines for each command.
What I am discovering, is that if something happens and a command returns a NAK, all of the following commands return a NAK and there is no recovery other than a HW reset.
For me it is not a big, deal as long as I know that is how it is supposed to work.
Right now I have the Get Command, Get Version, and Get ID commands working. And I am having some issue with the Get Read command. But after I do, none of the other commands that were working now work, they always return a NAK, until I ground the reset pin. Then I send the 0x7F to reset the baudrate, and I can continue.
Is this how it is supposed to work? Like I said, if that is the case I can work around it. (right now the PC cannot automatically toggle the reset line, I have to do that manually, but the BBB will be able to.)
If that is not how it is supposed to work, what am I doing wrong and how can I get it working after a NAK without a HW reset?
