ospi一线可以读写,但是四线读写数据错误
uint8_t status = gd25q64esig_read_status_QE(dev);
status |= (1<<1);
gd25q64esig_write_status_config_QE(dev,status);
gd25q64esig_read_status_QE(dev);
printf("device ready 0x%02x\n", dev->cmdbuf[0]);
//gd25q64esig_erase_chip(dev);
gd25q64esig_erase_sector(dev,0);
gd25q64esig_write_page(dev,tx_buffer_spi1,FLASH_WRITE_ADDRESS,BUFFERSIZE_SPI);
gd25q64esig_read_byte(dev,rx_buffer_spi1,FLASH_READ_ADDRESS,BUFFERSIZE_SPI);
不知道是不是flash需要配置什么参数?
|