TinyUSB examples for Fomu fail under Renode simulation (jump to NULL in osal_queue_receive) #3263
Unanswered
sandip-mips
asked this question in
Q&A
Replies: 1 comment 2 replies
-
does the example run on actual hardware, I tested with FOMU but that is a long time ago. Never tried with simulation |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I am trying to run the TinyUSB device examples (
cdc_msc
/dfu
) with the Fomu board configuration inside Renode. The simulation starts, but as soon astud_task()
is called, execution falls into the trap vector.From GDB, I see that inside
osal_queue_receive()
the firmware tries to callqhdl->interrupt_set(false)
, butqhdl
is NULL. That results in a jalr to 0x00000000 and execution ends up intrap_entry
.Additional information
Relevant frames from GDB:
mcause shows Exception Code = 2 (illegal instruction), because execution at address 0 isn’t valid.
Any guidance on getting TinyUSB device examples working in Renode for Fomu?
Beta Was this translation helpful? Give feedback.
All reactions