Problems downloading to PIC
Posted: Mon Aug 03, 2009 2:40 pm
I am returning to PIC programming after a break of several years and struggling to catch up again! I have experienced a strange problem.
In years gone by, I used PPPv3 to download to my old PIC Tutor (which says "PIC TUTOR V2 1" on the back of the PCB, but seems to need to be treated as a Version 1 board). If I resurrect this software, I can happily download some of the sample HEX files and run them. So far, so good.
I have recently purchased PIC BASIC from OshonSoft, as this struck me as a very nice and easy way to get simple applications into the PIC. It comes with an emulator IDE and I can write a PIC BASIC program, compile it to a HEX file and run this quite happily in the emulator. However, if I try to download this HEX file to the real PIC, it fails to work every time. Even a really simple program, resulting in a couple of dozen bytes of code will not load and run. PIC Tutor sample HEX files will run happily in the emulator, however.
Last night, as an experiment, I tried creating a small program with the demo version of Flowcode V4 and - bingo! It downloaded fine!
I have wondered if this might be anything to do with the status words; I have checked the oscillator setting and tried various combinations of the other elements, but as I'm using this with a 16F84A (at the moment) there aren't really many options.
Can anyone please offer any suggestions as to why my HEX files from the PIC BASIC environment won't load, but these others will?
In years gone by, I used PPPv3 to download to my old PIC Tutor (which says "PIC TUTOR V2 1" on the back of the PCB, but seems to need to be treated as a Version 1 board). If I resurrect this software, I can happily download some of the sample HEX files and run them. So far, so good.
I have recently purchased PIC BASIC from OshonSoft, as this struck me as a very nice and easy way to get simple applications into the PIC. It comes with an emulator IDE and I can write a PIC BASIC program, compile it to a HEX file and run this quite happily in the emulator. However, if I try to download this HEX file to the real PIC, it fails to work every time. Even a really simple program, resulting in a couple of dozen bytes of code will not load and run. PIC Tutor sample HEX files will run happily in the emulator, however.
Last night, as an experiment, I tried creating a small program with the demo version of Flowcode V4 and - bingo! It downloaded fine!
I have wondered if this might be anything to do with the status words; I have checked the oscillator setting and tried various combinations of the other elements, but as I'm using this with a 16F84A (at the moment) there aren't really many options.
Can anyone please offer any suggestions as to why my HEX files from the PIC BASIC environment won't load, but these others will?