烧写SSTVF39400A的flash芯片,因为此芯片是16bit的,所以我用以下的代码执行,但是因为字节对齐的原因,出现了以下问题:
volatile unsigned int *Temp; unsigned int SST_id1; unsigned int SST_id2; int ReturnStatus; Temp = (volatile unsigned int *)(FLASHBOOTBASEADDR+0x5555); *Temp = 0xAAAA; Temp = (volatile unsigned int*)(FLASHBOOTBASEADDR+0x2AAA); *Temp = 0x5555; Temp = (volatile unsigned char *)(FLASHBOOTBASEADDR+0x5555); *Temp = 0x9090;
当执行到红色标志处,就会发生data Abort异常。这可能是ARM的字节对齐的问题。请问有没有好的办法解决!谢谢!