I want to create software-auto-reset function for Arduino Pro Mini. I do this because l want to upload the sketch via bluetooth without DTR signal. But there is a some problems in basic bootloader.
1)If you make a reset by watchdog, the processor is stuck somewhere in bootloader and main application never start. 2)Time window during which bootloader wait for connection is too short. Is difficult to hit right timing.
That's why I want recompile the bootloader. I use source code "atmel / ATmega BOOT_168.c". I made changes only on two lines. But new hex file is twice as large as the original. I used the same avr-gcc as in Arduino IDE directory. My OS is Ubuntu.
Why is new bootloader so big?