Trouble programming atmega328p on OSX mavericks with Sparkfun FDTI basic.

Hey there,

So I have a prototype from my company that has an ATMEGA328P controlling a bunch of of sensors and I am tasked with writing the firmware. In order to make this easier on myself I would like to be able to upload a bootloader on the ATMEGA328P in order to use the Arduino IDE and Arduino libraries. I have attempted to load the chip with a bootloader in the IDE using a Sparkfun FDTI Basic breakout board as a USB-serial programmer, but I keep getting the common error: avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00 avrdude: stk500_recv(): programmer is not responding

I have scoured this forum and internet for similar issues but have yet to find one that exactly matches my own. I have disabled Maverick's new troublesome FDTI drivers and installed the ones found here: http://www.ftdichip.com/Drivers/VCP.htm and I have tried many different settings in the tools > board and tools > programmer to no avail.

One thing I am wondering is: Does my ATMEGA328P have to be wired exactly like all the "arduino on a breadboard" examples for the stand-alone chip to be bootloaded? (my chip DOES have an external 16 MHz clock)

Anyhow, any and all help or suggestions is much appreciated. Thanks in advance.

I’m afraid you’ve got the cart in front of the horse!

The FTDI is used to upload sketches AFTER your breadboard Arduino already has a bootloader on it.

So burn the bootloader first, then when you connect the FTDI to the serial pins the bootloader will accept and store the sketch. To burn the bootloader you need to use an ISP programmer device or another working Arduino which you can program to be an ISP programmer.

Check this out:

https://www.arduino.cc/en/Main/Standalone

edit:corrected tutorial link…

Or Nick Gammon's bootload installer sketch: http://www.gammon.com.au/breadboard or http://www.gammon.com.au/bootloader