Blueboard LPC1768-H development from linux

I just received my Blueboard LPC1768-H and am working on using it from a linux development machine, using GCC obviously. Since I haven’t seen many references on this (someone please post a link if they know of any!) I’m going to describe some of what has and hasn’t worked for me.

Plugging in the mini USB powers it and comes up as an HID mouse. With no actual user controls. Okay, the board isn’t dead, but as an approach this is a dead end.

Connecting to the uart0 bootloader with an FTDI TTL-232-3V3 cable works unsurprisingly, though of course the pinout of the ftdi cable doesn’t match. I’ll be using RTS# to trip the reset, and ground BSL manually (to boot to bootloader, vs user code).

make sure to add yourself to the dialout group or whatever it takes to get access to the usb serial device file on your flavor of linux

ngxtechnologies links to a linux alternative to flash magic from the user manual for the stamp version of the board (the -H doesn’t get a user manual apparently)

http://www.pjrc.com/arm/lpc2k_pgm/

Unfortunately… this does not work. First I patched it to use RTS rather than DTR to reset the board, but it seems to get confused because the echo comes through with only a CR and not a CRLF. I partially fixed that, and tried to add a table for the LPC1768, but later on it got confused by responses being read in the same call as the echo.

So for the moment, I’m running flashmagic in wine, which actually does work if you simlink ~/.wine/dosdevices/com1 to /dev/ttyUSB0 or whatever

For a sample program, I followed the instructions at http://dev.frozeneskimo.com/notes/compi … r_the_mbed

Only since I’m using a blueboard rather than an mbed and want to blink the led connected to P1.29, I set

LPC_GPIO1->FIODIR = 0x20000000

and use

LED_On ((1<<29));

Fired up flash magic, downloaded it. Ungrounded BSL, reset the board. Oh look, the led’s flashing. Guess I haven’t wasted my money.

Bedtime.