开发者

How do I get an hex file generated by SDCC to be simulated in Pic Simulator IDE?

开发者 https://www.devze.com 2023-03-30 09:08 出处:网络
I have been searching workarounds for many days with no luck. PIC Simulator keeps telling me that the checksum of the hex file is wrong.

I have been searching workarounds for many days with no luck. PIC Simulator keeps telling me that the checksum of the hex file is wrong. I already tried changing SDCC‘s hex file output format many times and tried all of them but it is the same error with all of them.

Also, A recommendation for a simulator like PIC Simulator IDE for me to use in GNU/Linux is appreciated, I have tried G开发者_Python百科PSim many times in different distros but could never get a single program to simulate. So I don’t trust it so far... and because it keeps crashing too.


Mario, it is actually easier than your answer, Just use output format ihx32 in the linker and it will work out of the box.


I have found it myself, if SDCC‘s output format is IHX.

objcopy -O ihex input-file output-file

It will be perfectly simulable by PIC Simulator IDE.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号