Topic : omf2elf keeps failing randomly

Forum : ST7/STM8

Original Post
Post Information Post
October 25, 2012 - 2:44pm
Guest

Hi,

I keep encountering the omf2elf failing issue randomly.
I couldn't corner the cause of the failure!
What I noticed however is that omf2elf fails usually while I am working with pragmas.

The command: "omf2elf Release\stm8.aof -t0x8000,4 -e0x4000,0x280" has failed, the returned value is: -1073741819
exit code=-1073741819.
I am using STVD with RKit-STM8 (version number is RKit-STM8_2.44.12.0199)

Any help?

Thank you,
Pradeep

Replies
Post Information Post
+1
0
-1
October 25, 2012 - 5:24pm
Raisonance Support Team

Hi Pradeep,

It looks like OMF2ELF is crashing!
Can you just send the stm8.aof to so I can check it?

Regards,

Stéphane

+1
0
-1
October 26, 2012 - 9:14am
Guest

Hi Stéphane,

I have already sent the aof files to you yesterday.
I have sent you two aofs, one failing and one passing.

Regards,
Pradeep

+1
0
-1
October 26, 2012 - 12:01pm
Raisonance Support Team

Hi Pradeep,

I get your .AOF file and I found the trouble. It comes from the linker that improperly set the CRC record size and when this one is the higher in the memory map, OMF2ELF code buffer size isn't correct. It leads to a buffer overrun that I some cases may crash the program.

I'm currently fixing the linker.

Regards,

Stéphane

+1
0
-1
October 26, 2012 - 12:39pm
Guest

Thanks for informing Stéphane.
I will wait for your update.

Regards,
Pradeep