fsp icon indicating copy to clipboard operation
fsp copied to clipboard

IAR linker files with 2 identical memory_regions.icf files

Open pyhalte opened this issue 2 years ago • 4 comments

There appears to be 3 .icf files on my project directory:

./memory_regions.icf
./script/memory_regions.icf
./script/fsp.icf

Those 2 memory_regions.icf files have the exact same content.

If I delete all three files, and then use Smart Configurator to regenerate project files, only following files are generated:

./memory_regions.icf
./script/fsp.icf

Now recompile fails because IAR cannot find memory_regions.icf, which presumably should be in ./script folder.

I suspect that this is an error in file generation and only ./script/memory_regions.icf should be created, and ./memory_regions.icf should not even exist.

Using FSP 3.6.0, but project was originally created with FSP 3.0.0 .

pyhalte avatar Apr 08 '22 09:04 pyhalte

./script/memory_regions.icf seems to have existed from the beginning of the project (FSP 3.0.0), but ./memory_regions.icf was created when project was updated from FSP 3.5.0 to 3.6.0 .

pyhalte avatar Apr 08 '22 09:04 pyhalte

Hi @pyhalte thanks for the information. I'd like to verify your setup. Are you using the IAR compiler with e2 studio or are you using RASC with IAR Embedded Workbench? This sounds like RASC and IAR EW.

renesas-brandon-hussey avatar Apr 08 '22 17:04 renesas-brandon-hussey

It is RASC with IAR EW. Installer was 'setup_fsp_v3_6_0_rasc_v2022-01.exe'.

pyhalte avatar Apr 11 '22 08:04 pyhalte

It appears that IAR EW is getting out of sync with the RASC project. RASC communicates information to RASC using the buildinfo.ipcf file. The location of the memory_regions.icf file changed between FSP v3.0.0 and FSP v3.6.0 and it seems the new location is not being configured to be searched by the linker. A member of our Tools team will investigate this. For now, you should be able to work around this issue by adding --config_search "$PROJ_DIR$" to Linker >> Extra Options as shown below.

image

renesas-brandon-hussey avatar Apr 11 '22 14:04 renesas-brandon-hussey