I want to design a bare-minimum board based on the Atmega328. I want to be able to use chips without a bootloader since they are cheaper. I want to save space and not have the ICSP connection on my board at all. I do need the FTDI chip for future updates.
So my question is, can I burn a bootloader directly from a USB connection (connected to the FTDI chip connected to the RX and TX pins on the 328)?
szangvil:
I want to design a bare-minimum board based on the Atmega328. I want to be able to use chips without a bootloader since they are cheaper. I want to save space and not have the ISP connection on my board at all. I do need the FTDI chip for future updates.
So my question is, can I burn a bootloader directly from a USB connection (connected to the FTDI chip connected to the RX and TX pins on the 328)?
No you can't. Only a bootloader program already installed onto the chip knows how to program a sketch via the USB serial link. So you have to first burn a bootloader onto the chip or buy a chip that has the bootloader already burned into it.
Often times you can tell by watching an LED on D13, see what kind of link sequence it is doing.
You can design your board to not have an ICSP header, but just make a breakout cable to connect the programmer to the appropriate pins to program it. Make your design to not have D11-12-13 used as inputs (instead be outputs to other devices) to eliminate signal contention.
Or program the parts before mounting them on the board.
szangvil:
Sound more simple to buy the chip with a bootloader already burned in.
But how can I be sure that the chip I buy (from mouser)has a bootloader?
I don't think mouser sells them with a bootloader, but I could be wrong. If a given vendor has that option (bootloader preinstalled) it will clearly state so in the description. The ATMEL folks don't manufacture them with a bootloader so it's only vendors that can add that option.
szangvil:
I want to design a bare-minimum board based on the Atmega328. I want to be able to use chips without a bootloader since they are cheaper. I want to save space and not have the ICSP connection on my board at all. I do need the FTDI chip for future updates.
Are you sure that USB/FTDI is smaller than a six-pin ISP header?