1
\$\begingroup\$

I am trying to output some debug strings from an ATmega328P to a terminal window on Atmel Studio using the DGI. I would like to use the 6-pin 100-mil connector of my Atmel-ICE Basic Kit, which I currently use to program the uC.

On my scope I see the ASCII character 'S' as expected:

SPI Decode

So the uC is doing the right thing. I think that the problem is chip select pin. It is reported on the DGI SPI pinout but I can't use it because it is not present on the connector.

There is an option on the SPI configuration windows of Atmel Studio to "force the startup synchronization on CS". I tried both ways, but nothing changed.

Am I doing something wrong or is it necessary to connect the debugger with the full 10-pin connector to use the Data Gateway Interface?

ocrdu
9,34123 gold badges33 silver badges43 bronze badges
asked Feb 6, 2021 at 10:13
\$\endgroup\$

1 Answer 1

0
\$\begingroup\$

Finally I made it work. As I suspected the CS was necessary for the DGI to work (as stated on page 23 of the Atmel-ICE user manual!). I found out that this breakout board from Adafruit (SWD 2x5 1.27mm) is very helpful for programming the chip and for displaying data on Data Visualizer. On the breadboard only an additional connection to PB2 is needed using the Atmel-ICE's 10-pin 50-mil connector.

Adafruit breakout board

answered Feb 22, 2024 at 9:58
\$\endgroup\$

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.