中级会员
 
- 积分
- 265
- 金钱
- 265
- 注册时间
- 2016-12-20
- 在线时间
- 58 小时
|
100金钱
器件型号:k9f1208 64M x 8 Bit NAND Flash
初始化代码:
初始化完毕后,
不论是读ID:
/* Send Command to the command area */
*(__IO uint8_t *)(Bank_NAND_ADDR | CMD_AREA) = 0x90;
*(__IO uint8_t *)(Bank_NAND_ADDR | ADDR_AREA) = 0x00;
/*!< Sequence to read ID from NAND flash */
data = *(__IO uint32_t *)(Bank_NAND_ADDR | DATA_AREA);
还是读状态:
/* Step 1: Write the 0x70h command */
*(__IO uint8_t *)(Bank_NAND_ADDR | CMD_AREA) = NAND_CMD_STATUS;
/* Step 2: get out the data in the bus-line and then check the status */
data = *(__IO uint8_t *)(Bank_NAND_ADDR);
返回的值都是FF,谁能帮忙解决一下,困扰了好几天了。
|
|