Bambino-200 Manual/Updating Firmware
From Manuals
(→Updating Firmware) |
|||
| (24 intermediate revisions not shown) | |||
| Line 1: | Line 1: | ||
| - | [[Category: Bambino-200_Manual| | + | [[Category: Bambino-200_Manual|04]] |
==Updating Firmware== | ==Updating Firmware== | ||
| + | The Bambino 200 firmwarte can be updated via the primary USB port using the standalone [http://www.micromint.com/updates/bambino/dfusec.zip NXP DFU Flash Programmer]. This tool is a simple alternative to update firmware in boards deplayed in the field. It also allows NetMF developers to update the [http://www.micromint.com/updates/bambino/200/TinyCLR-4.2.0.2.bin TinyCLR firmware] to a current version. Other applications can install their corresponding firmware using this flash programmer. To update firmware via DFU, please follow these steps: | ||
| - | + | 1. Install the DFU Flash Programmer to a directory in your hard disk. Currently the NXP DFU programmer is only available for Windows. | |
| - | + | 2. Place the board in USB boot mode by shorting the two contacts labelled "Boot JP1" as shown below while pressing and releasing the RESET button. Metal tweezers work great for shorting the two contacts. If you will be doing frequent updates, you may consider soldering a 2-pin header in and use a jumper to enter the USB boot mode. | |
| - | [[Image:LPC-DFU.png|center|alt=LPC DFU Flash Programmer|frame|<div align="center">''' | + | [[Image:Bam200-JP1.png|center|alt=Boot Jumper (JP1)|frame|<div align="center">'''Boot Jumper]]</div> |
| + | |||
| + | 3. An entry "LPC USB" should appear in the Windows Device Manager. If your device is not recognized, please check that you have the [http://www.micromint.com/updates/bambino/bambino-drivers.zip USB Drivers] installed. | ||
| + | |||
| + | [[Image:LPC-USB.png|center|alt=LPC USB Device|frame|<div align="center">'''LPC USB device]]</div> | ||
| + | |||
| + | 4. Run lpc_dfutil.exe in the dfusec folder. You should see "HIGH SPEED USB" in the status bar indicating it was able to connect to the board. | ||
| + | |||
| + | [[Image:LPC-DFU.png|center|alt=LPC DFU Flash Programmer|frame|<div align="center">'''LPC DFU Flash Programmer]]</div> | ||
| + | |||
| + | 5. Use the following parameters and press START. You may need to use full paths for the algorithm (*.hdr) and firmware (*.bin) files. If you want to maintain deployed assemblies when updating TinyCLR, reduce the size to 0x070000 so the rest of the flash is not updated. | ||
| + | |||
| + | Algorithm: .\Programming_algorithms\iram_dfu_util_spiflash.bin.hdr | ||
| + | File: <Path and name of firmware to be copied to flash> | ||
| + | Address: 0x14000000 | ||
| + | Size: 0x00400000 | ||
| + | Param: 0x00000000 | ||
| + | Device erase: Region | ||
| + | Operation after: Reset | ||
| + | No checkboxes neede | ||
| + | |||
| + | You can test the procedure using the file listed below. | ||
| + | |||
| + | : .\Prebuilt_examples\bambino200\blinky_spifi_bambino_200.bin | ||
| + | |||
| + | 5. After the flash is complete, exit the utility, remove the boot jumper, and reset your board. You need to press RESET twice due to an issue documented in the [http://www.nxp.com/documents/errata_sheet/ES_LPC43X0.pdf LPC43X0 Errata] for boards booting from SPIFI flash. | ||
| + | |||
| + | 6. Three [http://www.micromint.com/updates/bambino/bambino-drivers.zip USB Drivers] are provided for the Bambino 200. Selecting the top directory allows Windows to select the appropriate one based on the vendor and product ID (VID/PID). | ||
| + | |||
| + | {| border="1" cellpadding="2" cellspacing="2" align="center" | ||
| + | |+ align="bottom"|USB Drivers | ||
| + | |- | ||
| + | !Driver | ||
| + | !Directory | ||
| + | !Purpose | ||
| + | |- | ||
| + | |WinUSB | ||
| + | |WinUSB\BambinoUSB.inf | ||
| + | |Default NetMF driver | ||
| + | |- | ||
| + | |CDC | ||
| + | |VCom\LpcVcom.inf | ||
| + | |Alternate NetMF driver | ||
| + | |- | ||
| + | |DFU | ||
| + | |WinUSB\LpcDevice.inf | ||
| + | |Flash programmer | ||
| + | |} | ||
---- | ---- | ||
| - | [[Bambino-200_Manual/ | + | [[Bambino-200_Manual/Rebuild Firmware|NEXT: Rebuild NetMF Firmware]] |
[[Bambino-200_Manual/Getting Started mbed|PREVIOUS: Getting Started - mbed Applications]] | [[Bambino-200_Manual/Getting Started mbed|PREVIOUS: Getting Started - mbed Applications]] | ||
Current revision as of 18:30, 3 September 2013
Updating Firmware
The Bambino 200 firmwarte can be updated via the primary USB port using the standalone NXP DFU Flash Programmer. This tool is a simple alternative to update firmware in boards deplayed in the field. It also allows NetMF developers to update the TinyCLR firmware to a current version. Other applications can install their corresponding firmware using this flash programmer. To update firmware via DFU, please follow these steps:
1. Install the DFU Flash Programmer to a directory in your hard disk. Currently the NXP DFU programmer is only available for Windows.
2. Place the board in USB boot mode by shorting the two contacts labelled "Boot JP1" as shown below while pressing and releasing the RESET button. Metal tweezers work great for shorting the two contacts. If you will be doing frequent updates, you may consider soldering a 2-pin header in and use a jumper to enter the USB boot mode.
3. An entry "LPC USB" should appear in the Windows Device Manager. If your device is not recognized, please check that you have the USB Drivers installed.
4. Run lpc_dfutil.exe in the dfusec folder. You should see "HIGH SPEED USB" in the status bar indicating it was able to connect to the board.
5. Use the following parameters and press START. You may need to use full paths for the algorithm (*.hdr) and firmware (*.bin) files. If you want to maintain deployed assemblies when updating TinyCLR, reduce the size to 0x070000 so the rest of the flash is not updated.
Algorithm: .\Programming_algorithms\iram_dfu_util_spiflash.bin.hdr File: <Path and name of firmware to be copied to flash> Address: 0x14000000 Size: 0x00400000 Param: 0x00000000 Device erase: Region Operation after: Reset No checkboxes neede
You can test the procedure using the file listed below.
- .\Prebuilt_examples\bambino200\blinky_spifi_bambino_200.bin
5. After the flash is complete, exit the utility, remove the boot jumper, and reset your board. You need to press RESET twice due to an issue documented in the LPC43X0 Errata for boards booting from SPIFI flash.
6. Three USB Drivers are provided for the Bambino 200. Selecting the top directory allows Windows to select the appropriate one based on the vendor and product ID (VID/PID).
| Driver | Directory | Purpose |
|---|---|---|
| WinUSB | WinUSB\BambinoUSB.inf | Default NetMF driver |
| CDC | VCom\LpcVcom.inf | Alternate NetMF driver |
| DFU | WinUSB\LpcDevice.inf | Flash programmer |


