Program hangs on BSF

takao21203

Joined Apr 28, 2012
3,702
i had a lot of hassle like that with the PICKIT2, more of that kind it would refuse to connect to the chip, or it wouldnt flash it correctly.

MPLABX as all other Windows programs of course can gain an erroneous state, perticulary this happens after not restarting for days or weeks. Its more frequentt with USB devices- and also more obvious.

Check your BIOS settings, clean the RAM contact rows, remove/insert a few times- dont overclock either. You'll get spurious errors over time, but less of them.
 
I2C is critical on timing.
If you don't pad out your code enough to match the I2C timing then the software can lock up.
Work out from your processor speed and I2C IC what the timings should be.
 
Top