element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
RIoTboard
  • Products
  • Dev Tools
  • Single-Board Computers
  • RIoTboard
  • More
  • Cancel
RIoTboard
Forum MfgTool2 error - ModuleID[2] LevelID[1]: Parse ucl script failed, error code: 21
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join RIoTboard to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 4 replies
  • Subscribers 24 subscribers
  • Views 4025 views
  • Users 0 members are here
  • mfgtool2
  • riotboard
Related

MfgTool2 error - ModuleID[2] LevelID[1]: Parse ucl script failed, error code: 21

clemo
clemo over 12 years ago

Hi,

 

Reading the User Manual I decided to try to put Linux on the board, so I followed the steps as indicated on page 40 and on.

When I launch the tool MfgTool2.exe I get the error (including the typo)

 

     Iitialize operation failed, please refer to "MfgTool.Log" for detailed information, error code: 21.

 

In the log file I find this:

 

     DLL version: 2.2.3

     Friday, February 07, 2014 10:30:56   Start new logging

     ModuleID[2] LevelID[1]: Parse ucl script failed, error code: 21

 

I am probably too dumb for this kind of boards, but what the heck does that mean?

 

My PC is running Windows 7 SP1 Home Premium edition. The RIoT board is detected as an HID interface.

 

Any idea how to solve this?

 

P.S. Is the Debug serial port using TTL or RS-232 levels?

  • Sign in to reply
  • Cancel

Top Replies

  • cstanton
    cstanton over 12 years ago +1 verified
    Hi John, For some reason in the flash downloads a file has been named incorrectly. You need to rename ' ucl2.txt ' to ' ucl2.xml ' For example in the linux image download the file is located: Linux\tools…
  • cstanton
    0 cstanton over 12 years ago

    Hi John,

     

    For some reason in the flash downloads a file has been named incorrectly.

     

    You need to rename 'ucl2.txt' to 'ucl2.xml'

     

    For example in the linux image download the file is located:

     

    Linux\tools\Mfgtools-Rel-4.1.0_130816_MX6DL_UPDATER\Profiles\MX6DL Linux Update\OS Firmware

     

    This file also needs to be renamed in the Android flash download.

     

    For the debug serial, I'm connected to it via TTL with a CP2102 (CP2102-GM - SILICON LABORATORIES - USB-TO-UART BRIDGE, 3.6V, MLP | Farnell UK) on a USB board.

     

    On Windows Putty (PuTTY: a free telnet/ssh client) works as a good serial console. Flow control should be set to off and the bitrate to 115200.

     

    Does that answer your question ?

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • Former Member
    0 Former Member over 9 years ago

    Dear

     

    I am also having the error:

       Iitialize operation failed, please refer to "MfgTool.Log" for detailed information, error code: 21.

     

    I am using an iWave i.MX6 Qseven SOM Development platform (iW-RainboW-G15D). I've checked the ucl2.xml-file and it has a correct name but I still have the error. What could be the cause of this?

     

    Thanks

    Pieter Cardoen

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • radiatortwo
    0 radiatortwo over 9 years ago in reply to Former Member

    Most likely an error inside the ucl2.xml file. Look into the MfgTool.Log to know what error it is and in what line it´s in the ucl2.xml.

    Most of the time it´s some XML Syntax error.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 9 years ago

    Ok, after about a month of struggling with the Mfgtool both on windows and on linux i have decided to post this. I am not familar with the lingo so forgive me but you should be able to get the jist of what im saying. First off all this crap about renaming the xml file is exactly that...crap. dont even mess with it. Now most of my work has been on android and thats where all my problems were but i just flashed ubuntu ten minutes ago with no problem. And i did nothing to the xml file. You all need to be looking at the bin file. In the android tool in order for it to work all i needed to to was "trick" it. I noticed in the log that the problems were with the bin file and the xml a COMBINATION of the two. So i that its probably something to do with the name..its always the name in linux..lol. So i just renamed the new bin file to match the original. and then i deleted the original. and then i flashed..after of course replaciing the other files (boot, ect) As for linux.. to get that one to work, just  dont do anything to the xml file at all. other then that, the linux flashing was easy. anyway, I love this board, but i am going to be getting a Odroid to run my android on because the riotboard ive noticed has little to no support and the forums are like a desert..tumbleweeds and all.  The fact that it took me a month to figure something out so simple like changing a name..while everyone is saying to change a different name, goes to show... this is not the board for me (community speaking) techinally its beutiful and i will continue to use it, i will just have to figure things out on my own. But i hope what i found out helps somebody out in someway or an other.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube