Imxrt boot mode not working

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

Imxrt boot mode not working

跳至解决方案
12,868 次查看
ancymuhammed
Contributor III

We are using mimxrt1176 and 512Mb NOR flash connected via flexspi for booting. Program flashed successful ly, but code is not executing. Flexspi lines are working during flashing, but clock signal not seen at the start of execution. But the same code is working in EVK. Checked the boot mode pins and it is set to 10 during execution. What may the possible reasons

0 项奖励
回复
1 解答
12,517 次查看
ancymuhammed
Contributor III

 

While programming via SWD in MCUXpresso the following error occurs

 

ancymuhammed_0-1640696039441.png

 

在原帖中查看解决方案

0 项奖励
回复
38 回复数
6,178 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @ancymuhammed ,

  If you use the EVK flash to solder your own board meet issues, please check the solder, maybe not good in the hardware connection, as the same package, winbond works.

  About  mode to 10. do you have Jlink? If yes, use JLINK command connect, run it, then halt, check where it is stopping.

Best Regards,

Kerry

 

0 项奖励
回复
6,167 次查看
ancymuhammed
Contributor III

In secure programming tool writing will not happen if boot mode is 10 in EVK and it shows the below error

ancymuhammed_0-1640340940438.png

 

But in custom board with Winbond flash writing is successful to all mode. Writing happens in boot mode 10 also

0 项奖励
回复
5,574 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @ancymuhammed 

   SPT tool(Secure provisional tool) need to be operation in the serial download mode, boot mode 01.

  boot mode 01 can't find the USB HID interface.

   Your customer mode situation is interesting, after you download the app code to the external flash, then set the mode to 10, power off and power on again, your USB HID still can connect the SPT tool, it means your boot mode even still in the serial download mode, not the internal boot mode.

 

Best Regards,

Kerry

0 项奖励
回复
5,568 次查看
ancymuhammed
Contributor III

After setting to internal boot mode i had checked the voltage and it is also found 10. The resistor values are chosen same as the EVK

ancymuhammed_0-1640662685514.png

 

0 项奖励
回复
5,561 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @ancymuhammed 

 Please check the boot mode:

kerryzhou_0-1640669171788.png

You mentioned 10, whether it is BOOT_MODE[1:0]=10, as I find your pin 3 is Mode0, pin 4 is mode 1, it is not the same as the EVK board.

kerryzhou_1-1640669241099.png

kerryzhou_2-1640669269867.png

Please double check your customer board mode setting.

 

Best Regards,

Kerry

 

 

0 项奖励
回复
5,555 次查看
ancymuhammed
Contributor III

We had seen this before. We tried the internal boot mode in 01 instead of 10. Then also it is not working. Probed the waveforms boot mode(0) & POR. All are seen same as EVK

0 项奖励
回复
5,549 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @ancymuhammed 

  Use the MCUBootUtility tool test your customer board, in serial download mode, connect, download code, read flash, whether it all finished?

   Please share me your MCUbootUtility tool download situation. The app you can use the tool attached code:

\NXP-MCUBootUtility-3.4.0\apps\NXP_MIMXRT1170-EVK_Rev.A\cm7\led_blinky_0x3000a000.srec

   After download, change the boot mode to internal boot mode, power off and power on it again, whether you still can find the USB HID PID and VID in the MCUBootUtility tool?

Best Regards,

Kerry

0 项奖励
回复
5,545 次查看
ancymuhammed
Contributor III

USB HID PID & VID do not found when changed to internal boot

0 项奖励
回复
5,541 次查看
ancymuhammed
Contributor III

We had checked the read back data with write data and the read back data from the EVK. Both are found same. We tried in the utility tool

0 项奖励
回复
12,518 次查看
ancymuhammed
Contributor III

 

While programming via SWD in MCUXpresso the following error occurs

 

ancymuhammed_0-1640696039441.png

 

0 项奖励
回复
5,593 次查看
ancymuhammed
Contributor III

Probed all the flex lines in EVK with Winbond flash memory, T0 with Winbond & T0 with ISSI.

In EVK it is found that WP & HOLD pins are high for few clock lines (approximately 360ms) and after that it will changed to data lines.

In T0 with winbond flash WP is found high but HOLD is continuously low. Writing succeefully shown in Winbond

In T0 with ISSI WP & HOLD is high but datas are not observed. Error appears in between programming

0 项奖励
回复
5,590 次查看
ancymuhammed
Contributor III

In custom board - T0 the microcontroller MIMXRT1176AVM8A

0 项奖励
回复
5,589 次查看
ancymuhammed
Contributor III

Could you please send the datasheet of MIMXRT1176AVM8A. Got the datasheet of MIMXRT1176DVMAA & MIMXRT1176CVM8A

标记 (1)
0 项奖励
回复
5,574 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @ancymuhammed 

  Please download the datasheet for MIMXRT1176AVM8A in this link:

https://www.nxp.com/docs/en/data-sheet/IMXRT1170AEC.pdf

 

Wish it helps you!

Best Regards,

Kerry

0 项奖励
回复
5,636 次查看
ancymuhammed
Contributor III

The board is still works in internal RAM

0 项奖励
回复
5,750 次查看
ancymuhammed
Contributor III

FlexSPI line clock, data & chip select is working and can see the waveforms while flashing, but during execution even a single clock pulse is not observed in the starting. But the code is working fine using internal RAM

0 项奖励
回复
5,747 次查看
ancymuhammed
Contributor III

1. QSPI flash used in the NOR custom board is W25Q512NWEIM. But we tried the same flash in EVK and it is working fine

2. Will try the code

3. Same schematics is used in custom board. The only difference all the supply lines is 3.3V

4. Internal boot mode 10 is not working. In EVK we cannot flash through serial downloader when switch is in 10 position, but in custom board we can flash successfully in 10 mode also

0 项奖励
回复
5,741 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @ancymuhammed ,

   Thank you for your interest in the NXP MIMXRT product, I would like to provide service for you.

   1. Which detail QSPI flash you are using on the customer board? the same as the EVK? IS25WP128?

    As different QSPI flash may have different QE bit position, you need to make sure your QE bit is set. Otherwise, you use the quad read boot will have issues.

   2. Please use debug the following SDK code on your customer board:

SDK_2_10_1_MIMXRT1170-EVK\boards\evkmimxrt1170\driver_examples\flexspi\nor\polling_transfer

 Run the above code in ram.

 Please check whether the flash operation are all pass or not?

   3. Check the Boot_CFG pin configuration, you need to make it the same as the EVK.

kerryzhou_0-1640234629872.png

If you still have issues, please also let me know what's the detail difference between your customer board the NXP EVK board.

  4. You can debug the sample SDK code in the flash, eg, led_blinky, whether you can download and debug it OK? Then test the POR boot.

  Please note, the debug need to in the internal boot mode.

 

Wish it helps you!

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

Kerry

 

0 项奖励
回复