cancel
Showing results for 
Search instead for 
Did you mean: 

H743 FMC SRAM memory fault

snkparty1
Associate II

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

F407.pngF407_code.png

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?

H743.pngH743_code.pngF743 memory error.png

 

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...

1 REPLY 1
Pavel A.
Super User

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?