Skip to main content
NLI.11
Associate
October 9, 2020
Solved

On the STM32H745 platform,When I use the memcpy or memset function to access external SDRAM(0xC0000000),If the address is not double byte aligned, the program enters harddefault.I tested the same situation on M4 platform without any problems.

  • October 9, 2020
  • 3 replies
  • 1508 views

memcpy(0xc0000000,buffer,2) this is ok

memcpy(0xc0000001,buffer,2) this is error

This topic has been closed for replies.
Best answer by Radosław

https://www.keil.com/support/docs/3777.htm

look,....

3 replies

Radosław
Associate II
October 9, 2020

Read Errata, FMC do not support unaligned acces.

NLI.11
NLI.11Author
Associate
October 10, 2020

Thanks for your help.But I do not see the "FMC do not support unaligned acces" in H745 Errata. Another problem is that this only happens on the M7 platform.Does it mean that only M7 has this problem.

Radosław
RadosławBest answer
Associate II
October 10, 2020