Loading ...
Sorry, an error occurred while loading the content.
 

please help me I've fused my mind!

Expand Messages
  • Dragon
    Hy my problem is that after I compile and link my program, and Stephane examples, for m68hc12 with right options ,I hope, when i start m68hc12-elf-run it
    Message 1 of 1 , Jul 1, 2002
      Hy my problem is that after I compile and link my program, and Stephane examples, for m68hc12 with right options ,I hope, when i start m68hc12-elf-run it display this message
      "    C:\usr\hello>m6811-elf-run --architecture m68hc12 prova.elf
          EEprom write error (only 1 byte can be programmed)
          program stopped with signal 10.    "

      With gdb :
      "    C:\usr\hello>m6811-elf-gdb prova.elf
      GNU gdb 5.0
      Copyright 2000 Free Software Foundation, Inc.
      GDB is free software, covered by the GNU General Public License, and you are
      welcome to change it and/or distribute copies of it under certain conditions
      Type "show copying" to see the conditions.
      There is absolutely no warranty for GDB.  Type "show warranty" for details.
      This GDB was configured as "--host=i386-mingw32 --target=m6811-elf"...
      (gdb) set architecture m68hc12
      (gdb) target sim
      Connected to the simulator.
      (gdb) load prova.elf
      Loading section .text, size 0x77d lma 0x8000
      Loading section .rodata, size 0x50 lma 0x877d
      Loading section .data, size 0x211 lma 0x87cd
      Start address 0x8000
      Transfer rate: 20208 bits in <1 sec.
      (gdb) run
      Starting program: C:\usr\hello/prova.elf
      EEprom write error (only 1 byte can be programmed)
       
      Program received signal ?, Unknown signal.
      0x8003 in _start ()
      (gdb)        "
       
      I've used this commands for gcc:
      "    @echo off
      path c:\usr\bin
      m6811-elf-gcc  -m68hc12  -mshort -Wall -g -Os -DAXIOM_CMD12 -I. -I.\..\include -c simple.c -o simple.o
      m6811-elf-gcc -v -m68hc12 -Wl,-m,m68hc12elf,-lc,-lbcc,-lm,-L.\..\config\m68hc12-axcmd12  -o simple.elf simple.o .\..\lib\libutil.a
      m6811-elf-objcopy --output-target=srec  simple.elf simple.s19
      m6811-elf-objcopy --output-target=binary simple.elf simple.b
      m6811-elf-gcc -m68hc12  -mshort -Wall -g -Os -DAXIOM_CMD12 -I. -I.\..\include -S simple.c -o simple.s
       
      m6811-elf-objdump -xdC simple.elf
      >simple.dump     "
       
      I must use a simulator and debugger because my board's Flash has built in Dbug12 so i can't write in now.
       
      THANKS!!!

    Your message has been successfully submitted and would be delivered to recipients shortly.