[SOLVED]Atmel Studio 7.0 + SAMV71XplainedUltra - Can't program device

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

Hello out there!

 

I recently started working with the ATSamv71Q21 on the eval. board SAMV71XplainedUltra and encountered a big problem.

 

I have the WinUSB drivers installed (reading the preprogrammed example via Data Visualizer succeeded).

But when I try to upload code to the board (or even reading the device signature in Tools->Device programming) i receive:

 

No device detected. Error 4109

Unable to enter programming mode. Verify device selection, interface settings, target power, security bit, and connections to the target device.

 

Timestamp:    2017-06-06 16:05:12.415
Severity:        ERROR
ComponentId:    20100
StatusCode:    1
ModuleName:    TCF (TCF command: Device:startSession failed.)

No device detected. Error 4109

 

I already tried the Chiperase workaround (Jumper on J200 - Resethold - powerdown - Jumper off - powerup - Resetrelease) but this just erased the flash and I still get the same error message.

Can anybody help me out with this issue?

 

Greetings

HaD89 (I'm still a very beginner in this environment)

 

SOLUTION:

Reinstall AS 7.0 and AtmelUSBdriver

Set GPNVMBITS.BOOT_MODE

Last Edited: Thu. Jun 8, 2017 - 06:44 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I din't have the board with me, so i can't tell you exactly what i did, but there is a fuse-bit called "boot mode"-something. This one got erased on my board somehow. When i set it again it worked fine again.

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

Hi Grottenolm!

 

Thx for your reply. I couldn't set the fuse bits since the board couldn't be spoken to at all by Atmel Studio.

I was working around, coming to the point where i restored a Windows state without atmel studio, reinstalled it and installed the AtmelUSB-Pack again. The board is now able to communicate but i have the next issue.

As stated in my original post I did a flasherase and I am now trying to get the Demo-Code running again. I did load the ASF example from Atmel Studio 7.0, followed the instructions from the "Getting started with SAM 70 [...]". (http://www.atmel.com/Images/Atme...)

By following chapter 6.2 I can get to the point, where the code should be uploaded via Debug -> Start Debugging and Break after building the solution. AS then shows "Preparing...Writing...Running" but with an unexpected behavior.

 

It says "Running" (Getting Started stated i should be able to go on "Debug -> Continue" after my last step - it's grayed out since it is already running) and the Power- and Status-LED on the board are permanently high. I got PuTTy running in the background and there is no output in the whole process. So I assume the board is "stuck" somewhere.

 

Just for understanding: When the code is uploaded, shouldn't the board blink with its LEDs while AS says it's "Running"?

 

EDIT - SOLVED:

 

Thx again Grottenolm. I just rechecked if the Boot mode Bit is set (i did set it yesterday directly after the reinstall) and it wasn't.

Setting it again solved it!

 

For other ppl with a similar issue:

-Tools -> Device Programming

-Tool EDBG ; Device ATSAMV71Q21 ; Interface SWD --- Apply

-GPNVM Bits: Check  GPNVMBITS.BOOT_MODE

-Hit Program Button

 

 

Greetings 

HaD89

 

Last Edited: Thu. Jun 8, 2017 - 06:42 AM