-
Hello, I have multiple interrupt sources, being uart, wdt and a timer. The timer interrupts works. However when adding the UART0 RX interrupt, it is not triggering an ISR. In my uart_init and timer_int function I register the ISR as follows:
and
In my init_core function:
Is this the correct way ? best regards Simon |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hey there!
Watchdog interrupt?? Which version of the core are you using?
Basically, this is correct. You can use the "raw" RTE IDs: neorv32/sw/lib/include/neorv32_rte.h Lines 21 to 56 in b3418fd Or you can use the more convenient device-specific aliases like the one you are using: neorv32/sw/lib/include/neorv32.h Line 113 in b3418fd
Your interrupt-enabled code (
That looks good! Maybe there is a problem with the device-specific interrupt configuration? For example, if you want to trigger the UART0 interrupt when the RX FIFO becomes not-empty: // enable IRQ if RX FIFO not empty
neorv32_uart0_setup(BAUD_RATE, 1 << UART_CTRL_IRQ_RX_NEMPTY); |
Beta Was this translation helpful? Give feedback.
-
Thanks for your quick response. Brackets, brackets, brackets :( I changed it to:
Which resulted in correct behaviour. |
Beta Was this translation helpful? Give feedback.
Thanks for your quick response.
Brackets, brackets, brackets :(
I changed it to:
Which resulted in correct behaviour.