0

I am using NUCLEO-H755ZI-Q board, Which has two cores cortex m4 and cortex m7, To enable the lwip I have to enable CPU ICache and CPU DCache

enter image description here

But during runtime the program exits through SCB_EnableDCache(); function. Kindly help me if had missed something.

enter image description here

James Z
  • 12,209
  • 10
  • 24
  • 44

2 Answers2

1

I was able to resolve this issue. this was more specific to cube ide 1.7 when i rolled back to 1.6 it was working fine. Issue is with the code generation from cube mx

0

Reference from CMSIS-Core, the description for __STATIC_FORCEINLINE void SCB_EnableDCache(void)

Before enabling the data cache, you must invalidate the entire data cache SCB_InvalidateDCache(), because external memory might have changed from when the cache was disabled. After reset, you must invalidate SCB_InvalidateDCache() each cache before enabling it.

So I think you can try to SCB_InvalidateDCache() before SCB_EnableDCache().

On the other hand, can you provide the error message or the state of the error?

I think that helps figure out the root cause.

jackieBB
  • 126
  • 1
  • 2
  • 3