S32K312 about CACHE

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K312 about CACHE

879 Views
zhaokang
Contributor I

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

1 Reply

585 Views
Nhi_Nguyen
NXP Employee
NXP Employee

Hi zhaokang,

When you enable below parameters:

Nhi_Nguyen_0-1692612279519.png

you have cache synchronized before data verified:

Nhi_Nguyen_1-1692612296362.png

Best regards,

Nhi

 

 

0 Kudos
Reply