cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H730ZBT. Problems on writing/reading on SRAM using FMC

lopezcontreras
Associate III

Dear all,

First of all, I would like to say that my experience con STM32 uprocessors and STMcubeIDE is limited.

I have defined a FMC on STM32CubeMX as shown in picture 1.

Then I have defined a function to test FMC. The function is: Test_DPM, shown in picture 2.

The other details needed:

#define SRAM_BANK_ADDR ((uint32_t)0x60000000) //Fig. 5, AN4891 Application Note

#define WRITE_READ_ADDR ((uint32_t)0x0800)

In picture 4 you have the initialization on main.c.

When I executed this, "HAL_SRAM_Write_16b" does not return enything and the application hangs.

I am writting to port B of Dual-Port - Memory, Renesas 70V24L15PFG

Any idea of what can be the problem?

If you need further details, please do not hesitate to ask for them. I will be happy supplying them.

Thanks in advance,

Regards,

Joaquin.

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
lopezcontreras
Associate III

Hello all,

I found out the problem. On SMT32CubeMX, there is an option which I had disabled. This options in "Write Operation". I enabled it and then it works.

Thank you anyway all for time.

Joaquin.

View solution in original post

1 REPLY 1
lopezcontreras
Associate III

Hello all,

I found out the problem. On SMT32CubeMX, there is an option which I had disabled. This options in "Write Operation". I enabled it and then it works.

Thank you anyway all for time.

Joaquin.