NXP ROM in open mode, Can not program Teensey 4.1

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

NXP ROM in open mode, Can not program Teensey 4.1

Jump to solution
960 Views
c172jeff
Contributor I

Help.  This might not be the most ideal place to post this question.  I am stuck and need direction.

I bought a Teensey 4.1 board and programmed it a few times.  This board is similar to an Arduino but based on a fast chip with tons of features.  I guess it is an NXP chip.

I set it aside for a few months and am now looking to reprogram it.  I cannot.  It seems there is communication to the board but the board throws an error to the loader about NXP Memory

"23:31:18.259 (loader): Opps, NXP ROM in open mode, but we do not yet have code for this case "

I tried two known working USB cables am quite sure that there is communication.  I don't think it is a Windows 10 thing.  I am running Windows 10. 

 

Can anyone on this forum provide some advice and offer suggestions?  I hate to buy a new $40 board when it seems flimsey enough that the ROM gets stuck in open mode.  What is ROM?  I know it is read only memory, but is this the flash memory that the loader is trying to program?

If so, is there a way that I can close it with an external circuit/connection and/or better code/tools?

I would like to use this Teensey, just that I have a problem throwing money at something that seems likely to repeat.  I treated this board nice.

Here is the log from the Teensey loader .  The loader asked to press a button, then it displayed the second section with the line of output above.  The button press on the Teensey triggered action on the loader. 

 



23:29:50.709 (loader): file changed
23:29:50.727 (loader): File "C:\Users\Jeffrey\AppData\Local\Temp\arduino_build _195947\Example2_OutputToProcessing.ino.hex", 33792 bytes
23:29:50.730 (loader): File "Example2_OutputToProcessing.ino.hex". 33792 bytes
23:29:50.733 (post_compile 3): Begin, version=1.55, high-res time
23:29:50.740 (loader): remote connection 11120 opened
23:29:50.742 (loader): remote cmd from 11120: "comment: Teensyduino 1.55 - WINDOWS (teensy_post_compile)"
23:29:50.742 (post_compile 3): Sending command: comment: Teensyduino 1.55 - WINDOWS (teensy_post_compile)
23:29:50.743 (loader): remote cmd from 11120: "status"
23:29:50.751 (post_compile 3): Status: 1, 0, 0, 14, 0, 0, C:\Users\Jeffrey\AppData\Local\Temp\arduino_build_ 195947\, Example2_OutputToProcessing.ino.hex
23:29:50.751 (post_compile 3): Sending command: dir:C:\Users\Jeffrey\AppData\Local\Temp\arduino_bu ild_195947\
23:29:50.752 (loader): remote cmd from 11120: "dir:C:\Users\Jeffrey\AppData\Local\Temp\arduino_b uild_195947\"
23:29:50.754 (loader): remote cmd from 11120: "file:Example2_OutputToProcessing.ino.hex"
23:29:50.755 (post_compile 3): Sending command: file:Example2_OutputToProcessing.ino.hex
23:29:50.768 (loader): File "C:\Users\Jeffrey\AppData\Local\Temp\arduino_build _195947\Example2_OutputToProcessing.ino.hex", 33792 bytes
23:29:50.770 (loader): File "Example2_OutputToProcessing.ino.hex". 33792 bytes
23:29:50.774 (loader): remote cmd from 11120: "status"
23:29:50.782 (post_compile 3): Status: 1, 0, 0, 14, 0, 0, C:\Users\Jeffrey\AppData\Local\Temp\arduino_build_ 195947\, Example2_OutputToProcessing.ino.hex
23:29:50.782 (post_compile 3): Sending command: auto

 

 

n
23:29:50.782 (loader): remote cmd from 11120: "auto

 

 

