Hello,all: I want to port the FatFs written by ELM Chan to keil for my AT91SAM7X demo board,but when I use f_open to open a file,it reset to DAbt_Handler B DAbt_Handler
the cause for it is the code in f_open() #define LD_WORD(ptr) (WORD)(*(WORD*)(BYTE*)(ptr))
Any suggestion? Thanks!
In fopen(),the reset happened in this code: if (fmt || LD_WORD(&fs->win[BPB_BytsPerSec]) != SS(fs))
and the LD_WORD micro is noted in the message above.
are you sure BPB_BytsPerSec's value is valid? a data abort exception is raised when an instruction attempts to access data memory without the correct access permissions.