Monday, June 18, 2012

Programming LPC4330 - Xplorer using DFU download/upload tool



As mentioned in my previous blog, LPC4330 Xplorer can be programmed in different modes. Now using DFU download/upload tool we can download .bin file onto the ram for execution. In order to using this tool the DIP switches on Xplorer board should be configured in following configuration,

SW1 - OFF
SW2 - ON
SW3 - OFF
SW4 - ON

Download winusb drivers from here
Download DFU tool from here

Connect the usb cable provided with the Xplorer to USB0 connector and then update the driver with the downloaded winusb drivers. After successful installation, extract the DFU tool to a folder and run the application


Screenshot of the DFU tool running on my machine
If everything is fine, then you will get "HIGH SPEED USB" as shown in above screenshot. Provide the path to the binary file and click on 'Generate binary file with header'. Finally, click on 'Start'. Soon after download is done, You can see your code in execution.

Screenshot after the download is complete

Once the download is done, connection with the board is lost as shown is above screenshot. Reset the board and you are good to go again.




Blinky running on Xplorer, programmed using DFU

Good Luck....







3 comments:

  1. Sir i have performed the peripheraltest. For the first time everything went on fine. Then for programming using DFU technique i changed the switches position as you mentioned. Now when i included the USBVCOM lib in my project as present the keil sample projects link on NGX site the LPC4330 is not getting enumerated only as a VCOM port. kindly help.

    ReplyDelete
  2. On the latest boards it seems you need to hold down SW2 as you power up the board (i.e. as you plug in USB0), as well as setting the dip switches.

    ReplyDelete