USB can get past set address
This commit is contained in:
@@ -92,7 +92,7 @@ _enter_bootloader:
|
||||
.option norelax
|
||||
la gp, __global_pointer$
|
||||
.option pop
|
||||
la sp, _bootloader_stack
|
||||
la sp, 0
|
||||
|
||||
// Load data section from flash to RAM
|
||||
la a0, _data_lma
|
||||
@@ -117,6 +117,9 @@ _enter_bootloader:
|
||||
bltu a0, a1, 1b
|
||||
2:
|
||||
|
||||
li t0, 0x1f
|
||||
csrw 0xbc0, t0
|
||||
|
||||
// Invoke main
|
||||
la t0, main
|
||||
csrw mepc, t0
|
||||
|
||||
Reference in New Issue
Block a user