IWPengineering / IWP_Firmware_2.0_Beta

Rewrite of IWP Firmware for PIC24F32KA302 (3.3V version of previous micro)
0 stars 1 forks source link

Debugging halts and throws PC @ 0x0 error #7

Closed Ken-Kok closed 8 years ago

Ken-Kok commented 8 years ago

This error only occurs when debugging with the PICKit3, not in simulator. It also might only happen after using the simulator on the project.

When step debugging through a program, everything is fine. However, when run at speed (possibly because this is when we enter ISR's), the program halts very quickly and throws an error claiming that there is no valid instruction at the program counter (location 0x0).

I will work on debugging this error tonight.

Ken-Kok commented 8 years ago

This was resolved by adding an ISR for _AddressError, which appears to be the problem