Loading binary to a NOR Flash connected externally to i.mx6

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

Loading binary to a NOR Flash connected externally to i.mx6

727 Views
Arkalten
Contributor I

Hello,

We have a graphics driver board with a imx6Q processor. This is interfaced with a 16-bit NOR flash (1Gb/100MB) through the  EIM. We are able to execute the code generated from the i.mx6 sdk from the RAM. We were able  to use the MFG tool for downloading to the RAM. The ucl xml script for the download is as follows : 

<UCL>
  <CFG>
     <STATE name="BootStrap" dev="MX6SL" vid="15A2" pid="0063"/>
    <STATE name="BootStrap" dev="MX6D" vid="15A2" pid="0061"/>
    <STATE name="BootStrap" dev="MX6Q" vid="15A2" pid="0054"/>
    <STATE name="BootStrap" dev="MX6SX" vid="15A2" pid="0071"/>
    <STATE name="Updater"   dev="MSC" vid="066F" pid="37FF"/>
  </CFG>
  <!--
    The below commands will Load to RAM
-->
 <LIST name="DWLD_IN_SDP" desc="Download and execute a binary!"> 
     <CMD state="BootStrap" type="find" body="Recovery" timeout="180"/>
     <CMD state="BootStrap" type="boot" body="BootStrap" file ="sdk_unit_test_ALL-RAM.bin"                       ifdev="MX6Q">Loading SDK.bin </CMD>
     <CMD state="BootStrap" type="jump">Jumping to MAP SDK Image. </CMD> 
 </LIST>
</UCL>

 

However, we are not able to load the binary to the flash memory  by using the mfg tool. The corresponding xml is as follows : 

<UCL>
  <CFG>
     <!- <STATE name="BootStrap" dev="MX6SL" vid="15A2" pid="0063"/> ->
    <!-  <STATE name="BootStrap" dev="MX6D" vid="15A2" pid="0061"/> ->
    <STATE name="BootStrap" dev="MX6Q" vid="15A2" pid="0054"/>
    <! -<STATE name="BootStrap" dev="MX6SX" vid="15A2" pid="0071"/> ->
   <! - <STATE name="Updater"   dev="MSC" vid="066F" pid="37FF"/> ->
  </CFG>
 
  <LIST name="DWLD_IN_SDP" desc="Choose Nor flash as media">
<CMD state="BootStrap" type="load" file="sdk_unit_test_ALL-FLASH.bin" address="0x080000000" loadSection="OTH" setSection="APP" HasFlashHeader="TRUE" ifdev="MX6SQ">Loading FLASH Code.</CMD>
<CMD state="Recovery" type="jump">Jumping to MAP SDK Image.</CMD>
  </LIST>
</UCL>

 

On the mfg tool, the loading appears as complete, but the cose doesn't execute from flash. Is it psossible to load to the flash using the mfg tool procedure or are there any other alternatives ? 

 

With Regards,

ARK

0 Kudos
Reply
3 Replies

643 Views
Arkalten
Contributor I

Hi Daniel,

Thanks for the reply. Basically, the flashing wasn't going through using the MFG tool & hence we dropped the idea. We got a solution using the j-link debugger and were able to successfully flash into the NOR flash using the j-flash tool. 

I also got to know from a colleague that the support for loading the baremetal code to flash is no longer present in the mfg tool as NXP stopped doing so after a few years. Hence the mfg tool or uuu is basically used for loading with u-boot only & you see the same in the corresponding xml file as well

Thanks a lot for helping though.

With Regards,

Avinash

647 Views
danielchen
NXP TechSupport
NXP TechSupport

mfgtool supports EIM Nor flash.

0 Kudos
Reply

666 Views
danielchen
NXP TechSupport
NXP TechSupport

do you have any error message for that?

 

Regards

Daniel

0 Kudos
Reply