pgms ok but isn't stepping right (ICD3)? [solved] - Printable Version +- ds30 Loader free edition forums (https://picbootloader.com/forum) +-- Forum: Support (https://picbootloader.com/forum/forumdisplay.php?fid=3) +--- Forum: 8-bit firmwares (https://picbootloader.com/forum/forumdisplay.php?fid=7) +--- Thread: pgms ok but isn't stepping right (ICD3)? [solved] (/showthread.php?tid=514) |
pgms ok but isn't stepping right (ICD3)? [solved] - dj41354 - 2012-08-30 I'm at a little bit of a loss here.. I'm Using a 18F4520 4Mhz external clock. The configuration & MPLAB build seems fine, and I can program the bootload code with the ICD3. But when I use the ICD3 to single step it's not executing correctly: 1) it does the 1st instruction (goto blstart) ok 2) the next instruction (clrf doerase) causes the execution to go to Mainloop I must have something set up wrong on the ICD3? but I have another application I use with the same target hardware that runs and single steps fine. Thanks in advance for any ideas on this RE: pgms ok but isn't stepping right (ICD3)? - Mikael Gustavsson - 2012-08-30 I have read somewhere that the first instruction must be a NOP when debugging. The solution would be to debug the application without the boot loader. RE: pgms ok but isn't stepping right (ICD3)? - dj41354 - 2012-08-30 (2012-08-30, 22:47:12)Mikael Gustavsson Wrote: I have read somewhere that the first instruction must be a NOP when debugging. hmm.. it's the bootloader that I'm trying to debug.. When I pgm it for "release".. and run it stand alone, it doesn't connect. Seems like I should be able to step through the bootloader code & see if it kinda looks right... Thanks for the reply.. I'm still working on this.. RE: pgms ok but isn't stepping right (ICD3)? - Mikael Gustavsson - 2012-09-01 Regarding no connection you have most likely got a problem/mismatch with the oscillator and/or i/o configuration. What does the settings file look like? |