trezorhal: chain loading works

This commit is contained in:
Pavol Rusnak 2017-03-30 16:50:39 +02:00
parent d3ec688d6f
commit 5e69cbe69f
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
2 changed files with 5 additions and 0 deletions

View File

@ -128,7 +128,11 @@ int main(void)
BOOTLOADER_PRINTLN("starting bootloader"); BOOTLOADER_PRINTLN("starting bootloader");
// TODO: remove debug // TODO: remove debug
BOOTLOADER_PRINTLN("waiting 1 second");
HAL_Delay(1000);
BOOTLOADER_PRINTLN("jumping to loader");
jump_to(LOADER_START); jump_to(LOADER_START);
// end
if (check_sdcard()) { if (check_sdcard()) {
if (!copy_sdcard()) { if (!copy_sdcard()) {

View File

@ -23,6 +23,7 @@ int main(void)
display_backlight(255); display_backlight(255);
LOADER_PRINTLN("reached loader"); LOADER_PRINTLN("reached loader");
LOADER_PRINTLN("waiting 1 second");
HAL_Delay(1000); HAL_Delay(1000);
LOADER_PRINTLN("jumping to firmware"); LOADER_PRINTLN("jumping to firmware");