1.首先注意s29gl128p和s29gl128m的区别
扇区大小不同
s29gl128p : 128k
s29gl128p : 64k
2.保证读写字正确
*((UINT16 *)(0xf8000000+0x555*2)) =0xaa;
*((UINT16 *)(0xf8000000+0x2aa*2)) =0x55;
*((UINT16 *)(0xf8000000+0x555*2)) =0xa0;
*((UINT16 *)0xf8000000) =data;
1.首先注意s29gl128p和s29gl128m的区别
扇区大小不同
s29gl128p : 128k
s29gl128p : 64k
2.保证读写字正确
*((UINT16 *)(0xf8000000+0x555*2)) =0xaa;
*((UINT16 *)(0xf8000000+0x2aa*2)) =0x55;
*((UINT16 *)(0xf8000000+0x555*2)) =0xa0;
*((UINT16 *)0xf8000000) =data;