LarryD:
I've always tied it LOW on a FTDI cable.
I'll try to compare your board to the schematic.
you had me going there for a second
tied CTS low, but no change
I also tried a couple of "proper" FTDI boards with CTS open - they work fine
I guess it defaults low, and you have to drive it high
I also wired up just the FTDI part and it talks nicely to other boards, so I think FTDI is in the clear (for now)
but thanks for looking
LarryD:
What are you measuring for the supply voltage on the Mega?
a gnat's over 3.3 volts - just as I expected
Caltoa:
A shortcut on the pcb ?
nice try, but no
I buzzed it through every connection
clean as a whistle
Graynomad:
I've looked at everything and I can't see a problem. What about fuse settings, have you selected the external clock for example?
Have you looked to see if the oscillator is oscillating?
Rob
Rob,
I put a scope on the oscillator and its ackling nicely
also I can install optiBoot, and pin 13 flashes 3 times as it should
so I'm guessing fuses and clock are ok
could be a faulty mega, but I can't believe I have 4 like that!
As I understand the problem, the only evidence presented so far for chip/board failure is the failure to communicate with it via the FTDI chip and UART, which assumes that the UART baud rate is correct. In turn, baud rate calculations assume a CPU clock rate. What have you done to verify that the CPU clock rate is exactly (or close enough to) what you are assuming it is?
A quick and dirty test of the CPU clock rate would be to use the ICSP to burn a blink program, blinking the LED at exactly 1 Hz.
ok, I re-read all the suggestions...... and found the fault
some idiot (cough) installed the bootloader for an ATmega328 (28 pin DIP) instead of 328p (32 pin SMD)
I have fired the individual in question, installed the correct bootloader (thanks again to Saint Nick Gammon)
and I have 4 out of five boards working AOK
the 5th board, the FTDI side is fine, but I can't even read the fuse bits
so looks like I may have set the "don't allow programming by SPI" bit
without a high voltage programmer - that one will have to stay in the isolation ward for a bit
so thanks to all for
a) listening
b) offering advice
c) leading me (kicking and screaming) to a result
mmcp42:
so looks like I may have set the "don't allow programming by SPI" bit
It is possible you are not getting a reasonable clock signal from the resonator (e.g. soldering problem). Try injecting a signal on XTAL1 (be sure to use a series resistor; ~1K is probably a good choice).
ATmega328 (28 pin DIP) instead of 328p (32 pin SMD)
Don't see why that would matter - the die is the same no matter what.
If the wrong board type was selected, Uno vs Nano, you'd just lose the A6/A7 funtionality. I don't think the bootloader is involved in that, is it?
ATmega328 (28 pin DIP) instead of 328p (32 pin SMD)
Don't see why that would matter - the die is the same no matter what.
If the wrong board type was selected, Uno vs Nano, you'd just lose the A6/A7 funtionality. I don't think the bootloader is involved in that, is it?
I'm guessing the pin vs. chip numbers are different
but it seemed to make a difference
and it's working now so I'm happy
actually more in-depth answer, the programming also changed the clock divide from 8 to 1, so maybe that was the real fix