SDK:S32K3_RTD_3_0_0_P01_D2303_ASR_REL_4_7_REV_0000_20230331
When developing on the S32K312 development board, we encountered the following two problems related to cache.
We are concerned that there may be other similar cache issues with the above SDK and would like to confirm
1. Will the above SDK still have similar cache issues
2. How, if anything, can you fix it
Problem 1: In the SDK C40 configuration C40_PROGRAM_VERIFICATION_ENABLED function is effective, write flash will never fail, report STATUS_C40_IP_ERROR_PROGRAM_VERIFY error
Reason: In the C40_Ip_MainInterfaceWriteStatus function, the cache is synchronized only when C40_PROGRAM_VERIFICATION_ENABLED is invalid, and the cache is not synchronized when it is valid, resulting in Verify error
Problem 2: Reading the register 0x4038C000+0x280 fails to read the correct answer from the service
Reason: It is speculated that the cache problem is causing the correct register value to not be read
Solution: Before writing the request to the service, call cashe clean of the Cashe Ip in the sdk
Hi zhaokang,
When you enable below parameters:
you have cache synchronized before data verified:
Best regards,
Nhi