i.MX25 SDP

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

i.MX25 SDP

643 Views
stephenbialkows
Contributor III

Hello,

I am targeting the i.MX25.  I am writing a Linux driver to replace the unsupported advanced toolkit flash tool (Serial Downloader Protocol/USB). 

I have the old scripts available to successfully erase and flash an in-field unit on Windows XP only.  In an attempt to better understand the sequences of commands to erase and write flash, I put a packet sniffer on the bus.  I was surprised to find the use of an undocumented command (starting with 0x0606).  Without it, the command sequences fail. 

These commands appear to be formatted differently after the first two command bytes.  For example, the process of writing a rom file to flash starts out with a sequences of 16 bytes commands that appear to start the process. 

The last of which is 06 06 00 05   00 00 00 00   00 20 00 00   00 01 00 00.  I believe bytes 4-7 are the image offset (the image is sent in 0x20_0000 chunks), and bytes 8-11 the number of bytes the target device should expect, and byte 13 has something to do with device-side image verification. 

This varies from the SDP, where the target address is bytes 2-5, and size is bytes 7-10.  Perhaps these 0x0606 commands are legacy commands that exist in older documentation?  If so, I haven't been able to find it. 

I have an idea of how some of these command are used.  I'm still clueless with most.  I don't understand the details of what each are, and how to determine success/failure, etc.  I will feel much more confident in this new driver if I could find the documentation for these commands starting with 0x0606.  I don't know where else to look.  So...what do you know that I don't? 

Thanks in advanced!

Stephen

Labels (1)
0 Kudos
2 Replies

499 Views
igorpadykov
NXP Employee
NXP Employee

Hi Stephen

sdp is described in sect.7.8 Serial Download protocol i.MX25 RM

https://www.nxp.com/docs/en/reference-manual/IMX25RM.pdf 

Also one can check ATK sources (if there will be problem, one can create service request to obtain it) :

https://www.nxp.com/webapp/Download?colCode=IMX_ATK_SOURCE_CODE&appType=license&location=nul... 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

498 Views
stephenbialkows
Contributor III

Thanks Igor. 

This should resolve my concerns assuming I can get the source code.  The provide link results in "file not found".  I have created a service request. 

Stephen

0 Kudos