core: Fix bootloader for 128KB flash
Got warning on bootloader address calculation when MCU has 128KB flash
This commit is contained in:
parent
ee4686eafc
commit
37a452f7c9
1 changed files with 1 additions and 1 deletions
|
|
@ -138,6 +138,6 @@ void bootloader_jump_after_watchdog_reset(void)
|
|||
#endif
|
||||
|
||||
// This is compled into 'icall', address should be in word unit, not byte.
|
||||
((void (*)(void))(BOOTLOADER_START / 2))();
|
||||
((void (*)(void))( (uint16_t)(BOOTLOADER_START / 2) ))();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue