I'm trying to make my own board with a ATmega328P, and I would like to begin as simple as possible. So now I connected only VCC/GND/AVCC/AREF, and a LED on D13. As far as I understand the ATmega328P has an internal reset pull-up, which is quite weak but still usable. I have compiled the bootloader for 8MHz and 38400 baud, and adjusted boards.txt, and everything is running quite well on my Uno board.
But when I put the chip on my perfboard, the bootloader doesn't run, and it goes staright to the application code, thus I can't upload code (without a programmer). If I manually touch RESET to GND, then the bootloader runs after reset. If I manually hold RESET to GND before powering up, then the bootloader runs as well (after I release RESET). But if I power it up without RESET connected to anything then the bootloader doesn't run.
Could anybody give me some help? Thank you very much.