Close now. assemble with:
create a file, memory.x with:
Code: Select all
MEMORY
{
page0(rwx) : ORIGIN = 0x0000, LENGTH = 0x03FF
text(rwx) : ORIGIN = 0x0000, LENGTH = 0x10000
data(rwx) : ORIGIN = 0x0000, LENGTH = 0x10000
bss(rwx) : ORIGIN = 0x0000, LENGTH = 0x10000
eeprom(r) : ORIGIN = 0x0E00, LENGTH = 0x1FF
}
The linker seems to crash when creating binary files, but creating srec works around it so:
Code: Select all
m6811-elf-ld a.out -m m68hc11elfb --oformat srec -o bstk.srec
m6811-elf-objcopy -I srec bstk.srec -O binary bstk.bin
This gives a pretty correct looking lower half binfile.. so thats it for this part of the project... hopefully some doors are now open, and i'll crawl back in to my cave and keep delco hacking
BSTKlow.bin is the lower original half of the file, bstk.bin was created from the above
Code: Select all
[ant@media vs]$ md5sum bstk.bin BSTKlow.bin
2e39bffede15f1a4db2f5b1f3956e3eb bstk.bin
2e39bffede15f1a4db2f5b1f3956e3eb BSTKlow.bin