Forum > Other OS
help needed - m68k embedded based on 3.2.2
parc_de:
Is there any help text available how to start on this platform ? I installed the newest 3.2.2 compiler (precompiled), I installed the m68k cross compler (precompiled) - all stuff under ubuntu 18.04.
I would need a step-by-step guide how to build a simple binary for an embedded m68k target ... so I could at least find out the next steps.
The target would be - later - an own developed mc68k system.
Thanks
parc_de:
Ok - I might be totally wrong - but as long as I understand:
- you have to create an own system.pas (which I have done now)
- you have to create a prt0.s file (your startup code - whch I have done now)
- you must use the default linker from gnu (no vasm or vlink)
- you have to define the target as embedded
so, I get the output. I can link all stuff ... but now the big question. I get an elf output, but I need a hex output to program a ROM ...
So, my question is now: m68k platform, embedded ... how can I get a hex output file ?
Marten
AlexTP:
Did you try FPCupdeluxe?
On its "Cross" tab you can check:
CPU: m68k
OS: embedded
FPK:
--- Quote from: parc_de on February 19, 2022, 07:00:27 pm ---
So, my question is now: m68k platform, embedded ... how can I get a hex output file ?
--- End quote ---
Run objcopy with -O ihex ...
parc_de:
--- Quote from: FPK on February 19, 2022, 09:33:07 pm ---
--- Quote from: parc_de on February 19, 2022, 07:00:27 pm ---
So, my question is now: m68k platform, embedded ... how can I get a hex output file ?
--- End quote ---
Run objcopy with -O ihex ...
--- End quote ---
Yes, actually I found this some minutes ago, but it it says for this command:
m68k-none-elf/bin/objcopy -O ihex test.elf test.hex
the following:
/home/mf/fpc-3.2.2/m68k-none-elf/bin/objcopy: error: the input file 'test.elf' has no sections
Hmm ?
Navigation
[0] Message Index
[#] Next page