I have extensively modified the Package Tracker 2.0 firmware for my application running on the Package Tracker board with the stock hardware and attached gps. Sometimes it boots and runs fine, but then I’ll modify some code and, after placing FW.SFE on the sd card and resetting, the application begins to execute, but then begins repeatedly rebooting, going through the USB Bootloader again and again and sometimes, though not always, not deleting FW.SFE after saying it has loaded it.
I’m using Programmer’s Notepad and the associated tools, as discussed in the Bootloader tutorial. Turning off optimizations helped for a while, as has changing the stack sizes, and both these make think I’ve got some sort of memory issue. The code and data segments fit into the flash and ram with no problem, and I’ve moved the data around in the RAM in case I was having a problem with some bootloader variables that needed to hang around, but it’s in this reboot mode now and I’m stymied as to how to proceed.
Has anyone seen this problem, and, if so, any idea what is the root cause and how to resolve it?
New information: I downloaded Flash Magic and have been using it to load my firmware into the flash, and it works successfully every time. It appears to me that there is some conflict between the bootloader and my firmware, which is larger than the standard Package Tracker firmware. Any ideas about where such a conflict might lie?