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
337 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
317 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
318 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