I have a Atemga328p working OK on a DIY board, I can program the bootloader onto the MCU using the ISP and I would like to program it using the Arduino IDE via a USB adapter.
So, I purchased a USB to Serial adapter from ebay but this fails to auto-reset the MCU (using DTR)! after lots of reading I think it is because the USB adapter is a 3.3v device and this has issues when running with my 5v DIY board.
When you say botton solder connector you can select 5v or 3.3v do you mean the header "5v, gnd, tx, rx, dtr, 3.3v'
If you do, arn"t these just outputs?
I have connected the RX TX DTR GND AND 5V to my DIY board, my DIY board is also powered by an external 5v supply. When I check the RX, TX and DTR they are 3.3v. I read that having these at 3.3v causes the issue I have. However there was no explanation for a fix in the post.
Do you mean thee is a way of selecting a logic level for the RX,TX,DTR pins? currently they are 3.3v and I cannot see a solder pad/jumper to change this?
I can see 3.3v and 5v but I thought these are simply outputs.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xb3
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xb3
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xb3
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xb3
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xb3
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xb3
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xb3
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xb3
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xb3
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xb3
Problem uploading to board. See https://support.arduino.cc/hc/en-us/sections/360003198300 for suggestions.
Why did you think that this issue caused by 3.3v logic level of UART adapter?? The logic level has nothing to do with it.
As I see you have a general problem with uploading, not with resetting board. Did you try to press the reset manually at the start of uploading? Is it helps?
check the FTDI + PC combination with Arduino Serial Console: plug in adapter to USB, connect to port in ArduinoIDE, connect Send and Receive of FTDI, and type on your PC: you should get a good loopback test.
Knowing the FTDI is working well, then go back to your prototype as the issue must be in your circuitry.
Hint: if your contracption is oscillating, you should hear the 16MHz harmonics on an old transistor AM radio placed near the uC... just tune from 550KHz up until you hear the "hash." No hash == no oscillation == hardware problem.
When you, apparently successfully, burned a bootloader onto your device, which of the ATmega328P based boards did you select as a target board?
You are aware that if you upload a sketch via a programmer over this ICSP header pins , any existing bootloader is over written ? Maybe reload the bootloader and retry.
On your next board design, it's best to use a standard pinout for the FTDI adapter.