Make the left half call NVIC_SystemReset() upon receiving SlaveCommand_JumpToBootloader instead of jumping to the ROM address of the bootloader. This way the bootloader timeouts. Remove bootloader.c because it only contained JumpToBootloader() which is now unused.
This commit is contained in:
@@ -43,7 +43,7 @@ void SlaveRxHandler(void)
|
||||
uint8_t commandId = RxMessage.data[0];
|
||||
switch (commandId) {
|
||||
case SlaveCommand_JumpToBootloader:
|
||||
JumpToBootloader();
|
||||
NVIC_SystemReset();
|
||||
break;
|
||||
case SlaveCommand_SetTestLed:
|
||||
TxMessage.length = 0;
|
||||
|
||||
Reference in New Issue
Block a user