I encountered a link error when integrating C7X safertos. It cannot find the LoadP related functions. I found that the LoadP_safertos.c file was not added to the C7X in the makefile. Why is it not added? How should I solve it?
I encountered a link error when integrating C7X safertos. It cannot find the LoadP related functions. I found that the LoadP_safertos.c file was not added to the C7X in the makefile. Why is it not added? How should I solve it?
Load modules are not yet supported in safertos for c7x,
it is only supported for r5f, so these LoadP related files are not included for c7x.
The SafeRTOSConfig.h file in the C7X safertos package provided by WITTENSTEIN defines configINCLUDE_RUNTIMESTATS:
#define configINCLUDE_RUNTIMESTATS ( 1 )
This causes the loadP API, which is not supported by C7X, to be called when compiling the pdk_j721s2_11_00_00_21/packages/ti/osal/src/safertos/TaskP_SafeRTOS.c file, and resulting in compilation and linking errors.
They think this is purely a TI PDK configuration problem. How to resolve this problem?
I hope you are using the tested safertos packages for sdk 11.0
In this version I am not seeing any configINCLUDE_RUNTIMESTATS in c7x source, it is available only in r5f source.
With 11.0 sdk and the mentioned safertos packages it should work without any issues.
May I know which safertos package are they using.
regarding configINCLUDE_RUNTIMESTATS there was a bug for r5f which was resolved in sdk 11.1, refer this Jira
Regards,
Links