2025-09-10 10:25 AM
I tested FMC speed on F403 and H743. F403 works fine but H743 code will stopped due to memory fault.
I set FMC parameter like below
My plan is to connect stm32 to fpga by using FMC so did this test to check the speed. F407 test succeeded.
But H743, the same code will stop due to memory error?
I did this test without connecting FMC to anything.(FPGA is much faster so I only need to verify stm32 fmc speed.)
I have no idea why f743 has this issue...
2025-09-10 11:11 AM - edited 2025-09-10 11:12 AM
Wrong alignment? Note that you wrote "F403 works" but on the Cube config picture: F407.
The code snippets also are different: the first one:
for(uint16_t i=0; i<32768; i++)
{
*(_I0 uint16_t*) (Bank1_SRAM1_ADDR + i)=(uint16_t)(0x1000);
}
The 2nd (for H743)
for(uint16_t i=0; i<32768; i++)
{
*(_I0 uint16_t*) (Bank1_SRAM1_ADDR + 2*i)=(uint16_t)(0x1000+i);
}
When the MemManage fault occurs, have you tried to look at the registers (the address etc) that help diagnose the reason?
Have you set up the external RAM region in the MPU?