本文主要是介绍stm32H7 QSPI W25Q256换成W25Q128JV,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
正点原子阿波罗stm32H743修改
1. QSPI_Handler.Init.FlashSize=POSITION_VAL(0X1000000)-1;
2.QSPI_Send_CMD(W25X_FastReadData,ReadAddr,8,QSPI_INSTRUCTION_4_LINES,QSPI_ADDRESS_4_LINES,QSPI_ADDRESS_32_BITS,QSPI_DATA_4_LINES);
QSPI_Send_CMD(W25X_PageProgram,WriteAddr,0,QSPI_INSTRUCTION_4_LINES,QSPI_ADDRESS_4_LINES,QSPI_ADDRESS_32_BITS,QSPI_DATA_4_LINES);
QSPI_Send_CMD(W25X_SectorErase,Dst_Addr,0,QSPI_INSTRUCTION_4_LINES,QSPI_ADDRESS_4_LINES,QSPI_ADDRESS_32_BITS,QSPI_DATA_NONE);
中的QSPI_ADDRESS_32_BITS换成QSPI_ADDRESS_24_BITS。
2. flash_size=16*1024*1024;
W25QXX_Read(datatemp,flash_size-100,SIZE);
W25QXX_Write((u8*)testW,flash_size-100,SIZE);
这篇关于stm32H7 QSPI W25Q256换成W25Q128JV的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!