9 years, 8 months ago.

Flashing from Linux

Hi guys,

I have some info in order to update firmware from Linux: I tried and succeded in updating the firmware image on a LPC11U35 which I used as in LPC824-MAX boards, but for a new board I created.

I found the information in chapter 3 of AN10986 from NXP, which states that the firmware image should be placed in the emulated disk starting at block 4.

I supposed that block size was 512, and tested this : dd if=20150303_lpc11u35_lpc824_if.bin of=/dev/disk/by-label/CRP\x20DISABLD bs=512 seek=4

Adapt to the latest (or your) firmware image name of course.

Must be done with interface ship in programming mode, which means pressing reset button while plugging USB cable.

Flashing random data to the right place (the micro-controller) does no harm, unplug and start again.

Be EXTRA CAREFUL on the disk drive (/dev/disk/by-label/CRP\x20DISABLD) as flashing the any data to your system disk will damage it irrevocably. Think twice before using /dev/sd*.

Question relating to:

Be the first to answer this question.