Hello to all,
I have just gone through the first part of the Sparkfun tutorials (brilliant) on micro programming and have got the light flashing. Yay!
My problem is this: after I download the hex file (hello.world) to the micro, the lpt1 port locks up. I say this because I see the status of the port pins on a breakout box and they go from a ‘normal’ state of high at pins 1,4,10,11,13,14 (before programming) to all low after the programming. After the first successful download, I cannot download anything else. AVRdude says that “the device is not recognized”.
I have shut down the program, disconnected the cables from the port and power cycled the micro but nothing remedies the problem. The only thing that seems to work is power cycling the computer. Then lpt1 resets to normal state.
Does anyone have any ideas on how to ‘reset’ the lpt1 port without having to reset my computer? Is it a problem with the computer, the program (WinAVR) or the code?
Thanks for your time and help,
Pike.