Another "Unable to enter programming mode" post

Go To Last Post
7 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ok, have a newly designed board that I'm trying to bring up.

Very simple circuit with an ATSAMS70J21 chip, 3.3V regulator, 12MHz xtal, UART/USART and SPI IF's.

Using the SWD to an Atmel SAM-ICE probe and Atmel Studio 7. SWD connects to PB6 (SWDIO), PB7 (SWCLK), NRST, 3.3V, and GND.

Can read target voltage fine but not ID. Get the error pop-up:

 

Timestamp:    2019-06-18 11:04:46.848
Severity:        ERROR
ComponentId:    20100
StatusCode:    15
ModuleName:    TCF (TCF command: Device:startSession failed.)

Reading ARM chip id failed.
 

JTAGSEL pin is left unconnected.

 

Thanks for any help.

Alex Specker

Vector Magnetics

Ithaca, NY

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Couple things.. Post your schematic if possible.. At the very least, show us your uC with power supply circuits..

 

  • Ensure you have all of the recommended decoupling on your VDDIO pins. Probably the most important one is to ensure you have the recommended decoupling caps on your VDDCORE pin
  • If you are connecting your Atmel ICE directly to the board, make sure you use the provided "Squid cable" (it has a 10pin JTAG connector and a 6pin ISP connector).. Atmel Engineers somehow managed to release the Atmel ICE with the JTAG header being mirrored.. To fix the mistake they ship them with a special cable which fixes the incorrect pinout:  https://www.bigmessowires.com/2018/06/13/atmel-ice-wiring-horror/ ​​​​​​​

murph

Debugging - Being a detective in a crime movie where you are also the murderer.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks Murph,

I believe I do have the correct decoupling on those lines. VDD is 3.3V and VCCCOR is ~1.24V.

I'll look into the "squid cable"; we use a cable we made in-house that's worked on other projects that us ATSAM processor (D21).

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I removed the .01uF cap on the reset line and added 100k pullups on the SWCLK and SWDIO lines but still nothing.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

And using an Atmel SAM-ICE (blue box) not the Atmel ICE.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ok, figured it out. Turns out I had the VDDPLL line connected to VDD (3.3V) instead of VDDOUT (1.2V).

 

Did a cut and jumper and now can read ID.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Good to hear!

murph

Debugging - Being a detective in a crime movie where you are also the murderer.