[En-Nut-Discussion] Writing code to FLASH in Ethernut 3
scostas
scostas at det.uvigo.es
Tue Apr 18 11:04:05 CEST 2006
Hi all:
I finished my code for the Ethernut 3 and I want to burn it in the
Flash, but I'm unable to do so. I used (under Linux) this to create the
.bin file:
* arm-elf-gcc puerta.o rfid.o ezlcd.o discoflash.o lectura.o red.o
urom.o perifericos.o -mcpu=arm7tdmi -nostartfiles
-T/home/scostas/Projects/ethernut-4.0.3//arch/arm/ldscripts/at91_ram.ld
-Wl,-Map=puerta.map,--cref,--no-warn-mismatch
-L/home/scostas/Projects/ethernut-4.0.3/nutbld/lib
/home/scostas/Projects/ethernut-4.0.3/nutbld/lib/nutinit.o -lnutpro
-lnutfs -lnutarch -lnutnet -lnutos -lnutdev -lnutcrt -o puerta.elf
arm-elf-objcopy -O binary puerta.elf puerta.bin*
and to burn it to the Flash I used the command line:
*jtagomat -v -DDEVICE=0x1F0F0F0F -DIMAGE=./puerta.bin BATCH
at91-upl.jom FLASH*
but after finished, the system doesn't boot.
Can be the problem in the fact that I'm using JTAG-O-MAT 1.2.5 with
Turtelizer 1.2.3? If is it, how can I update my Turtelizer? (I don't
have the TURTELIZER.BIN file, only JTAGOMAT_TURTELIZER.BIN. Is the right
file?)
Thanks.
The output of JTAG-O-MAT is this:
JTAG-O-MAT 1.2.5
Turtelizer at /dev/ttyS0
Turtelizer 1.2.3
at91-upl.jom(25): RESET
at91-upl.jom(26): BATCH at91-remap.jom
at91-remap.jom(1): ; Remap
at91-remap.jom(2): ; =====
at91-remap.jom(3):
at91-remap.jom(4): ; Enter debug mode and check device
at91-remap.jom(5): HALT
at91-remap.jom(6): DEVICE $DEVICE
Target ID = 1F0F0F0F
at91-remap.jom(7): ONERR BadDevice
at91-remap.jom(8):
at91-remap.jom(9): ; Do remap
at91-remap.jom(10): LOAD 0x00000000 ; No idea, but this seems to fix a bug.
at91-remap.jom(11): SAVE 0xFFE00000 0x1000213D
at91-remap.jom(12): SAVE 0xFFE00004 0x20003E3D
at91-remap.jom(13): SAVE 0xFFE00020 0x00000001
at91-remap.jom(14): ONERR RemapFailed
at91-remap.jom(15):
at91-remap.jom(16): ; Verify result
at91-remap.jom(17): LOAD 0xFFE00000 1 0x1000213D
at91-remap.jom(18): LOAD 0xFFE00004 1 0x20003E3D
at91-remap.jom(19): ONERR RemapFailed
at91-remap.jom(20): QUIT
at91-upl.jom(27): ONERR ErrorExit
at91-upl.jom(28): NOTE Reset OK, uploading flasher...
Reset OK, uploading flasher...
at91-upl.jom(29):
at91-upl.jom(30): ; Upload the Flasher Tool
at91-upl.jom(31): SAVE 0x00000000 ./flasher.bin
at91-upl.jom(32): ONERR ErrorExit
at91-upl.jom(33): NOTE Upload OK, starting flasher...
Upload OK, starting flasher...
at91-upl.jom(34):
at91-upl.jom(35): ; Run the Flasher Tool
at91-upl.jom(36): SAVE CPSR 0x000000D3
at91-upl.jom(37): CONTINUE 0
at91-upl.jom(38): WAIT 100
at91-upl.jom(39):
at91-upl.jom(40): FLASH 0x10000000
Flash identifier 0x001F00C8
at91-upl.jom(41): ONERR ErrorExit
at91-upl.jom(42): NOTE Flasher running and flashing $IMAGE
Flasher running and flashing ./puerta.bin
at91-upl.jom(43): FLASH 0x10000000 0x10000000
at91-upl.jom(44): ONERR ErrorExit
at91-upl.jom(45): FLASH 0x10000000 0x10002000
at91-upl.jom(46): ONERR ErrorExit
at91-upl.jom(47): FLASH 0x10000000 0x10000000 $IMAGE
More information about the En-Nut-Discussion
mailing list