URL
https://opencores.org/ocsvn/neorv32/neorv32/trunk
Subversion Repositories neorv32
[/] [neorv32/] [trunk/] [sw/] [example/] [demo_freeRTOS/] [README.md] - Rev 36
Compare with Previous | Blame | View Log
# FreeRTOS Demo for the NEORV32 ProcessorThis example shows how to run [FreeRTOS](https://www.freertos.org/) on the NEORV32 processor. It features the default"blinky_demo" and the more sophisticated "full_demo" demo applications. See the comments in `main.c` and the accordingsource files for more information.The chip-specific extensions folder (`chip_specific_extensions/neorv32`) should be in `$(FREERTOS_HOME)/Source/portable/GCC/RISC-V/chip_specific_extensions`,but is placed in this source directory for simplicity.## Hardware Requirements* DMEM/IMEM requriements depend on the actual application (for example: 8kB DMEM and 16kB IMEM for *blinky_demo*)* MTIME (machine timer) + UART + GPIO* `Zicsr` CPU extension## InstructionsDownload FreeRTOS from the [official GitHub repository](https://github.com/FreeRTOS/FreeRTOS) or from the its official homepage.$ git clone https://github.com/FreeRTOS/FreeRTOS.gitOpen the makefile from this example folder and configure the `FREERTOS_HOME` variable to point to your FreeRTOS home folder.FREERTOS_HOME ?= /mnt/n/Projects/FreeRTOSv10.4.1Compile the NEORV32 executable. Do not forget the `RUN_FREERTOS_DEMO` switch.$ make USER_FLAGS+=-DRUN_FREERTOS_DEMO clean_all exeNote: The *.c sources and the FreeRTOS-specific part of the makefile have (include) guards that test if `RUN_FREERTOS_DEMO` is defined.This has no pratical usage for the user - it is just a work-around for the NEORV32 CI environment.Upload the executable (`neorv32_exe.bin`) to the processor via the bootloader and execute it.```Awaiting neorv32_exe.bin... OKCMD:> eBooting...FreeRTOS V10.4.1BlinkBlinkBlink```## FreeRTOS PlusTo automatically add source and include files from FreeRTOS plus extensions add one (or more) of the following arguments when invoking `make`:* FreeRTOS-Plus-CLI: `USER_FLAGS+=-FREERTOS_PLUS_CLI`* FreeRTOS-Plus-TCP: `USER_FLAGS+=-FREERTOS_PLUS_TCP`Example:$ make USER_FLAGS+=-DRUN_FREERTOS_DEMO USER_FLAGS+=-FREERTOS_PLUS_TCP clean_all exe## NotesThe onfiguration of the FreeRTOS home folder (via `FREERTOS_HOME`) is corrupted if the compiler shows the following error:```main.c:36:10: fatal error: FreeRTOS.h: No such file or directory36 | #include <FreeRTOS.h>| ^~~~~~~~~~~~compilation terminated.make: *** [makefile:203: main.c.o] Error 1```
