Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1763 SDCC and GPSIM

open
nobody
PIC14
5
2015-02-11
2011-02-20
Egor Ibragimov
No

*.cod compiled with -debug option doesn't work properly in GPSIM, Source window doesn't show executed line and doesn't bind code in source window with simulating process.
to get *.cod thqt will work in GPSIM, project should be built without -debug option.
I don't know, where bug, in SDCC or in GPSIM, but when I searched internet, I found question with this trouble and don't found answers. I think, it would be useful to describe this bug in documentation.

sdcc -v
SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 2.9.0 #5416 (Feb 3 2010) (UNIX)

gpsim - the GNUPIC simulator
version: Release 0.25.0

work:
sdcc -mpic14 -p16f877 -V -I/home/aska/My_Designs/Log_03/Start_design_pic_mt_USB/ -c start_design_pic_mt_USB.c
gpsim -pp16f877 -s start_design_pic_mt_USB.cod start_design_pic_mt_USB.c

doesn't work:
sdcc -mpic14 -p16f877 -V -debug -I/home/aska/My_Designs/Log_03/Start_design_pic_mt_USB/ -c start_design_pic_mt_USB.c
gpsim -pp16f877 -s start_design_pic_mt_USB.cod start_design_pic_mt_USB.c

Discussion

  • Ben Shi
    Ben Shi
    2015-02-11

    • Category: --> PIC14