This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM2634-Q1: Assert occurred in MPU init while reset test

Part Number: AM2634-Q1


Tool/software:

Dear Champs,

in reset test using below code, my customer found assert of Cache in MPU_init of bootloader at about 5% ratio.

Could you please let me know what condition can cause below assertion?

  

They are doing warm reset test using below code.

  

Thanks and Best Regards,

SI.

  • When MpuP_enable() executes it expects cache to be disabled as would always be the case for a cold reset. For whatever reason, if the program encounters MpuP_enable() again in the power cycle, e.g, the PC is reset to 0x00000000, it might find that cache is already enabled and is trapped in the assert.

    I'm guessing that the warm reset is not disabling the cache 5% of the time. I have no idea if a warm reset should disable cache or not but you could try to work around the issue by adding the following line in Target_GenerateWarmReset():

    CacheP_disable(CacheP_TYPE_ALL);