AnsweredAssumed Answered

Multiple software reset conditions.

Question asked by Legrand.Thomas.001 on Sep 9, 2011
Latest reply on Aug 14, 2012 by Clive One

I'm developping an application with bootloader. Today I'm using USART1 to communicate with the host PC, and I'm using a software reset to enter bootloader mode on demand (bootloader check if it's a software reset, if it is, it doesn't start the app code and start loader code).

I don't use any interrupt in the bootloader, so once application download is complete, I can just set the stack and "goto" application entry address.

Now my problem ... new version will include a USB connector (FS, not HS) for communication with the host PC (no need to buy an FTDI cable ...).
So I will have to use interrupts in my bootloader (for USB, and because USART can't be blocking anymore ...).

But if I use interrupts, I can't jump directly to user code, I must reset before, BUT if I do a software reset, the bootloader will not start application code (current behavior).

So now I have to switch between two software reset sources, any idea ?