我没有通过 AXI 使用 DTCMRAM 或 SRAM D1 域,而是将链接器文件设置为使用 D2。
在 system_
STM32h7xx.c 中,我添加了以下行:
- /* Change the switch matrix read issuing capability to 1 for the AXI D2 target (Target 2 and INI2) */
- *((__IO uint32_t*)0x51003108) = 0x00000001;
- *((__IO uint32_t*)0x51043108) = 0x00000001;
但执行
- /* Call static constructors */
- bl __libc_init_array
在 startup_stm32h743xx.sa 中抛出硬故障。
将正常数据存储在 D2 域中缺少什么?
谢谢你的小费。