RISC-V Microcontrollers DISCUSSION

Moving an interrupt-driven driver between RISC-V MCUs: what is not defined by the ISA?

Started by universityhelponline RISC-V interruptsMCU portabilityinterrupt controllerperipheral driversboard support
3 replies 248 views 4 participants
Latest activity · 27 Sep 2026

Moving an interrupt-driven driver between RISC-V MCUs: what is not defined by the ISA?

universityhelponline RISC-V Microcontrollers Forum
#1

Community replies 3

Re: Moving an interrupt-driven driver between RISC-V MCUs: what is not defined by the ISA?

#2

The instruction set does not make peripheral addresses, interrupt routing or clock trees identical. Read each MCU's interrupt-controller and UART documentation, including vector or dispatch setup, priority handling and the order used to acknowledge a pending condition.

Re: Moving an interrupt-driven driver between RISC-V MCUs: what is not defined by the ISA?

#3

Separate reusable protocol logic from register access and board initialization. Check the startup code and runtime's interrupt entry conventions, especially when mixing vendor libraries and custom assembly. A handler with the correct C name can still be connected through the wrong mechanism.

Re: Moving an interrupt-driven driver between RISC-V MCUs: what is not defined by the ISA?

#4

Bring up polling first, then a single interrupt source with a visible event marker. Test repeated events and simultaneous sources so a missing acknowledgement does not remain hidden. A supported board package can reduce porting effort, but its actual peripheral coverage still needs checking.

TEP COMMUNITY