n"
23:29:50.784 (post_compile 3): Disconnect
23:29:50.807 (loader): remote connection 11120 closed
23:29:51.138 (post_compile 4): Begin, version=1.55, high-res time
23:29:51.140 (loader): remote connection 11124 opened
23:29:51.143 (loader): remote cmd from 11124: "comment: Teensyduino 1.55 - WINDOWS (teensy_post_compile)"
23:29:51.144 (post_compile 4): Sending command: comment: Teensyduino 1.55 - WINDOWS (teensy_post_compile)
23:29:51.146 (loader): remote cmd from 11124: "status"
23:29:51.155 (loader): remote cmd from 11124: "dir:C:\Users\Jeffrey\AppData\Local\Temp\arduino_b uild_195947\"
23:29:51.156 (post_compile 4): Status: 1, 1, 0, 14, 0, 0, C:\Users\Jeffrey\AppData\Local\Temp\arduino_build_ 195947\, Example2_OutputToProcessing.ino.hex
23:29:51.156 (post_compile 4): Sending command: dir:C:\Users\Jeffrey\AppData\Local\Temp\arduino_bu ild_195947\
23:29:51.158 (loader): remote cmd from 11124: "file:Example2_OutputToProcessing.ino.hex"
23:29:51.159 (post_compile 4): Sending command: file:Example2_OutputToProcessing.ino.hex
23:29:51.172 (loader): File "C:\Users\Jeffrey\AppData\Local\Temp\arduino_build _195947\Example2_OutputToProcessing.ino.hex", 33792 bytes
23:29:51.176 (loader): File "Example2_OutputToProcessing.ino.hex". 33792 bytes
23:29:51.183 (loader): remote cmd from 11124: "status"
23:29:51.193 (post_compile 4): Status: 1, 1, 0, 14, 0, 0, C:\Users\Jeffrey\AppData\Local\Temp\arduino_build_ 195947\, Example2_OutputToProcessing.ino.hex
23:29:51.193 (post_compile 4): Disconnect
23:29:51.210 (post_compile 5): Running teensy_reboot: "C:\Program Files (x86)\Arduino\hardware\teensy\..\tools\teensy_rebo ot.exe" teensy_reboot.exe "-board=TEENSY41" "-port=fake serial" "-portlabel=(null)" "-portprotocol=(null)"
23:29:51.215 (loader): remote connection 11124 closed
23:29:51.225 (loader): remote connection 11124 opened
23:29:51.252 (reboot 6): Begin, version=1.55, high-res time
23:29:51.252 (reboot 6): location = fake serial
23:29:51.252 (reboot 6): portprotocol = (null)
23:29:51.252 (reboot 6): portlabel = (null)
23:29:51.252 (reboot 6): Emulated serial devices will be tried first
23:29:51.252 (reboot 6): LoadLibrary cfgmgr32 ok
23:29:51.252 (reboot 6): LoadLibrary ntdll ok
23:29:51.254 (reboot 6): nothing new, skipping HID & Ports enum
23:29:51.258 (loader): remote connection 11128 opened
23:29:51.264 (reboot 6): Disconnect
23:29:51.289 (loader): remote connection 11128 closed
23:29:51.296 (loader): remote connection 11124 closed







<After Button Press>



23:31:17.864 (ports 2): WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
23:31:17.869 (ports 2): nothing new, skipping HID & Ports enum
23:31:17.882 (ports 2): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
23:31:17.883 (ports 2): nothing new, skipping HID & Ports enum
23:31:17.960 (loader): stop ignoring usb:0/1D0000/0/1/5
23:31:18.045 (ports 2): WM_DEVICECHANGE DBT_DEVICEARRIVAL
23:31:18.045 (ports 2): nothing new, skipping HID & Ports enum
23:31:18.212 (loader): handle 2b40
23:31:18.214 (loader): Device came online, code_size = 100
23:31:18.215 (loader): Board is: NXP IMXRT1062 ROM
23:31:18.218 (loader): begin operation
23:31:18.233 (loader): File "C:\Users\Jeffrey\AppData\Local\Temp\arduino_build _195947\Example2_OutputToProcessing.ino.hex", 33792 bytes
23:31:18.236 (loader): File "Example2_OutputToProcessing.ino.hex". 33792 bytes
23:31:18.239 (loader): set background IMG_ONLINE
23:31:18.250 (loader): nxp_write: success
23:31:18.254 (loader): nxp_write: success
23:31:18.257 (loader): HAB open mode, bootcfg=80018
23:31:18.259 (loader): Opps, NXP ROM in open mode, but we do not yet have code for this case 

 

 


23:31:18.261 (loader): start ignoring usb:0/1D0000/0/1/5
23:31:18.264 (loader): end operation, total time = 0.043 seconds
23:31:18.270 (loader): redraw timer set, image 79 to show for 3000 ms
23:31:18.287 (ports 2): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
23:31:18.287 (ports 2): nothing new, skipping HID & Ports enum
23:31:21.270 (loader): redraw, image 9

Thanks,

Jeff

0 Kudos
1 Solution
919 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi @c172jeff ,

I haven't Teensey4.1. I'm not sure what's the problem. RT1062 ROM code hasn't open mode.

In https://www.pjrc.com/store/teensy41.html, I see that this board has a dedicated bootloader chip. And there is a Program pushbutton. Pressing the button button puts Teensy into programming mode. Can this work on your board? And Teensy 4.1 will fully erase its non-volatile memory and return the flash memory to a simple LED blink program if the program button is held between 13 to 17 seconds. If you can fully erase flash and power on again, Teensy Loader should can program the board. 

 

Regards,

Jing

View solution in original post

0 Kudos
1 Reply
920 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi @c172jeff ,

I haven't Teensey4.1. I'm not sure what's the problem. RT1062 ROM code hasn't open mode.

In https://www.pjrc.com/store/teensy41.html, I see that this board has a dedicated bootloader chip. And there is a Program pushbutton. Pressing the button button puts Teensy into programming mode. Can this work on your board? And Teensy 4.1 will fully erase its non-volatile memory and return the flash memory to a simple LED blink program if the program button is held between 13 to 17 seconds. If you can fully erase flash and power on again, Teensy Loader should can program the board. 

 

Regards,

Jing

0 Kudos