mirror of
https://github.com/stnolting/neorv32.git
synced 2025-04-23 21:57:33 -04:00
[bootloader] update bootloader
This commit is contained in:
parent
93061d3b38
commit
afb3123bf7
3 changed files with 325 additions and 314 deletions
File diff suppressed because it is too large
Load diff
|
@ -361,7 +361,7 @@ int main(void) {
|
|||
PRINT_TEXT("\n");
|
||||
|
||||
if (c == 'r') { // restart bootloader
|
||||
asm volatile ("li t0, %[input_i]; jr t0" : : [input_i] "i" (BOOTLOADER_BASE_ADDRESS)); // jump to beginning of boot ROM
|
||||
asm volatile ("li t0, %[input_i]; jr t0" : : [input_i] "i" (NEORV32_BOOTROM_BASE)); // jump to beginning of boot ROM
|
||||
__builtin_unreachable();
|
||||
}
|
||||
else if (c == 'h') { // help menu
|
||||
|
|
|
@ -13,7 +13,7 @@ EFFORT = -Os
|
|||
# Enable link-time-optimization
|
||||
USER_FLAGS += \
|
||||
-Wl,--defsym,__neorv32_rom_size=4k \
|
||||
-Wl,--defsym,__neorv32_rom_base=0xFFFFC000 \
|
||||
-Wl,--defsym,__neorv32_rom_base=0xFFE00000 \
|
||||
-Wl,--defsym,__neorv32_ram_size=256 \
|
||||
-DMAKE_BOOTLOADER \
|
||||
-flto
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue