Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Core Coupled Memory executable on STM32F4xx?

Tags:

embedded

stm32

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

like image 400
alios Avatar asked Jun 15 '26 19:06

alios


1 Answers

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.

System architecture for STM32F42xxx and STM32F43xxx devices

For more information, refer to section 2.1 ("System Architecture") of the reference manual, which is where the above image came from.


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!