I did all the changes related to hardware, Mount R356,R361,R362,R363,R364,R365,R366 and DNP R153,R154,R155,R156,R157,R158. Then load sdk example evkmimxrt1064_flexspi_hyper_flash_polling_transfer. But hyperflash is not working. When I changed this structure board gets stuck.
const flexspi_nor_config_t hyperflash_config = {
.memConfig =
{
.tag = FLEXSPI_CFG_BLK_TAG,
.version = FLEXSPI_CFG_BLK_VERSION,
.readSampleClksrc=kFlexSPIReadSampleClk_ExternalInputFromDqsPad,
.csHoldTime = 3u,
.csSetupTime = 3u,
.columnAddressWidth = 3u,
// Enable DDR mode, Wordaddassable, Safe configuration, Differential clock
.controllerMiscOption =
(1u << kFlexSpiMiscOffset_DdrModeEnable) | (1u << kFlexSpiMiscOffset_WordAddressableEnable) |
(1u << kFlexSpiMiscOffset_SafeConfigFreqEnable) | (1u << kFlexSpiMiscOffset_DiffClkEnable),
.sflashPadType = kSerialFlash_8Pads,
.serialClkFreq = kFlexSpiSerialClk_133MHz,
.sflashA1Size = 64u * 1024u * 1024u,
.dataValidTime = {16u, 16u},
.lookupTable =
{
// Read LUTs
FLEXSPI_LUT_SEQ(CMD_DDR, FLEXSPI_8PAD, 0xA0, RADDR_DDR, FLEXSPI_8PAD, 0x18),
FLEXSPI_LUT_SEQ(CADDR_DDR, FLEXSPI_8PAD, 0x10, DUMMY_DDR, FLEXSPI_8PAD, 0x06),
FLEXSPI_LUT_SEQ(READ_DDR, FLEXSPI_8PAD, 0x04, STOP, FLEXSPI_1PAD, 0x0),
},
},
.pageSize = 512u,
.sectorSize = 256u * 1024u,
.blockSize = 256u * 1024u,
.isUniformBlockSize = true,
};
Solved! Go to Solution.
Hi @Meera_123 ,
You can update your SDK to SDK10.0.0, please download it from this link:
If you still have questions about it, please kindly let me know.
Best Regards,
Kerry
Yes, Now my flexspi hyperflash working. I was using sdk 2.9.1 and in that SDK , Flexspirootclk was 83Mhz when I changed clock setting with 42Mhz it is working with current sdk 2.9.1
Hi @Meera_123 ,
You can update your SDK to SDK10.0.0, please download it from this link:
If you still have questions about it, please kindly let me know.
Best Regards,
Kerry
Hi @Meera_123
Please note, the hyperflash is not the RWW chip, so you need to run in the RAM, not download to the flash.
Now, follow me to test it again.
1. chip enter the serial download mode, SW7 1:OFF, 2:OFF, 3:OFF, 4:ON
2. Please modify the project link to RAM
Then test it again.
If you still have questions about it, please kindly let me know.
Best Regards,
kerry