I am currently working on enabling the flash memory safety mechanism (SM1.FLASH.AI_SELFCHECK) and have a few questions regarding the implementation.
I found two relevant APIs in the c40_ip driver: C40_Ip_ArrayIntegrityCheck and Fls_IPW_CheckUserTestStatus.
1. If C40_Ip_ArrayIntegrityCheck starts the flash integrity test and returns the test status (true or false), what is the specific purpose of the Fls_IPW_CheckUserTestStatus API?
2. I understand that the code needs to be copied from flash to SRAM before running the flash integrity test. Could you please provide guidance on how to implement this? What specific changes are required in the linker script?
3. In the latest AUTOSAR standard, the mem40_Infls module is used. Previous AUTOSAR versions included the fls module, which provided configuration options for a user test mode. How can the user test functionality be achieved using the latest AUTOSAR version?
Thank you for your help with these queries.