Skip to main content
PBU
Associate III
July 20, 2019
Question

FMC Issue with Allignment

  • July 20, 2019
  • 1 reply
  • 446 views

I am trying to read/ write data into FMC SDRAM (16 bit) in Bank 1. While writing the data hard fault occurred. What is the reason for that hard fault, is there any problem with data alignment, If yes what is the solution for it ?

This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
July 20, 2019

Hard Faults will occur if you step outside of the bounds of physical memory. For alignment, the Cortex-Mx parts will fault on unaligned reads/writes on instructions like LDRD/STRD, but most other situations where you span two 32-bit word boundaries are managed by the CPU or buses.

Inspect the faulting instructions, and the registers, to understand what is being objected too.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..