перенесла обработчик прерывания от freeRTOS в рамку и сделала переход на него через j в trap_entry, теперь как будто заработало. Блинк работает, но analogRead очень тормозит почему-то
This commit is contained in:
1 parent
b28f4ee090
commit
2a32262053
3 files changed
+7
-8
No files matched your search
@@ -112,11 +112,9 @@ SystemInit:
|
||||
.section .trap_text, "ax"
|
||||
// .org should be consistent with
|
||||
// default mtvec value (set in scr1_arch_description.svh)
|
||||
//.org 0xC0
|
||||
//.org 0xC0 //j raw_trap_handler
|
||||
trap_entry:
|
||||
// j raw_trap_handler
|
||||
la t0, freertos_risc_v_trap_handler
|
||||
jalr t0
|
||||
j freertos_risc_v_trap_handler
|
||||
|
||||
raw_trap_handler:
|
||||
// Save registers
|
||||
|
||||
Reference in new issue
Block a user