mikechambers84 / STM8-Emulator

An STM8 microcontroller emulator and hardware design simulator.
GNU General Public License v3.0
23 stars 2 forks source link

which compiler do you use? #2

Open JiaDuo opened 3 years ago

JiaDuo commented 3 years ago

I use COSMIC free to compile , the elf header is not correct: stm8l15xx4_6.elf: ELF 32-bit MSB executable, FX66, version 1 (IRIX), statically linked, with debug_info, not stripped

‘FX66' is wrong,I check your elf file, show “STM8 8-bit” ,it's correct.

so,I what to known which compiler do you use?

thanks。。

mikechambers84 commented 3 years ago

Hi, I do use COSMIC free. Would you be able to send me the ELF and the project you tried to compile? I'd like to take a look at the issue. Thanks!

JiaDuo commented 3 years ago

stm8_demo.zip

Yes,You can try this. I found that it's caused by cosmic compiler,which in the elf file. the "e_machine" code is error. image I change the "00 42"(FX66) to "00 BA"(STM8) to correct the elf.