Hi I was wondering if someone can tell me - am I doing something wrong - or does an Arduino Uno board supposed to execute the SETUP() function when i close or open the serial port to debug messages?
Every time you open a new serial connection the avr suffer a reset because the bootloader. You could avoid this by disabling the auto-reset.
I didn't even know that existed until now.. Thanks for the quick reply.
the avr suffer a reset because the bootloader.
The bootloader has nothing to do with the reset.
This feature is actually handy to me, its convenient for me to reset the whole thing just by re-opening com port on computer.