I have made a custom PCB for the AVR128DA32, and have gotten a number of things working just fine - including drive for WS2812B LEDs and USART communication through Tera Term.
Sadly, there are some things that are not working . . .
1. Unable to read PORTD.0 as an input. I have three switches on PORTD2-0, and the port direction bits are correct. Bits 2 & 1 work fine, but bit 0 doesn't read. I have measured proper switch voltages right up to the MCU pin. If I configure bit 0 as an output, it produces the proper voltages. I am at a loss to figure out why bit 0 isn't reading
2. Unable to get external 32.768kHz oscillator working. I see correct values in the CLKCTRL_XOSC32KCTRLA register. The TOSC1 & TOSC2 pins have proper continuity to the crystal and load caps. I calculated 20pF load capacitance for a 12.5pF crystal. I have tried different crystals and load capacitor values, including swapping in parts from a functioning board.
3. After having made no changes to anything, my JTAGICE3 is refusing to connect to the target, giving a message 'Atmel Studio was unable to start your debug session. Please verify device selection, interface settings, target power and connections to the target device. Look in the details section for more information.' I looked under the details section, and saw nothing useful. I have power cycled the target and the JTAGICE3, and restarted Studio. No joy.
I would like to hear if anyone has suggestions, or was having similar problems. Thanks!