问题
Trying to run code from a STM32F429s CCM but I always get a Hard Fault with the IBUSERR flag set as soon as I hit the first instruction in the CCM.
The instruction is valid and well aligned. Is it possible that the STM32F4xx does not allow execution from the CCM? (Data access works well).
alios
回答1:
The CCM in these parts is only connected to the data bus. Instructions cannot be fetched from this memory -- only flash memory, SRAM1, and external memory should be used for code.
For more information, refer to section 2.1 ("System Architecture") of the reference manual, which is where the above image came from.
来源:https://stackoverflow.com/questions/49768163/core-coupled-memory-executable-on-stm32f4xx