Skip to main content
NLI.11
Associate
Oct 9, 2020 6:35 AM UTC
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.

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

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

This topic has been closed for replies.
Radosław
RadosławBest answer
Associate II
Oct 10, 2020 11:21 AM UTC

3 replies

Radosław
Associate II
Oct 9, 2020 6:57 AM UTC

Read Errata, FMC do not support unaligned acces.

NLI.11
NLI.11Author
Associate
Oct 10, 2020 2:50 AM UTC

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
Oct 10, 2020 11:21 AM UTC