This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] OSPI_norFlashWrite()

Guru**** 1831610 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/1326693/ospi_norflashwrite

您好!

我将 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

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 

    我建议您使用这样的 Flash_* API:

    或者希望您的实现与此处提到的实现类似。

    此致、
    Aakash

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Aakash:

    谢谢。

    此致、

    Eli