I've been trying to program a 328p with Bill Westfields (current) optiloader, and I've run into an odd problem. If I comment out the loop() code as follows:
if (!target_identify()) /* Figure out what kind of CPU */ break; #if 0 if (!target_findimage()) /* look for an image */ break; if (!target_progfuses()) /* get fuses ready to program */ break; if (!target_program()) /* Program the image */ break; (void) target_normfuses(); /* reset fuses to normal mode */ #endif
then it loads and runs fine; obviously it doesn't do anything, but it signs on and says politely that there's no there there.
However, if the code commented out is left in place the program compiles and downloads successfully but hangs, with absolutely no sign-on or serial output whatsoever.
Anyone any ideas? Will