TDA4VM: Processors forum

Part Number: TDA4VM

Tool/software:

Clarification on TOG Module Example Implementation Details

1. Regarding the Placement of Fault Injection Functions in a Separate Linker Section:

Is there a specific reason that the fault injection functions in the TOG functional test are placed in a separate linker section? For example:

__attribute((section(".text:TOG_test"))) void TOG_injectWKUP_ESMError(uint32_t instanceIndex);
__attribute((section(".text:TOG_test"))) void TOG_injectTimeoutError(uint32_t instanceIndex);
__attribute((section(".text:TOG_test"))) void TOG_injectESMtimeOutError(uint32_t instanceIndex);
__attribute((section(".text:TOG_test"))) void TOG_injectMCU64BTimeoutError(uint32_t instanceIndex);
__attribute((section(".text:TOG_test"))) void TOG_injectESMError(uint32_t instanceIndex);
__attribute((section(".text:TOG_test"))) void TOG_injectESMError_AC_CFG_TO_AC(uint32_t instanceIndex);
__attribute((section(".text:TOG_test"))) void TOG_injectMCU_ESMError(uint32_t instanceIndex);
__attribute((section(".text:TOG_test"))) void TOG_injectQOS_ESMError(uint32_t instanceIndex);


2. Clarification on enableABORT and disableABORT Functions:

Could you provide more details about the actual operation of the enableABORT and disableABORT functions? Specifically:

  • What is their intended role in the context of the TOG module?
  • Are these functions safe and recommended to use for self-test purposes on any TOG instance running on the target hardware?
  • Hi,

    1. Regarding the Placement of Fault Injection Functions in a Separate Linker Section:

    They are all part of the text section. The separation, I believe is to provide readability and follow coding guidelines.

    Could you provide more details about the actual operation of the enableABORT and disableABORT functions? Specifically:

    The enableABORT and disableABORT APIs are included in the SDL standalone test application to avoid the application from going into an abort for testing purposes. In your actual application, you would have to include an abort handler instead of disabling the abort.

    Regards,

    Josiitaa