STM8-Emulator icon indicating copy to clipboard operation
STM8-Emulator copied to clipboard

which compiler do you use?

Open JiaDuo opened this issue 3 years ago • 2 comments

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。。

JiaDuo avatar Jul 05 '21 13:07 JiaDuo

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!

mikechambers84 avatar Jul 05 '21 14:07 mikechambers84

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.

JiaDuo avatar Jul 06 '21 07:07 JiaDuo