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+

Renesas.RA_mcu_ra0e1.5.6.0.packRenesas.RA.5.6.0.pack


  • No labels

1 Comment

  1. Three minor comments:

    1. Need to install new e2 studio version, we found e2 studio 2022 doesn't work while e2 studio 2024-10 is OK.
    2. If the user's environment doesn't have the FSP 5.6.0 (no matter whether there already has a older or newer version), to use the custom FSP pack, need to install the FSP 5.6.0 firstly.
    3. After import the custom packs, needs to restart the e2studio, then the new packs can take effect.
    1. You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.