Programming External Flash via J-link

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

Programming External Flash via J-link

Jump to solution
1,053 Views
choix361
Contributor I

In RT1064 EVK, I was able to program directly into external flash via J-link.

However, I cannot do the same in my custom board.

The difference is that my custom board is using kFLEXSPI_PortB1 instead of kFLEXSPI_PortA1.

Also, dqs pin is not used in my custom board. I had to change clock source as kFLEXSPI_ReadSampleClkLoopbackInternally instead of kFLEXSPI_ReadSampleClkLoopbackFromDqsPad.

 

I found i.MXRT1060 - SEGGER wiki page that FLEXSPIA_SS0_B is only supported?

choix361_0-1734565885393.png

https://kb.segger.com/i.MXRT1060

This means my custom board cannot be program/erase directly via J-link because I am using FLEXSPIB_SS0_B = GPIO_SD_B1_04?

 

My custom board mex file snippet is below:

choix361_1-1734565998949.png

 

 

Thanks,

Hyunwoo

Labels (1)
Tags (3)
0 Kudos
Reply
1 Solution
1,033 Views
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @choix361 ,

Thanks for your interest in NXP MIMXRT series!

Yes, the PORTB flash can only be used for IAP. Please kindly check this thread: https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-NOR-Flash-on-FlexSPI-B/m-p/1583452

In addition, this Chinese document goes into more detail on this, which can be a good reference: https://www.cnblogs.com/henjay724/p/12375942.html

Best regards,
Gavin

View solution in original post

0 Kudos
Reply
1 Reply
1,034 Views
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @choix361 ,

Thanks for your interest in NXP MIMXRT series!

Yes, the PORTB flash can only be used for IAP. Please kindly check this thread: https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-NOR-Flash-on-FlexSPI-B/m-p/1583452

In addition, this Chinese document goes into more detail on this, which can be a good reference: https://www.cnblogs.com/henjay724/p/12375942.html

Best regards,
Gavin

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2016649%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EProgramming%20External%20Flash%20via%20J-link%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2016649%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EIn%20RT1064%20EVK%2C%20I%20was%20able%20to%20program%20directly%20into%20external%20flash%20via%20J-link.%3C%2FP%3E%3CP%3EHowever%2C%20I%20cannot%20do%20the%20same%20in%20my%20custom%20board.%3C%2FP%3E%3CP%3EThe%20difference%20is%20that%20my%20custom%20board%20is%20using%20kFLEXSPI_PortB1%20instead%20of%26nbsp%3BkFLEXSPI_PortA1.%3C%2FP%3E%3CP%3EAlso%2C%20dqs%20pin%20is%20not%20used%20in%20my%20custom%20board.%20I%20had%20to%20change%20clock%20source%20as%20kFLEXSPI_ReadSampleClkLoopbackInternally%20instead%20of%26nbsp%3BkFLEXSPI_ReadSampleClkLoopbackFromDqsPad.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EI%20found%20i.MXRT1060%20-%20SEGGER%20wiki%20page%20that%20FLEXSPIA_SS0_B%20is%20only%20supported%3F%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22choix361_0-1734565885393.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22choix361_0-1734565885393.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F316578i5C6613D4DEBBCEE2%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22choix361_0-1734565885393.png%22%20alt%3D%22choix361_0-1734565885393.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fkb.segger.com%2Fi.MXRT1060%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fkb.segger.com%2Fi.MXRT1060%3C%2FA%3E%3C%2FP%3E%3CP%3EThis%20means%20my%20custom%20board%20cannot%20be%20program%2Ferase%20directly%20via%20J-link%20because%20I%20am%20using%20FLEXSPIB_SS0_B%20%3D%20GPIO_SD_B1_04%3F%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EMy%20custom%20board%20mex%20file%20snippet%20is%20below%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22choix361_1-1734565998949.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22choix361_1-1734565998949.png%22%20style%3D%22width%3A%20364px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F316579i62A295B547EC6BB7%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22choix361_1-1734565998949.png%22%20alt%3D%22choix361_1-1734565998949.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EHyunwoo%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2016649%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MXRT%20106x%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2017091%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Programming%20External%20Flash%20via%20J-link%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2017091%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F192846%22%20target%3D%22_blank%22%3E%40choix361%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EThanks%20for%20your%20interest%20in%20NXP%20MIMXRT%20series!%3C%2FP%3E%0A%3CP%3EYes%2C%20the%20PORTB%20flash%20can%20only%20be%20used%20for%20IAP.%20Please%20kindly%20check%20this%20thread%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fi-MX-RT-Crossover-MCUs%2FIMXRT1062-NOR-Flash-on-FlexSPI-B%2Fm-p%2F1583452%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fi-MX-RT-Crossover-MCUs%2FIMXRT1062-NOR-Flash-on-FlexSPI-B%2Fm-p%2F1583452%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EIn%20addition%2C%20this%20Chinese%20document%20goes%20into%20more%20detail%20on%20this%2C%20which%20can%20be%20a%20good%20reference%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.cnblogs.com%2Fhenjay724%2Fp%2F12375942.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.cnblogs.com%2Fhenjay724%2Fp%2F12375942.html%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3CBR%20%2F%3EGavin%3C%2FP%3E%3C%2FLINGO-BODY%3E