This repository contains the port of FreeRTOS for Renesas RH850/F1K and F1Kx microcontrollers using the CC-RH compiler. The following sections provide instructions on how to use this port, a link to the test project, and other relevant information.
Device | FPU | SMP |
---|---|---|
F1K | Yes | No |
F1KM-S1 | Yes | No |
F1KM-S2 | Yes | No |
F1KM-S4 | Yes | No |
F1KH-D8 | Yes | Yes |
The test project can be found here (RH850_F1Kx_CCRH
). This project contains example tasks and configurations to help you get started with FreeRTOS on the RH850/F1K and F1Kx.
Channel 0
and address 0xFFFEEC00
are used as default configuration for configIPIR_CHANNEL and configEXCLUSIVE_ADDRESS, in case of resource confliction other channel/address can be used. (2)(task_context_size) * (1 + configMAX_INT_NESTING) + Stack_depth_of_taskcode
In which, task_context_size
is calculated as 36*4bytes = 144bytes
(when FPU enabled) or 34*4bytes = 136
(when FPU disabled), configMAX_INT_NESTING is 02 as default.configTIMER_PRESCALE
: This value is required in order to correctly configure clock for CPUCLK_L
. Refer to Hardware Manual at Table 44.22
for option byte
: If the user sets the option byte CKDIVMD to 1
, then configTIMER_PRESCALE = 4
. Otherwise, if CKDIVMD is set to 0
, then configTIMER_PRESCALE = 2
.(1) This is applicable for F1KH-D8 with SMP only.
(2) This is optional and applicable for SMP only.
Documentation:
Support:
Contributing: