请各位大哥指点我一下阿,感激不尽!
我在SST_39VF6401B进行获取CFI时,无法读取到正确的数据!这是我的获取代码:
UI8 Query[256];
volatile UI16 *Top;
Top = (volatile UI16 *)DRV_FLASH_TOP;
关中断;
Top[(0x555 < <1)] = 0x00aa;
Top[(0x2aa < <1)] = 0x0055;
Top[(0x555 < <1)] = 0x0098;
for( i = 0x0010 ; i < 0x0035 ; i++ )
{ Query[i] = (UI8)Top[(i < <1)];}
请问一下为什么我无法获取到正确的CFI,请各位大哥帮帮忙,看一下,谢谢!
------解决方案--------------------
既然 Top 被定义成 16-bit, 就不要左移了吧? 而且不应是0x555和0xaaa
是否该这样?
Top[0x5555] = 0x00aa;
Top[0x2aaa] = 0x0055;
Top[0x5555] = 0x0098;