2018-01-20 04:31 PM
Which step is neccessary to have .data and .bss sections in RAM_D2?
If I place them in domain D2, HardFault_Handler() is called. Why?
There are known bugs in hal_spi.c - Ethernet works sometimes (if you correct the Pin settings and place decriptors anywhere except in DTCM), but sometimes a RTE occurs or nothing is sent - CubeMX does not check APBx speeds and set the default to 200MHz instead of 100, hal_eth contains a hardcoded 536 DMA segment size.
Solved! Go to Solution.
2018-02-07 02:42 PM
Solved with HAL 1.2.0
2018-01-20 05:16 PM
Do you call SystemInit() prior to copying/clearing the memory?
2018-01-21 12:43 AM
Yes. App is created with SW4STM32.
Using DTCM for .bss and .data, variables in D2 not used for peripherals are available.
In startup_stm32h743xx.s
/* Call static constructors */
bl __libc_init_arrayhangs after SystemInit.
I tried to add
/* Change the switch matrix read issuing capability to 1 for the AXI SRAM target (Target 2) */
*((__IO uint32_t*)0x51003108) = 0x000000001;in SystemInit()
2018-02-07 02:42 PM
Solved with HAL 1.2.0