Re: Uploading the Software
Posted by
NeilR on
Jul 12, 2017; 4:06am
URL: http://bluesaab-forum.90.s1.nabble.com/Uploading-the-Software-tp235p1121.html
I built the board (v3.2) but I am having a lot of trouble with the software upload described at the beginning of this thread. I struggled for a while to upload the bootloader and finally found this page
this page that showed how to put the ATMEGA328 in a breadboard and upload a bootloader to to that chip from an Arduino Uno. I chose the 16MHz bootloader since the BlueSaab module has a 16MHz resonator. I plugged the ATMEGA328 into an Arduino Uno board and was ableto upload and run a sketch, so that proved the bootloader was OK. Also, an LED on the Uno blinks three times quickly when it is reset, which is an indication there is a working bootloader.
Now, I am struggling to communicate with the ATMEGA328 on the BlueSaab module so that I can program the RN52. The instructions say "plug in the FTDI cable" and "upload the codeto BlueSaab module". I plugged in my FTDI adapter and thepower LED on the BlueSaab module lit. I wasn't really sure how to "upload the code to BlueSaab module", but I guessed that since the 328 is essentially the same as an Arduino Uno, I set my Arduino IDE Board to be an Uno. No luck, it gave me an avrdude error about failing to sync and said it failed to upload. I tried many other boards and different settings but nothing worked.
I eventually put the 328 back into the Uno, uploaded the RN52 sketch, then popped it in to the BlueSaab board. I figured that since the sketch was already loaded, I should be able to connect with a terminal program (minicom) and see the message about being in RN52 programming mode immediately. Still no luck. I saw the earlier post about using the 5V FTDI instead of the 3V3 so I tried that. Ever since then, the power LED no longer lights. :-( I have a multimeter with a diode check function and that seems to show the power LED is OK, so what else can I check to figure out why it no longer lights up?
While doing all of the above, I noticed that the voltage regulator IC3 gets really hot when the board is powered from the 6 pin header. Is that normal?
NC, USA; 1999 9-3 S, AS2; BlueSaab v3.2, software 4.1