RT1050 EVKB QSPI program fail.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RT1050 EVKB QSPI program fail.

1,649 Views
echozeng
Contributor III

Hi,

    RT1050 EVKB change to QSPI boot.

    MCUXpresso IDE 10.2.1

    QSPI FLASH: IS25WP064A

    SDK:2.4.2

    Board modify refer to :

               1.png

change flash config:

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,
};

Memory Setting:

2.png

 Debug error:

3.png

Awaiting telnet connection to port 3330 ...
GDB nonstop mode enabled
Opening flash driver E:\prj_tools_doc\RT1050\workspace/qspi_flash_emwin_emwin_gui_demo/MIMXRT1050-EVK_IS25WP064A_from_sdk_2.5.0.cfx (already resident)
Sending VECTRESET to run flash driver
Flash variant 'IS25WP064A' detected (8MB = 128*64K at 0x60000000)
Writing 149068 bytes to address 0x60000000 in Flash
ProgramPage (0x60000000, 0x200020E8, 0x4000) status 0x1 - driver reported driver error - EXTSPI driver rc 168 (0xA8)
Closing flash driver E:\prj_tools_doc\RT1050\workspace/qspi_flash_emwin_emwin_gui_demo/MIMXRT1050-EVK_IS25WP064A_from_sdk_2.5.0.cfx
Target error from Commit Flash write: Ef(49): Flash driver operation gave error.
GDB stub (crt_emu_cm_redlink) terminating - GDB protocol problem: Pipe has been closed by GDB.

How to check upper debug error?

Labels (1)
3 Replies

1,119 Views
rubensjunior
Contributor IV

Dears colleagues,

I did have the same problem, but was solved in the bellow post.

https://community.nxp.com/thread/508663 

Have a great day,

Rubens Júnior

0 Kudos

1,119 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Rubens Junior,

  Thanks a lot for your updated information and let me know you make it works.

  If you still have questions about it, please kindly let me know.

  If your question is solved, please help me to mark the correct answer, just to close this case, thanks!

Have a great day,
Kerry

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
------------

1,120 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi echo zeng,

    About the RT1050 EVKB qspi operation, I also modify the board, and it works OK on my side.

   It seems you are from China, you can check my Chinese document sharing from this link:

http://www.nxpic.org/module/forum/thread-615897-1-1.html 

   It have the detail steps.

   I checked your description, do you modify the on board debugger firmware to qspi ?

OpenSDA Serial and Debug Adapter|NXP 

Then , please refer to this application note:

https://www.nxp.com/docs/en/application-note/AN12108.pdf 

Before you download the code, please change the SW7

pastedImage_5.png

Please try it again on your side.

If you still have question about it, please kindly let me know.

I already make it works.


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos