AnsweredAssumed Answered

From ATK to MFG - How to flash iMX25 NAND

Question asked by Alessandro Azzolini on Apr 9, 2015
Latest reply on Apr 13, 2015 by Yuri Muhin

Dear all,


I always used successfully ATK to flash NAND type (MT29F1G16) on my iMX25 device with MQX RTOS


Now, in order to make it possible also on Win 7/8,

I need to migrate to MFG tool.

Device is correctly recognized as Freeescale i.MX25 BulkIO Device

But something goes wrong during

"push" operation (UTP mode) ---- > error code=-65520


"program" operation (RKL mode) ---- > Updater Error -22136


UCL attached.


- "mx25_nand.bin" is my micro-loader image used with ATK

- "Bootloader.bin" is the module I want to flash starting from 0x00000000

- "mx25ddr2.xml" is the memory file used also with ATK


Any idea about how to fix it?


Many thanks in advance



Alessandro A.



- UTP mode:



    <STATE name="BootStrap" dev="MX25" />

    <DEV name="MX25" vid="15A2" pid="003A"/>


  <LIST name="NAND" desc="Choose Nand as media">

    <CMD type="find" body="BootStrap" timeout="60"/>

    <CMD type="init" body="Memory" file ="mx25ddr2.xml" />

  <CMD type="load" file="Bootloader.bin" address="0x70100000" loadSection="OTH" setSection="OTH" HasFlashHeader="FALSE" >Doing preLoad."</CMD>

  <CMD type="load" file="mx25_nand.bin" address="0x80800000" loadSection="OTH" setSection="APP" HasFlashHeader="TRUE" >Loading OS image.</CMD>

    <CMD type="jump" > Jumping to OS image. </CMD>

  <CMD type="push" body="send" file="files/Bootloader.bin">Sending Bootloader.bin</CMD>





- RKL mode:



    <STATE name="BootStrap" dev="MX25" />

    <STATE name="RamKernel" dev="MX25" />

    <DEV name="MX25" vid="15A2" pid="003A" />



  <LIST name="NAND" desc="Program FW into flash">

  <CMD type="rklCmd" body="FlashInit" timeout="120" />

  <CMD type="init" body="Memory" file ="mx25ddr2.xml" />

    <CMD type="program" file="Bootloader.bin" address="00000000" readback="TRUE" />