bootloader verifies signature
This commit is contained in:
@@ -51,7 +51,7 @@ __asm void BOOT_jump(uint32_t sp, uint32_t pc)
|
||||
bx r1
|
||||
}
|
||||
#else
|
||||
void BOOT_jump(uint32_t sp, uint32_t pc)
|
||||
void __attribute__((optimize("O0"))) BOOT_jump(uint32_t sp, uint32_t pc)
|
||||
{
|
||||
(void) sp;
|
||||
(void) pc;
|
||||
@@ -78,7 +78,7 @@ static void resetPeripherals(void)
|
||||
* Boots the firmware. This function will activate the vector table
|
||||
* of the firmware application and set the PC and SP from this table.
|
||||
*****************************************************************************/
|
||||
void BOOT_boot(void)
|
||||
void __attribute__((optimize("O0"))) BOOT_boot(void)
|
||||
{
|
||||
uint32_t pc, sp;
|
||||
|
||||
|
@@ -8,7 +8,7 @@
|
||||
#include "InitDevice.h"
|
||||
|
||||
void bootloader_init(void);
|
||||
|
||||
uint8_t REBOOT_FLAG;
|
||||
|
||||
int main(void)
|
||||
{
|
||||
@@ -81,7 +81,7 @@ bootmode:
|
||||
// printf("accum: %d\n", (uint32_t)accum);
|
||||
// printf("dt: %d\n", t2 - dt);
|
||||
// dt = t2;
|
||||
memset(hidmsg, 0, sizeof(hidmsg));
|
||||
// memset(hidmsg, 0, sizeof(hidmsg));
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -89,7 +89,11 @@ bootmode:
|
||||
}
|
||||
ctaphid_check_timeouts();
|
||||
|
||||
if (REBOOT_FLAG) break;
|
||||
}
|
||||
|
||||
// delay(100);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user