您好!
我将 am2432ALV CPU 与 GD25q64e QSPI 闪存器件配合使用、
我可以使用 OSPI_norFlashRead (.. 和 OSPI_norFlashErase (..
但我不能在这里编写页面是我的函数:
空 FlashWrite (uint32_t 地址)
{
Spi_Sfdp 4552定义 gNorSpiDevDefinites;
OSPI_Handle ospiHandle = OSPI_getHandle (CONFIG_OSPI0);
memset (&gNorSpiDevDefine、0、sizeof (gNorSpiDevDefine));
OSPI_clearDualOpCodeMode (ospiHandle);
OSPI_norFlashSetCmds (0x6B、0x32、0xD8);
OSPI_setProtocol (ospiHandle、OSPI_NOR_Protocol (1、1、4、0));
uint8_t buf[256]={0x17};
OSPI_norFlashWrite (ospiHandle、ul_block_num、buf、250);
}//FlashWrite
尝试使用
OSPI_norFlashSetCmds (0x03、0x02、0xD8);
oSPI_norFlashInit1s1s1s1s1(...);
但是 stil OSPI_norFlashWrite (.. 退货人-1
我在这里错过了什么?
谢谢。
Eli