I am currently using Arm Compiler for Embedded FuSa 6.16.2, and my project has been built successfully with the Arm Compiler standard C library. I am now trying to replace only the standard C library with the Functional Safety (FuSa) C Library.
Below is my current environment and configuration:
I first downloaded and installed ArmCLib6.6.BArmv7A+R from the download page.
Then, based on the Libraries and Compiler User Guides, I applied the following settings:
-nobuiltininc
-nostdlib
-nostdlibinc
LIBPATH
C:/Program Files/ArmCLib6.6.BArmv7A+R/lib
fusa_clib_armv7a_hardfp_ropi.b
fusa_clib_armv7a_hardfp_ropi.l
INCLUDE_PATH
C:/Program Files/ArmCLib6.6.BArmv7A+R/include
I selected the following FuSa libraries:
Is this choice correct for Cortex‑R5 + hardfp + little-endian? I could not find a clear selection guide in the documentation. If a library selection guide exists, could you please point me to it?
With the above configuration, my build fails because SEEK_SET, which is normally defined in stdio.h, becomes undefined.
stdio.h
Does this mean that the FuSa C Library does not provide some macros or functions found in the standard C library?
Any guidance or documentation would be greatly appreciated.
As an additional note, I have been reviewing the documents in ArmCLib6.6.BArmv7A+R\documents\safety_manual.
Based on the description in the safety manual, I now understand that I should probably use only fusa_clib_armv7a_hardfp_ropi.l, rather than both the .b and .l libraries.
.b
.l
I will update my configuration accordingly.
I am still waiting for your answers to my previous questions regarding:
SEEK_SET