I am using a standalone atmega328p circuit at place of arduino. I am using FT232 USB TO TTL serial adapter tto program that. Now I have more atmega328p chips and i want to burn bootloader on them. Actually my arduino uno is not working. So, is there any way to burn bootloader by using standalone atmega and ftdi? Or i have to buy a new arduino. My arduino uno is working correctly but the problem is that its not getting programmed.
If the standalone atmega328p is working, you can upload ArduinoAsISP to it and use it to bootload other chips just like it was an Uno.
I tried that... But it didn't work.
Rishabh8721:
My arduino uno is working correctly but the problem is that its not getting programmed.
What error messages do you get when trying to upload a new sketch into your UNO?
Have you got the correct board type (UNO) and comm port selected in the IDE?
What do you get when you perform a loop back test on your UNO?
Rishabh8721:
I am using a standalone atmega328p circuit at place of arduino. I am using FT232 USB TO TTL serial adapter tto program that. Now I have more atmega328p chips and i want to burn bootloader on them. Actually my arduino uno is not working. So, is there any way to burn bootloader by using standalone atmega and ftdi? Or i have to buy a new arduino. My arduino uno is working correctly but the problem is that its not getting programmed.
If you are using Windows for Arduino IDE, do a loopback test (connect RX TX with a jumper and use a terminal program like the serial monitor) to check if the FTDI adapter is still working.
FTDI drivers are bricking fake FTDI IC's again, now by inserting repeated a string in the serial communication about 'Fake IC' .
HansjcOtten:
FTDI drivers are bricking fake FTDI IC's again, now by inserting repeated a string in the serial communication about 'Fake IC' .
Don't get me started on that one again. I understand there desire to stamp out clone chips but punishing the end user who may not know they are using a clone is not very good IMO. At least they don't brick the clone FTDI chip now.
Riva:
Don't get me started on that one again. I understand there desire to stamp out clone chips but punishing the end user who may not know they are using a clone is not very good IMO. At least they don't brick the clone FTDI chip now.
Of course, use a better OS and you do not have that problem. ![]()
Yes serial monitor via ftdi is working well i.e. I checked by sending data from android to bluetooth module, it worked.
Actually when i connect my arduino , the computer doesn't recognize it (com port not shown). I tried all solutions and also tried it on different computers too, so it think its data pins are not working... Just got the power. Arduino is working as expected if i put the programmed chip into it and power it normally, it works fine.
"so it think its data pins are not working... Just got the power."
Maybe you have a power cable only then?
Once you get the USB port working, try Nick Gammon's bootloader installer sketch.
or
Rishabh8721:
Actually when i connect my arduino , the computer doesn't recognize it (com port not shown). I tried all solutions and also tried it on different computers too, so it think its data pins are not working... Just got the power. Arduino is working as expected if i put the programmed chip into it and power it normally, it works fine.
Maybe you can use your FTDI cable to upload the ArduinoISP sketch to the original MCU from your UNO that has a bootloader installed by connecting it to pins 0 & 1 etc. And then use it to install a bootloader on the new MCU's plugged into a breadboard.
Rishabh8721:
I tried that... But it didn't work.
It should work. Report the errors.
Does the boot loader even have to be on the chip to upload a sketch from the Arduino IDE using FTDI?
What a peculiar question!
What alternative means of programming had you in mind?
technically chips w/o bootloader can be flashed with ftdi but it involves isp programming using ftdi as parallel io instead of serial and is a complicated procedure. its one of the few things real ftdi can do that other usb/serial chips cant. however there are so many drawbacks to ftdi imo still better to stick with user friendly cp2102 or super cheap ch340.
Riva:
At least they don't brick the clone FTDI chip now.
since there are no other practical (aka non-linux) driver alternatives the end result is exactly the same. just another of the many reasons to avoid.
john1993:
its one of the few things real ftdi can do that other usb/serial chips cant.
And why would that be the case?
ftdi are programmable for parallel io whereas others are not. maybe one of the reasons they cost 10x more.
i recall doing this a few years ago as an experiment but the procedure was so nasty i have repressed the details. and now of course i dont think there are any ftdi chips left in the building.
My understanding is that the SPI programming interface consists of three outputs and one input. Do not all USB-serial chips have these (DCD, DTR, RTS, CTS) and can be bit-banged to do exactly the same as bit-banging the FT232 in "parallel" mode?
no. first of all 2in+2out |= the needed 1in+3out even for the tiny minority of adapters that have full handshake. secondly timing peculiarities of handshake signals over pc usb are a major fail. i can say from experience that ponyprog which is one if the few utilities capable can take up to 4 hours to download 1k flash.
ftdi parallel io has nothing to do with handshake and is designed to interact with reasonable latency using proper os drivers. however it is not an easy task getting that to work in the first place.
Procedure to use FT232 to bootload a '328P.
I used this for a few chips. Took a while to get the PC side set up, and it takes a while to run.
http://www.geocities.jp/arduino_diecimila/bootloader/index_en.html
Eventually I got a dedicated tool instead that runs a lot quicker.
[edit - fixed link]
hey, bob. is this bad link day? lol
at least nobody can accuse you of stooping so low to buy off alibaba. of course that is where hk gets them and only 300% markup. but this is what i consider worlds best programmer (so far). op would have been well served to order one at the start and problems solved by now.
and yes ftdi "bitbang" method is what i was referring to. kinda a pain but does work. too bad the other type of usb/serial dont have that feature.