NXP-MCUBootUtility failed out

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

NXP-MCUBootUtility failed out

1,036 Views
madisonchou
Contributor III

Try to run NXP-MCUBootUtility.   No luck.   Any idea from anyone?   Thanks much!!!

I have RT1060 FVK.   The J9 Micro-USB is properly enumerated as HID port.  Download the utility (Master branch).   Unzip it and place it in C:\.  Double-click the icon.   DOS command window comes up.   But soon it closes.   Run the program from command line (Open a command window and launch program via command line.)   This the outputs before it returns to DOS prompt.

c:\NXP-MCUBootUtility-master\bin>NXP-MCUBootUtility
Traceback (most recent call last):
File "main.py", line 944, in <module>
File "main.py", line 63, in __init__
File "mem\memcore.py", line 22, in __init__
File "fuse\fusecore.py", line 18, in __init__
File "run\runcore.py", line 66, in __init__
File "gen\gencore.py", line 23, in __init__
File "ui\uicore.py", line 84, in __init__
File "ui\uicore.py", line 215, in setTargetSetupValue
File "run\runcore.py", line 95, in createMcuTarget
File "run\runcore.py", line 54, in createTarget
File "c:\NXP-MCUBootUtility-master\src\targets\MIMXRT1021\bltargetconfig.py", line 34, in <module>
from ui import RTyyyy_uidef
ImportError: cannot import name RTyyyy_uidef
[29316] Failed to execute script main

0 Kudos
3 Replies

864 Views
madisonchou
Contributor III

I finally have time to get back to it.   Patricio suggestion doesn't seem to help (still thanks for the post.)   I ended up download/install the utility again.   Then it just works.   Not sure why though.

0 Kudos

864 Views
patriciocohen
Contributor IV

Hi,

I had the same problem today. This is what I did to make it work:

1) Install python from https://www.python.org/ftp/python/2.7.15/python-2.7.15.msi . Select the option to add the directory where Python will be installed to the PATH environment variable.

2) Download the NXP-MCUBootUtility from https://github.com/JayHeng/NXP-MCUBootUtility/archive/master.zip 

3) Extract the downloaded file to a directory of your choice

4) Go to the env/ directory and open a command prompt there

5) Run do_setup_by_pip.bat and wait until it finishes

6) Run do_pack_by_pyinstaller.bat and wait until it finishes.

That should do it. Now go to the bin directory and run NXP-MCUBootUtility.exe

The program should run with no problems :smileywink:

Have a happy day,

Patricio

0 Kudos

864 Views
jorge_a_vazquez
NXP Employee
NXP Employee

Hi Jei Chou 

PLease check the following link:

NXP-MCUBootUtility Running error 


Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

-------------------------------------------------------------------------------

0 Kudos