Using embOS with Renesas RA family, Flexible Software Package (FSP) and IAR
The Renesas Flexible Software Package (FSP) is an enhanced software package designed to provide easy-to-use, scalable, high-quality software for embedded system designs using Renesas RA family of Arm Microcontrollers. https://www.renesas.com/us/en/software-tool/flexible-software-package-fsp
embOS board support packages (BSPs) for Renesas RA device and evalboards are designed to use the Renesas Flexible Software Package.
If a customer like to replace the existing FSP files with new generated FSP files a few changes need to be kept:
IAR EWARM
IAR EWARM uses the symbol CSTACK for the stack and CSTACK is used internally in embOS.
1. fsp.icf
rw section CSTACK };
rw section CSTACK,
2. bsp_compiler_support.h
#define BSP_SECTION_STACK BSP_UNINIT_SECTION_PREFIX "CSTACK"
3. system.c
#define BSP_PRV_STACK_LIMIT ((uint32_t) __section_begin("CSTACK"))
#define BSP_PRV_STACK_TOP ((uint32_t) __section_end("CSTACK"))
#pragma section="CSTACK"