DFU Tool from NXP

cancel
Showing results for 
Search instead for 
Did you mean: 

DFU Tool from NXP

282 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by WHLShort on Sat Nov 22 02:14:43 MST 2014
NXP has developed the DFUSec tool, which is a great tool and fairly easy to use.
Though I still puzzle with 2 issues:
1) Which SPIFI flash devices are supported beside the S25FL032P? - Does a complete list of flash devices integrated SPIFI devices exist, and if yes, then where?
2) How to perform just an erase of the internal flash in a device, without programming the unit again? - I have been using an empty file, which works, but this makes the DFU tool complain in state 14.

Labels (1)
0 Kudos
2 Replies

91 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by wellsk on Sat Nov 22 08:33:46 MST 2014
>1) Which SPIFI flash devices are supported beside the S25FL032P? - Does a complete list of flash devices integrated SPIFI devices exist, and if yes, then where?
The SPIFI support is based on either the old SPIFI library shipped with some LPCOpen packages or the updated SPIFI v2 library.
The updated LCTv2 release (which is DFUSec if you uncheck the LOCK button on the file menu) uses the SPIFI v2 library. The older LCTv1 releases use the SPIFI v1 library.
Because of this, support for device may vary between releases.

>2) How to perform just an erase of the internal flash in a device, without programming the unit again? - I have been using an empty file, which works, but this makes the DFU tool complain in state 14.
It won't do just an erase without an associated write, but you can trick it by writing a small file with all 0xFF's (so you won't change the erase state). You might need to size the file to a certain size (ie, 512 bytes for FLASH).

The entire project and source code for the Programming algorithm used with DFUSec based on the v2 SPIFI library is included with the LCTv2 release. You can use the Keil EVAL version to rebuild the image and the LCT tool to add the header to the generated binary (.bin -> .bin.hdr). Then simply overwrite the existing file with the new one (best to back up first). The older v1 SPIFI library version is released with the Keil LPC1857 LPCOpen release.

With the source and project, you can build versions of the programming algorithm that add different SPIFI device support. You can even add your own DEBUG functions that get routed to the log windows on the DFUSec tool when the algorithm is running.

Also - another tool should be available soon that provides improved functionality over DFUSec. This should be available very soon.
0 Kudos

91 Views
brendonslade
NXP TechSupport
NXP TechSupport

Note to community readers: do not use the LCT tool. This was replaced by LPCScrypt (https://www.nxp.com/LPCScrypt) several years ago. Using LCT will result in very old firmware being loaded into the LPC-Link2, which will cause tool issues.

0 Kudos