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.

AM5746: Clear instruction cache

Part Number: AM5746
Other Parts Discussed in Thread: SYSBIOS

Hi,
About the contents of related posts.

My question 1:
Are there any way to clean L1 instruction cache (like data cache) from user program?

Frank's answer:
Q1: It seems you would use the Cache_wb() API function with the 'type' argument set to "Cache_Type_L1P'

After checking SYSBIOS (bios_6_76_00_08), Cache_wb () API seems to clean Data Cache.
(Irrespective of the argument)

C:\ti\bios_6_76_00_08\packages\ti\sysbios\family\arm\a15\Cache_asm_gnu.asm

mcr p15, #0, r0, c7, c10, #1 @ write back a cache line

We think Cache_wb API can't clean the instruction cache.

Is there any other way?

AM574x
CCS v8
GCC GNU v6.3.1(Linaro)
SW pdk_am57xx_1_0_11
bios_6_76_00_08

Regards,
Rei