NXP DFU Utility

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

NXP DFU Utility

2,053 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Willi.L on Mon Aug 25 03:44:30 MST 2014
Hello Forum,

at development we used Hitex_eva_4350_board and LPCXpresso.
For manufacturing should be used dfusec(NXP DFU Utility version 1.11).
This has super operate with Hitex_eva_4350_board.

Now we have an own hardware-board with LPC4330 and a new flash S25FL164K.
I can flash firmware with LPCXpresso with new cfx-file (LPC18_43_S25FL164K.cfx).
But with DFU Utility I get a PROGRAM CYCLE ERROR:
Programming algorithm failed command: 7
Programming algorithm failure response: 1

How can we use DFU Utility for programming a new flash (S25FL164K)?

With best regards
Willi
Labels (1)
0 Kudos
6 Replies

1,300 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Thu Feb 12 05:18:00 MST 2015
Have you considered using LPCScrypt instead?
http://www.lpcware.com/lpcscrypt


LPCScrypt is a command-line based, fast flash, EEPROM, OTP and security programming tool for the LPC18/43 family of microcontrollers. Key features include:

    Multi-Platform Support (Windows, Mac, Linux)
    Scriptable command line interface
    Programming of internal and SPIFI flash
        Support for a wide range of SPIFI devices (via use of LPCOpen lpcspifilib)
        Optimised for high speed operation - typically 100-200KB/sec, depending upon flash device, host OS and host computer.
    Programming EEPROM (internal flash parts only)
    Programming One-Time Programmable (OTP) memory
0 Kudos

1,300 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by syed99 on Thu Feb 12 04:51:45 MST 2015
Hi,
I am trying to compile examples of dfu-util (dfuutil_programming_spiflash_algorithm) using IAR, I am facing lot of errors as i am trying to create a new project.
Is there any pre-configured version of dfu-util example for IAR workspace???
It would be great help

Thanks,
Syed
0 Kudos

1,300 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by wellsk on Mon Sep 29 13:27:09 MST 2014

Quote:
If I have right understand, I should change DFUSec programming algorithm (iram_dfu_util_any.bin.hdr)
to support a new SPIFI-flash with DFUSec.


Only if the device you have isn't supported by the current algorithm. The current one supports a lot of different devices - look at the program log tab for the actual error message the firmware supported - it may not be an issue with device support, it might be arguments passed to the firmware.


Quote:
Follow the site http://www.lpcware.com/content/project/dfu-download-programming-utility-and-security-lpcdfusec-tool/...
i have find: "See the dfuutil examlpe in LPCOpen for the project that builds this image. Currently, this projects only works with the Keil toolchain".

Sorry, but i have not find the dfuutil example project in LPCOpen.


Yes, this project only builds with Keil MDK.
The project and files are in the Keil LPC1857 version of the LPCOpen package only. The Keil LPC1857 build of dfuutil/sec works on all existing boards.


Quote:
And what should I do to change programming algorithm with LPCXpresso?


Sorry, I can't help with that part. You might look in the LPCXPresso examples directory to see if any examples exist for a DIY programming driver.
0 Kudos

1,300 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Willi.L on Mon Sep 29 03:59:13 MST 2014
Hi Kevin,

If I have right understand, I should change DFUSec programming algorithm (iram_dfu_util_any.bin.hdr)
to support a new SPIFI-flash with DFUSec.

Follow the site http://www.lpcware.com/content/project/dfu-download-programming-utility-and-security-lpcdfusec-tool/...
i have find: "See the dfuutil examlpe in LPCOpen for the project that builds this image. Currently, this projects only works with the Keil toolchain".

Sorry, but i have not find the dfuutil example project in LPCOpen.

And what should I do to change programming algorithm with LPCXpresso?

Willi
0 Kudos

1,300 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by wellsk on Thu Sep 25 08:45:55 MST 2014
Here are the current commands (starting at 0 for readid).

/* Possible commands from the host machine */
typedef enum {
DFU_HOSTCMD_READIDS,/* Read device IDs, not used */
DFU_HOSTCMD_SETDEBUG,   /* Enables/disables debug output */
DFU_HOSTCMD_PROGOTP,/* Program OTP data, not used */
DFU_HOSTCMD_READOTP,/* Read OTP data */
DFU_HOSTCMD_STARTNEWSESS,/* Starts a program session */
DFU_HOSTCMD_STARTENCSESS,/* Starts an encryption session, not used */
DFU_HOSTCMD_ERASE_ALL,/* Erase the entire device */
DFU_HOSTCMD_ERASE_REGION,/* Erase a region defined with addr/size */
DFU_HOSTCMD_PROGRAM,/* Program a region defined with addr/size */
DFU_HOSTCMD_READBACK,/* Read a region defined with addr/size */
DFU_HOSTCMD_RESET,/* Reset the device/board */
DFU_HOSTCMD_EXECUTE
} DFU_HOSTCMD_T;




Quote:
But with DFU Utility I get a PROGRAM CYCLE ERROR:
Programming algorithm failed command: 7
Programming algorithm failure response: 1


Command 7 (erase region) failed.
This will most likely happen if one of the following happens, but isn't a complete list:
1) The firmware used to program FLASH doesn't correctly support that device
2) The region size you are trying to erase is not aligned to a erasable region (sector/block/etc.) size for the device. This is the size parameter on the 'Program mode' panel.

You can get some more information about the error from the firmware log output itself. Press the 'Program log' tab on the right window to being up the messages generated by the firmware image. There should be some more information there that you can post here.
0 Kudos

1,300 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gjdevos on Mon Sep 22 08:21:29 MST 2014
Hi Willi,

Did you managed to flash your board with the DFU utility? I like to do the same and I can not
figure out how to get a fimware image running on my board with the DFU utilty.

Regards,

Gert-Jan
0 Kudos