URL
https://opencores.org/ocsvn/neorv32/neorv32/trunk
Subversion Repositories neorv32
[/] [neorv32/] [trunk/] [sw/] [example/] [demo_freeRTOS/] [README.md] - Rev 22
Go to most recent revision | Compare with Previous | Blame | View Log
# FreeRTOS Demo for the NEORV32 ProcessorThis is simple example shows the usage of [FreeRTOS](https://www.freertos.org/) on the NEORV32 processor. It uses the default *blink*demo application (`blinky_demo/main_blinky.c`). See the comments in that source file 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* 8kB DMEM and 16kB IMEM* MTIME (machine timer)* `Zicsr` CPU extension## InstructionsDownload FreeRTOS from the [official GitHub repository](https://github.com/FreeRTOS/FreeRTOS).$ git clone https://github.com/FreeRTOS/FreeRTOS.gitOpen the makefile from this example folder and configure the `FREERTOS_HOME` variable to point to the `FreeRTOS/FreeRTOS` home folder.FREERTOS_HOME ?= /mnt/n/Projects/FreeRTOS/FreeRTOSCompile 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.3.1BlinkBlinkBlink```## NoteThe 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```
Go to most recent revision | Compare with Previous | Blame | View Log
