Arguments: -C C:\Arduino\etc\avrdude.conf -v -v -p atmega328p -c arduino -P\\.\COM9 -b 115200 -D -U flash:w:"$(ProjectDir)Debug\$(ItemFileName).hex":i
This 115200 is the speed that you computer will upload your code to your microcontroller.That speed should be "hard coded" inside of the bootloader, so if you change it when you want upload the program your micro still be waiting to receive the program @ 115200 bps.So you design you code to set the speed of UART to 38400, add your logic to your code and upload it with those 115200.After it upload, your code will start running and you UART will be running at 38400 like you have set in your code.Resuming don't change Under Tool > External Tools the baudrate.Keep it as is. This is just the baud at upload speed!
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16