AnsweredAssumed Answered

IMXRT1050-EVK NOR Flash

Question asked by Ivan Ucherdzhiev on Apr 21, 2018
Latest reply on Apr 24, 2018 by Ivan Ucherdzhiev

Hello,

 

I am evaluating the IMXRT1050-EVK and i am trying to execute code from the onboard QSPI NOR Flash. So far i modified the hello_world_xip example , as follows:

 

const flexspi_nor_config_t Serialflash_config =
{
.memConfig =
{
.tag = FLEXSPI_CFG_BLK_TAG,
.version = FLEXSPI_CFG_BLK_VERSION,
.readSampleClkSrc = kFlexSPIReadSampleClk_LoopbackInternally,
.csHoldTime = 3u,
.csSetupTime = 3u,
.columnAddressWidth = 0u,
.deviceModeCfgEnable = 0,
.waitTimeCfgCommands = 0,
.deviceType = kFlexSpiDeviceType_SerialNOR,
.sflashPadType = kSerialFlash_4Pads,
.serialClkFreq = kFlexSpiSerialClk_133MHz,
.lutCustomSeqEnable = 0,
.sflashA1Size = 8u * 1024u * 1024u,
.dataValidTime = {16u, 16u},
.busyOffset = 1,
.busyBitPolarity = 0,
.lookupTable =
{
// Read LUTs

[4 * NOR_CMD_LUT_SEQ_IDX_READ] = FLEXSPI_LUT_SEQ(CMD_SDR, FLEXSPI_1PAD, 0x6b, RADDR_SDR, FLEXSPI_1PAD, 0x18),
[4 * NOR_CMD_LUT_SEQ_IDX_READ+1] = FLEXSPI_LUT_SEQ(DUMMY_SDR, FLEXSPI_4PAD, 0x08,READ_SDR, FLEXSPI_4PAD, 0x04),
},
},
.pageSize = 256u,
.sectorSize = 4u * 1024u,
.blockSize = 32u * 1024u,
.ipcmdSerialClkFreq = 0,
};

 

And the Example booted and executed from the external NOR Flash, but now I am not able to reflash with other program. I am getting error " Accessing the memory failed ". I am using Keil IDE , because it supports the external NOR Flash.

1. Is this caused because of the flash configuration? If Yes what is the right configuration for the onboard Nor Flash?

2. Is it planed and if yes, when we can expect support from NOR FLASH in MCUXPresso studio?  

 

Thank you in advance.

 

Best regards,

Ivan Ucherdzhiev

Outcomes