Program error after controller reset
Ok... we seem to have hit on a rather odd problem.. I can't think of any good reasons for it yet...
When we load our code into the controller, everything works as expected and life is fun... until we reset the bot. Then the programming light turns orange.... it does the same thing with a power-off-power-on type of reset also... I'd say its the controller malfunctioning, but when we reload the default hex file it works like a charm, no problems. So.. we're quite lost on why is happening. We're going to start stripping our code down until we figure out whats going on... but if anyone has any ideas we would appreciate it!
Did NOT change the ifi_x files, started using the code that we downloaded a few days ago from IFI.
DID play around with the linker script... we needed a variable over 256 bytes, and the linker didn't like that... so we adjusted one of the databanks to the size we needed, and eliminated one of them.. then adjusted everything else around it. However, when we put back the normal linker file, and deleted the huge variable... it still didn't work.
We are currently using:
Timer1, EEPROM stuff (using about 3/4th of the EEPROM memory available), and most of the default code is still in place. However, we do have 7 additional source files that are compiled and linked in. according to the MAP file generated, we are using about 40% of the space.
The C18 compiler that ships with the controller (v2.20 i think) that we got from IFI over the summer or in the fall I believe... However, we're using MPLAB 7.00, and it is using the new linker that came with MPLAB instead of the old linker.
So... any ideas? I'm lost here...