Part Number: F29H859TU-Q1
I'm seeing error below during linking step in my code.
[9]error #10483-D: unprotected calls from output section "safetyModuleD_codeAPR_Flash" to unprotected symbol "_DebugP_logZone" are not allowed: SECURE_GROUP mismatch; the call is in SECURE_GROUP "CPU1_STACK2_STACK" and the callee is in SECURE_GROUP "sbox_CommonCode_STACK_COMMONCODE"; The linker can not resolve this mismatch because "_DebugP_logZone" uses the stack for arguments and/or return values; relocation type "R_C29_PCREL32" in file "./sdl/sdl_cmpss_ctrip.o" at offset 0x000084 in section ".text.cmpss_test_cmpss_ctrip" with id (6) mapped to output section "safetyModuleD_codeAPR_Flash" represents an unprotected call to unprotected symbol "_DebugP_logZone" in file "./DebugP_freertos.o" in section ".text._DebugP_logZone" with id (4) mapped to output section "CPU1_CommonCodeModule_codeAPR_Flash"
Both secure groups in question are specified in the linker command file as "PUBLIC". My understanding is that the linker would add the necessary trampolines/landing pads to make this call secure. Why is this then an unprotected call error?
linker.cmd snippets: