Skip to content

XIRQ on FreeRTOS #347

Answered by stnolting
thibautgravey asked this question in Q&A
Jun 13, 2022 · 3 comments · 6 replies
Discussion options

You must be logged in to vote

I have updated my FreeRTOS to version V10.4.4, which has much better RISC-V support! 😄

The NEORV32 example project from sw/example/demo_freeRTOS works without problems with this newer version.

The new FreeRTOS version provides a "hook" for all non-default interrupts:

https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/356fff8028734dc50a46972b2e315e2871b0a12e/portable/GCC/RISC-V/portASM.S#L360-L362

So I have modified the default "blink" NEORV32 demo:

This is a simple edit to enable XIRQ channels 0 and 1. Note that this is done on low-level without using the default XIRQ functions, as these rely on the NEORV32 RTE, which we cannot use here.

static void prvSetupHardware( void )
{
  // install t…

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@stnolting
Comment options

@matty0005
Comment options

@stnolting
Comment options

@matty0005
Comment options

@stnolting
Comment options

Answer selected by thibautgravey
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants