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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-10-08 11:35 PM
memcpy(0xc0000000,buffer,2) this is ok
memcpy(0xc0000001,buffer,2) this is error
Solved! Go to Solution.
- Labels:
-
FMC-FSMC
-
STM32H7 series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-10-10 4:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-10-08 11:57 PM
Read Errata, FMC do not support unaligned acces.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-10-09 7:50 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-10-10 4:21 AM
