USB can get past set address

This commit is contained in:
R
2024-04-12 23:53:30 +01:00
parent 5f9fc4959c
commit 8a66c040ca
3 changed files with 110 additions and 26 deletions
+4 -1
View File
@@ -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