I am attempting to implement event recording on an STM32L476RCT6TR microcontroller using the ARM Compiler version 5.
I followed the steps in this Arm documentation: https://learn.arm.com/learning-paths/embedded-and-microcontrollers/uv_debug/3_event_recorder/.
After including #include "EventRecorder.h" in main.c, I received this error:
#include "EventRecorder.h"
main.c
C:\Users\xxxx\Application\Middlewares\EventRecorder\Source\EventRecorder.c(32): error: #5: cannot open source input file "stdatomic.h": No such file or directory
My Runtime Environment configuration is shown below:
I searched for the stdatomic.h header file and found it in these locations:
stdatomic.h
C:\Users\xxxxx\AppData\Local\Keil_v5\ARM\ARMCLANG\include\libcxx\
C:\Users\xxxxx\AppData\Local\Keil_v5\ARM\ARMCLANG\include
C:\Users\xxxxx\AppData\Local\Keil_v5\ARM\ARMCLANG\lib\clang\19\include
However, adding these paths to my project's include directories resulted in numerous compilation errors. I suspect these are not the correct header files for my project.
I also observed that the Event Recorder package is located at:
C:\Users\xxxxx\AppData\Local\Arm\Packs\ARM\CMSIS-View\1.2.0\
and stdatomic.h is not present within that directory."
For more details, here are all the files I found on my system:
Note: I intend to perform event recording using the ST-Link debugger.
Could you please assist me in resolving this issue? I suspect a configuration error in my environment. Could you tell me where stdatomic.h is expected to be located?