olimex LPC2378stk problem

HI,

I have just purchased this kit and am having problems with it.

Originally the kit booted up fine and the olimex logo was displayed on the LCD.

I tried the blinky sample and computer locked up.

After resetting the ARM board and my computer the LCD remains blank

and I get error messages.

Is there anyway to restore the board back to its default or factory settings? or could I have inadvertantly wiped the bootcode?

Oops forgot to post the errors, will do this when I finish work.

As I dont have the kit with me.

Right my apologies for not posting the error messages, so from the begining.

im using eclipse 3.2.

olimex LPC2378STk dev board with arm-ocd-tinyusb

Build works fine :-

make -k all

“.assembling”

arm-elf-as -ahls -mapcs-32 -o crt.o crt.s > crt.lst

“.compiling”

arm-elf-gcc -I./ -c -fno-common -O0 -g main.c

“…linking”

arm-elf-ld -v -Map main.map -Tdemo2106_blink_flash.cmd -o main.out crt.o main.o

GNU ld version 2.16.1

“…copying”

arm-elf-objcopy -O binary main.out main.bin

arm-elf-objdump -x --syms main.out > main.dmp

connection to arm-ocd =

Info: openocd.c:82 main(): Open On-Chip Debugger (2006-10-12 18:00 CEST)

hit debug and :-

Error: armv4_5.c:186 armv4_5_mode_to_number(): invalid mode value encountered

Error: arm7_9_common.c:972 arm7_9_debug_entry(): cpsr contains invalid mode value - communication failure

Warning: arm7_9_common.c:623 arm7_9_poll(): DBGACK set while target was in unknown state. Reset or initialize target before resuming

Error: armv4_5.c:186 armv4_5_mode_to_number(): invalid mode value encountered

Error: arm7_9_common.c:972 arm7_9_debug_entry(): cpsr contains invalid mode value - communication failure

and at other times :-

~“Ignoring packet error, continuing…\n”

Malformed response to offset query, timeout

Ignoring packet error, continuing…

&“Malformed response to offset query, timeout\n”

6^done

(gdb)

7 monitor sleep 500

&“monitor sleep 500\n”

&“"monitor" command not supported by this target.\n”

monitor sleep 500

“monitor” command not supported by this target.

7^done

(gdb)

8 monitor poll

&“monitor poll\n”

monitor poll

&“"monitor" command not supported by this target.\n”

8^done

“monitor” command not supported by this target.

(gdb)

9 monitor flash probe 0

&“monitor flash probe 0\n”

&“"monitor" command not supported by this target.\n”

monitor flash probe 0

“monitor” command not supported by this target.

9^done

(gdb)

10 monitor flash erase 0 0 0

&“monitor flash erase 0 0 0\n”

&“"monitor" command not supported by this target.\n”

monitor flash erase 0 0 0

“monitor” command not supported by this target.

10^done

(gdb)

11 monitor flash write 0 main.bin 0x0

&“monitor flash write 0 main.bin 0x0\n”

&“"monitor" command not supported by this target.\n”

monitor flash write 0 main.bin 0x0

“monitor” command not supported by this target.

11^done

(gdb)

12 monitor reset run

&“monitor reset run\n”

&“"monitor" command not supported by this target.\n”

monitor reset run

“monitor” command not supported by this target.

12^done

(gdb)

13 monitor sleep 500

&“monitor sleep 500\n”

monitor sleep 500

&“"monitor" command not supported by this target.\n”

“monitor” command not supported by this target.

13^done

(gdb)

14 monitor soft_reset_halt

&“monitor soft_reset_halt\n”

monitor soft_reset_halt

&“"monitor" command not supported by this target.\n”

“monitor” command not supported by this target.

14^done

(gdb)

15 monitor arm7_9 force_hw_bkpts enable

&“monitor arm7_9 force_hw_bkpts enable\n”

monitor arm7_9 force_hw_bkpts enable

&“"monitor" command not supported by this target.\n”

“monitor” command not supported by this target.

15^done

(gdb)

16 symbol-file main.out

symbol-file main.out

&“symbol-file main.out\n”

&“main.out: No such file or directory.\n”

16^done

main.out: No such file or directory.

(gdb)

17 thbreak main

thbreak main

No hardware breakpoint support in the target.

&“thbreak main\n”

&“No hardware breakpoint support in the target.\n”

17^done

(gdb)

18 continue

continue

The program is not being run.

&“continue\n”

&“The program is not being run.\n”

18^done

(gdb)

19-stack-list-frames

&“No registers.\n”

19^error,msg=“No registers.”

(gdb)

20-break-list

No registers.

20^done,BreakpointTable={nr_rows=“0”,nr_cols=“6”,hdr=[{width=“3”,alignment=“-1”,col_name=“number”,colhdr=“Num”},{width=“14”,alignment=“-1”,col_name=“type”,colhdr=“Type”},{width=“4”,alignment=“-1”,col_name=“disp”,colhdr=“Disp”},{width=“3”,alignment=“-1”,col_name=“enabled”,colhdr=“Enb”},{width=“10”,alignment=“-1”,col_name=“addr”,colhdr=“Address”},{width=“40”,alignment=“2”,col_name=“what”,colhdr=“What”}],body=}

(gdb)

21 info program

&“info program\n”

~“The program being debugged is not being run.\n”

21^done

(gdb)

22-environment-directory /cygdrive/C/GCCFD/projects/lpc2148 /cygdrive/C/GCCFD/projects/lpc2148/.settings

22^done,source-path=“/cygdrive/C/GCCFD/projects/lpc2148:/cygdrive/C/GCCFD/projects/lpc2148/.settings:$cdir:$cwd”

(gdb)

23 info threads

&“info threads\n”

&“No registers.\n”

23^done

(gdb)

24-stack-info-depth

No registers.

&“No registers.\n”

24^error,msg=“No registers.”

(gdb)

25-data-list-register-names

25^done,register-names=[“r0”,“r1”,“r2”,“r3”,“r4”,“r5”,“r6”,“r7”,“r8”,“r9”,“r10”,“r11”,“r12”,“sp”,“lr”,“pc”,“f0”,“f1”,“f2”,“f3”,“f4”,“f5”,“f6”,“f7”,“fps”,“cpsr”]

(gdb)

26-stack-info-depth

No registers.

&“No registers.\n”

26^error,msg=“No registers.”

(gdb)

27-stack-info-depth

No registers.

&“No registers.\n”

27^error,msg=“No registers.”

(gdb)

28-data-list-changed-registers

&“No registers.\n”

No registers.

28^error,msg=“No registers.”

(gdb)

29-stack-info-depth

&“No registers.\n”

No registers.

29^error,msg=“No registers.”

(gdb)

30-stack-info-depth

&“No registers.\n”

30^error,msg=“No registers.”

(gdb)

31-stack-info-depth

No registers.

No registers.

&“No registers.\n”

31^error,msg=“No registers.”

(gdb)

any help/pointers would be greatly appreciated.

Further to the above I have managed to put the kit back to it’s factory default by downloading a hex file via flashmagic.

must be the arm-usb-tiny.