Forums

Is there a difference between ISP/Serial programming and JTAG programming

Started by Delbert M February 5, 2011
I finally got OpenOCD to work with my lpc2148 board from Olimex, or at least I think i have it working. I am using an ubuntu 10.10 machine to do my programming with their (packaged) version of openOCD. I had to go get the GNU Arm programs. http://www.gnuarm.com/bu-2.16.1_gcc-4.0.2-c-c++_nl-1.14.0_gi-6.4_x86-64.tar.bz2 I even got the olimex files for my board: http://www.olimex.com/dev/soft/arm/LPC/LPC-P2148-BLINK-LED-ECLIPSE.zip I used openocd to upload the pre-compiled hex file that came with it. flash write_image erase unlock /home/dmartin/Downloads/lpc2148/main.hex 0 and when I tell it to run, it just sits there and looks like its having some kind of booting problem. I wish my new computer had a serial port so I could compare. Anyone have any Ideas about how I'm being an idiot?

An Engineer's Guide to the LPC2100 Series

--- In l..., "Delbert M" wrote:
> I wish my new computer had a serial port so I could compare.

I recommend that you get yourself a USB to RS232 convertor cable / adapter.

Chris.

right, I'm picking this back up, but I can't even get the processor to blink with precompiled hex code. I was just wondering if I was doing something wrong, I really would like to program this via jtag and get everything to just work. I was also wondering if anyone programs the flash via jtag successfully, using the mdh command I can tell that its written stuff to the flash.

--- In l..., "cfbsoftware1" wrote:
>
> --- In l..., "Delbert M" wrote:
> > I wish my new computer had a serial port so I could compare.
>
> I recommend that you get yourself a USB to RS232 convertor cable / adapter.
>
> Chris.
>

Upon picking up a USB->Serial cable and finding a lpc2000 flash utility for linux, I was able to get working compiled code on to the unit. At least now I know nothing is broken and my dev env is at least mostly working - programming via JTAG using openocd.

any tips?

On 06/02/2011 02:14, Delbert M wrote:
> right, I'm picking this back up, but I can't even get the processor to blink with precompiled hex code. I was just wondering if I was doing something wrong, I really would like to program this via jtag and get everything to just work. I was also wondering if anyone programs the flash via jtag successfully, using the mdh command I can tell that its written stuff to the flash.
Try reducing the JTAG clock speed.

Leon
--
Leon Heller
G1HSM