Hi, I am working on cache on ATSAMRH71. I found debugging to be very slow when stepping over cache maintenance function SCB_EnableDCache. With SCB_EnableICache function there is no such problem. It takes about 30 seconds to step over SCB_EnableDCache. [/i]If I put a breakpoint after SCB_EnableDCache - again there is no such problem.
Host SW and firmware freshly updated.
Product = J-Trace PRO Cortex-M V2.0
Nickname =
SN = 752001805
USB = SN 752001805
HostFW = 2022 May 18 17:09
EmuFW = 2022 May 18 17:09
Display All
I found some info that debuggers sometimes have problems with cache, but I'd like to make sure that it's not a bad configuration problem.
Host SW and firmware freshly updated.
Product = J-Trace PRO Cortex-M V2.0
Nickname =
SN = 752001805
USB = SN 752001805
HostFW = 2022 May 18 17:09
EmuFW = 2022 May 18 17:09
C Source Code
- /* Init routine called just after setting SP in startup */
- s_tcm_enable();
- mpu_initialize();
- if (0UL == (SCB->CCR & SCB_CCR_IC_Msk)) {
- SCB_EnableICache(); // stepping over this function is normal
- }
- if (0UL == (SCB->CCR & SCB_CCR_DC_Msk)) {
- SCB_EnableDCache(); // stepping over this function takes 30 seconds
- }
I found some info that debuggers sometimes have problems with cache, but I'd like to make sure that it's not a bad configuration problem.
The post was edited 1 time, last by dsa93 ().