- Thu Mar 02, 2006 5:47 pm
#10608
Finally got it working. It looks like some compiler optimizations were doing something funny with the end result .hex file. I removed all optimizations (the hex file jumped in size from 700 bytes to 10K), and it seems to work fine now...
One thing I noticed when programming the uC, is that if pin 21 is connected to anything, the programmer will fail (device not detected, or somesuch). Any ideas as to why this might be? Whenever I wanted to re-program, I would have to disconnect my LEDs from VCC in order for the programmer to detect the uC...
Next Steps:
- Bootloader (prolly the STK500-emulating one)
- Terminal experiments using on board UART with my cp2103 breakout.
- ...
- PROFIT!
One thing I noticed when programming the uC, is that if pin 21 is connected to anything, the programmer will fail (device not detected, or somesuch). Any ideas as to why this might be? Whenever I wanted to re-program, I would have to disconnect my LEDs from VCC in order for the programmer to detect the uC...
Next Steps:
- Bootloader (prolly the STK500-emulating one)
- Terminal experiments using on board UART with my cp2103 breakout.
- ...
- PROFIT!