Hi, i’ve been having hell of a time trying to upload my first hexfile to my lpc2378 via openocd and my ft2232 usbjtag.
I’ve been at #openocd and the openocd sub-forum here for a few months now and still no luck. Recently I was made aware that it’s possible to upload a hexfile to my chip via uart, how do I go about this?
Any help would be great, i’ve been able to get nowhere for what seems like forever now.
If you still have no joy, tell us how far you got and identify which LPC2378 system you are actually using.
Cheers. I’m not really sure on how about connecting to the lpc from my PC. Could I just use the tx/rx from my arduino (taking the avr chip out 1st of course) and connect it to the respective ports on the arm?
I also have a usbjtag that has 2 serial outputs (it says rs232 but i’m sure thats due to a level converter and tapping prior to it via the other 2 headers may be possible) but no idea what the voltage levels are.
leon_heller:
You need an RS-232 port on the PC. The ARM board needs a corresponding DB-9 connector, of course, or some way of connecting it to the RS-232 port.
The lpc2378 board is absolute barebones. It’s a chip with some caps, resistors, external oscillator, and headers. It’s been tested and i’ve already got firmware in it but that was at work via a borrowed Keil and a ULink2 which I have neither at home.
It has a max3233 available but I would have thought is unnecessary if I have an ftdi usb to serial (ft232) at hand.[Just found out that I would be able to talk to it as my ftdi2232 (the usbjtag) seems to be broken. Connect tx+rx and get no echo]
I would post an image of the dev-board but i’m not sure of the IP infringements that would cause. In essence it’s a load of chips with headers and a common Vsource which require connection via wires to be of any use. Think of it as those 100in1 type electronic’s kit but with chips.
Flashmagic works for me. Found out on the web I needed to set the chip in ISP mode and reset so I had to find those pins 1st. I then used the pins0+1 on my arduino for the uart-comms and everything went well.
Unfortunately I find developing in a windows environment really uncomfortable so I was wondering if there is a similar tool available for Linux/BSD?
There is a “Portable command line ISP for Philips LPC2000 family and Analog Devices ADUC70xx” tool called lpc21isp by Martin Maurer. It comes with complete source code in C but that is about all I know about it - use Google to look for a copy.