Hi all,
I'm trying to use the MIMXRT1060-EVT board to run this
https://community.nxp.com/docs/DOC-342085
application note using the MT9M1114 to create a webcam.
However, I am running into issues programming the board with this project.
Here are the errors I'm receiving;
This is the error reported in the console
EraseSector (0x60000000, 0x0, 0x1) status 0x40 - driver reports init failure - EXTSPI driver rc -1 (0xFFFFFFFF)
complains because another operation was called after Init failed (status 0x40)
I am using MCUXpresso IDE, using the MIMXRT1060 SDK (2.6.0), in QSPI mode.
I have cleared the flash memory before running this as well in case of prior "bad" code as suggested in the user manual.
I have also attempted to follow the instructions in the guide manually to no avail.
I have been able to program the board with demo code (such as hello_world) so I know that the debug port is in the correct functional mode.
I am running the board off an external power supply, not the USB header.
Any suggestions would be appreciated!
解決済! 解決策の投稿を見る。
Hi Kerry,
I found that switching to an older version of MCUXpresso (10.2.1) solved this error message. Thank you for your help!
Katie
Hi Katie Bradford,
Do you download the code to the flash?
If yes, please note, the MIMXRT1060-EVK is using the QSPI flash, but the MIMXRT1050-EVKB is using the hyper flash. So you need to modify the const flexspi_nor_config_t hyperflash_config in evkbimxrt1050_flexspi_nor_config.c file which you can find it from evkbimxrt1050_uvc_demo\evkbimxrt1050_uvc_demo\xip
You need to use this code:
const flexspi_nor_config_t qspiflash_config = {
.memConfig =
{
.tag = FLEXSPI_CFG_BLK_TAG,
.version = FLEXSPI_CFG_BLK_VERSION,
.readSampleClkSrc = kFlexSPIReadSampleClk_LoopbackFromDqsPad,
.csHoldTime = 3u,
.csSetupTime = 3u,
// Enable DDR mode, Wordaddassable, Safe configuration, Differential clock
.sflashPadType = kSerialFlash_4Pads,
.serialClkFreq = kFlexSpiSerialClk_100MHz,
.sflashA1Size = 8u * 1024u * 1024u,
.lookupTable =
{
// Read LUTs
FLEXSPI_LUT_SEQ(CMD_SDR, FLEXSPI_1PAD, 0xEB, RADDR_SDR, FLEXSPI_4PAD, 0x18),
FLEXSPI_LUT_SEQ(DUMMY_SDR, FLEXSPI_4PAD, 0x06, READ_SDR, FLEXSPI_4PAD, 0x04),
},
},
.pageSize = 256u,
.sectorSize = 4u * 1024u,
.blockSize = 256u * 1024u,
.isUniformBlockSize = false,
};
Please try it on your side.
If you still have question about it, please kindly let me know.
Have a great day,
Kerry
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
Hi Kerry,
I found that switching to an older version of MCUXpresso (10.2.1) solved this error message. Thank you for your help!
Katie
Hi Katie Bradford,
Thanks for your updated information.
As I know, the newest MCUXpresso IDE also works, you need to select the correct .cfx which is related to your board external flash.
Anyway, it's good to hear you already make it works.
If you still have questions about this topic, please kindly let me know.
If your question is solved, please help me to mark the correct answer, just to close this case, thank you!
Have a great day,
Kerry
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------