FSP library is based on ARM CMSIS-Core (Cortex-M) so compilation for Cortex-M0+ is possible. FSP have even exception for Cortex-M0+ in ra/fsp/src/bsp/mcu/all/bsp_delay.c :
The FSP library is delivered in *.pack files which are just zipped folders containing code and configuration files. Adding new MCU would require help from MCU team or deeper investigation so to tests Cortex-M0+ compilation RA0E1 MCU was used.
ARM Cortex configuration and include file in R7FA0E107.h from Renesas.RA_mcu_ra0e1.5.6.0.pack was changed to Cortex-M0+.
Cortex-M0+ architecture was added to renesas.h from Renesas.RA.5.6.0.pack to avoid warning
Next all the files have to be zipped and extension changed to .pack. Updated .pack files can be imported to e2-studio using Help→CMSIS Packs Management→Renesas RA
Finally compiler configuration in project settings have to be changed to Cortex-M0+
Now after regeneration of FSP files RA0E1 project will be complied for Cortex-M0+
1 Comment
Felix Gou
Three minor comments: