Production programming of MIMXRT1052 using Segger JLINK Programmer

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Production programming of MIMXRT1052 using Segger JLINK Programmer

跳至解决方案
2,168 次查看
FillmoreSys
Contributor I

Hi,

I am trying to program the MIMXRT1052 using  a jlink programmer , the downloaded file is stored and executed from an external QSPI Flash.

I can succesfully download the bootloader and application to the external memory, but not all devices boot and run the code.

If I program the device once from the mfrcfg  tool then the device will then boot and run, when I download any new images, so I suspect that the manufacturing tool performs some extra steps that I am not doing.

Can someone tell me the extra steps to program the boot on the device, I suspect that it is related to the two commands in the log file

fill-memory 0x2000 4 0xc0000006 

( which I assume is a 32 bit write to location 0x2000  with the value 0xc0000006)

and

configure-memory 0x9 0x2000    which I do not know what is does.

If anyone could express these two commands in terms of memory writes, it would be extremely helpful

Thanks

David

0 项奖励
回复
1 解答
2,072 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi @FillmoreSys ,

The flexspi_nor_polling demo can do it.

 

Regards,

Jing

在原帖中查看解决方案

6 回复数
2,149 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi @FillmoreSys ,

The first command is to write a option0 word to RAM. Please refer to sector 9.13.2 in RM.

The second command is to have ROM bootloader to read this word and configure flash. After this step, flash is ready and even QE is programmed.

 

Regards,

Jing

0 项奖励
回复
2,140 次查看
FillmoreSys
Contributor I

Hi Jing,

Okay that explains what those two commands do, thanks.

Can you explain the sequence of commands that I would need to send from the JLINK,

to perform this?

I assume the object is to set the QE Bit, is this not possible with a direct write to a memory location ?

Thanks again

David

0 项奖励
回复
2,098 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi @FillmoreSys ,

 Bootloader communicate with host by USB or UART. I don't know how to use jlink to control bootloader. If you want to use jlink to program, you have to download a special application to RAM which can program QE bit.

 

Regards,

Jing

0 项奖励
回复
2,084 次查看
FillmoreSys
Contributor I

Thanks again this makes sense.

is there an example application to do this available, in any application note / GitHub folder etc.

if you could point me in the right direction to look I would be grateful.

Regards

David

 

 

0 项奖励
回复
2,073 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi @FillmoreSys ,

The flexspi_nor_polling demo can do it.

 

Regards,

Jing

2,057 次查看
FillmoreSys
Contributor I
Thanks, that solved my problem
0 项奖励
回复