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

Help with Memory.X

Expand Messages
  • Stephan
    Hi all! I ve been beating on 8051 and msp430s for years, and have used industrial IDE packages for these. I m a newbie 68hc11 programmer, using the GCC
    Message 1 of 1 , Jan 14, 2010
    • 0 Attachment
      Hi all!
      I've been beating on 8051 and msp430s for years, and have used industrial IDE packages for these. I'm a newbie 68hc11 programmer, using the GCC toolchain as supplied by the feaser eclipse package.
      <link> http://www.feaser.com/store/eclipse_m6811.php

      I've been having a bit of a problem with linking.
      I am trying to build a .s19 file to burn into a mc68hc711e9
      the memory map for this uC is:

      0x0000 to 0x01ff 512 bytes system RAM
      0x1000 to 0x103f 64 bytes register block
      0xb600 to 0xb7ff 512 bytes eeprom
      0xd000 to 0xffff 12K bytes ROM/EPROM
      0xffc0 to 0xffff normal modes interrupt vectors.

      my memory.x file:

      OUTPUT_FORMAT("elf32-m68hc11", "elf32-m68hc11", "elf32-m68hc11")
      OUTPUT_ARCH(m68hc11)
      ENTRY(_start)

      MEMORY
      {
      page0 (rwx) : org = 0x0000, l = 0x01ff
      data (rw) : org = 0x0000, l = 0x0000
      eeprom (rw) : org = 0xB600, l = 0x01ff
      text (rx) : org = 0xD000, l = 0x2fff
      }

      vectors_addr = 0xFFC0; /* interrupt vectors */
      PROVIDE (_stack = 0x01ff); /* top address of stack */
      PROVIDE (_io_ports = 0x1000); /* Registers at default location */

      the linker results in:
      'Building target: PlugSend02.elf'
      'Invoking: GNU GCC 68HC1x Linker'
      m6811-elf-gcc -o "PlugSend02.elf" ./Source/crt0.o ./Source/main.o -lc -lm -lbcc -m68hc11 -g -Wall -Os -fno-ident -fno-common -fomit-frame-pointer -mshort -fsigned-char -ffunction-sections -nostartfiles -Wl,-u,-mm68hc11elfb -Wl,--gc-sections

      c:\eclipse_m6811\compiler\bin\..\lib\gcc-lib\m6811-elf\3.3.5-m68hc1x-20050515\..\..\..\..\m6811-elf\bin\ld.exe: region data is full (PlugSend02.elf section .data)

      c:\eclipse_m6811\compiler\bin\..\lib\gcc-lib\m6811-elf\3.3.5-m68hc1x-20050515\..\..\..\..\m6811-elf\bin\ld.exe: region data is full (PlugSend02.elf section .bss)

      c:\eclipse_m6811\compiler\bin\..\lib\gcc-lib\m6811-elf\3.3.5-m68hc1x-20050515\..\..\..\..\m6811-elf\bin\ld.exe: section .bss [00000000 -> 00000001] overlaps section .page0 [00000000 -> 0000000f]
      collect2: ld returned 1 exit status

      c:\eclipse_m6811\compiler\bin\..\lib\gcc-lib\m6811-elf\3.3.5-m68hc1x-20050515\..\..\..\..\m6811-elf\bin\ld.exe: region data is full (PlugSend02.elf section .data)

      c:\eclipse_m6811\compiler\bin\..\lib\gcc-lib\m6811-elf\3.3.5-m68hc1x-20050515\..\..\..\..\m6811-elf\bin\ld.exe: region data is full (PlugSend02.elf section .bss)

      c:\eclipse_m6811\compiler\bin\..\lib\gcc-lib\m6811-elf\3.3.5-m68hc1x-20050515\..\..\..\..\m6811-elf\bin\ld.exe: section .bss [00000000 -> 00000001] overlaps section .page0 [00000000 -> 0000000f]
      m6811-elf-make: *** [PlugSend02.elf] Error 1

      I'm not sure what I am doing and what is going on.
      It seems that I get different errors based on what i call data.
    Your message has been successfully submitted and would be delivered to recipients shortly.