I'm working on a project that is essentially a Nano clone, and I'm having a lot of trouble. First off, I couldn't get 1.6.3 IDE to work with the Leonardo I'm using as an ISCP programmer, so I had to uninstall and revert back to 1.05. Problem 2 is that I'm using the ATmega328 since the P version was either more expensive or out of stock at the time, so I had to modify the avrdude config files to accept the signature of the 328. That's all fine, I can load sketches with the programmer, but there's still two problems I can't figure out.
First off, setting pin 2 to INPUT_PULLUP doesn't work. In fact, even with an external pullup resistor, it always reads low. I can do digital writes to this pin just fine. This is a problem because this is the only input on this board, and I don't have any extra pins available. I might be able to swap out pin 2 for another one, but it needs to be an interrupt.
Second, programming with the onboard USB to Serial doesn't seem to work. The chip never responds, and I think it might be a reset issue. I used the Cypress CY7C65213 chip instead of the FTDI used on the official Nano, but I did connect DTR to reset as per the official schematics. I don't know if there is some sort of difference with how the FTDI chip treats DTR, or what. It looks like DTR pulses low several times in the first few seconds after it's connected, then doesn't do anything else until it's unplugged again. Programming does work once-- right after I burn the bootloader the first time. Serial communication works as expected, so the chip is working fine.
Any advice at all would be greatly appreciated.