I am a new to the forum and first time user of both Arduino and Atmel devices. I have done lots with the small PICs in the past so not completely new too embedded world
I need some general help with using the AVR Studio 7 and Arduino. So the story is that I need some RS232 to SD card data loggers. I bought a few of these from sparkfun and very good they are. But they are expensive and I’m a cheap skate and I need 20 of them and cost stacks up.
So I bought some openlogs from China as £2 is better than £15. Anyway they didn’t work and I figured out they have no software installed. I have never used Arduino before downloaded Arduino software and followed online advice to install the OpenLog sketch. Well that didn’t work either as the Arduino IDE wouldn’t talk to the AVR microcontroller. So after more reading I figured out I need a boot loader.
First thing I found is the SPI programming header is covered in solder mask and the pads are bloody tiny. Scraped off the solder mask and soldered in some jumper cables.
Next problem is I didn’t have a programmer so I bought the shareware avrIsp II. Following an online tutorial I installed AVR studio 7 and got the OPtiboot HEX file from the Arduino directory on my computer. I found I could read and write to the Arduino and download load optiboot hex but still could not get it to talk to the Arduino IDE - no flashing blue light on the OpenLog.
I then found out that the boot loader could be down loaded from the Arduino IDE. Unfortunately this didn’t work because there’s a conflict between the AVRIsp driver installed with AVR Studio and the Arduino IDE. Apparently a known problem- well it wasn’t known by me LOL.
I found I could download the boot loader using my bus pirate via the Arduino IDE. I get a little blue light flashing on my open log about every half second, I assume that’s a good sign. I can now connect using the Arduino serial cable and download sketches. So I must be on the home run.
So here my questions
I assume when I downloaded the bootloader using the bus pirate and the Arduino IDE it must have correctly set all the memory configuration OSC settings and fuse bits and lock bits etc?
Given that I was unable to do this using AVR studio originaly can I use AVR studio now to read back all the successful configuration and make a note of the configuration settings. I have tried this but I’m not convinced the read function in AVR Studio is actually reading the configuration correctly, I think it’s just showing what I setup originally and not what’s on the working mega chip now.
I uploaded the memory using the AVR Studio 7 from the working Mega 328P and compared this to the OPtiboot hex file I extracted from the Arduino directory and they are totally different. So my question is when you down load the boot loader using the Arduino IDE which boot loader does it actually install. Is it the OPtiboot or Something else.
Finally this has been a total pain in the arse apart prom paying £15 for a genuine OpenLog from sparkfun is there a easier way of downloading the open log sketch. Can I just get a combined hex file that has the OpenLog and bootloader compiled as a single hex file I can install using the AVR Studio.
Finally I have a bit of experience using PIC microcontrollers but never used Atmel or Arduino so I’m a bit confused etc.
I can provide more information if required.
Many thanks https