Arduino Zero Pro EDBG unknown serial number

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

Hello,

 

I've bought an Arduino Zero Pro from https://www.coolcomponents.co.uk/the-arduino-zero-pro-32-bit-with-debug-interface.html.

First of all, I've tried the Arduino IDE 1.7 with the programming port, and the Blink uploaded successfully.

After that, i wanted to try the debug. So i've connected the programming port and used the Atmel Studio 6.2. It detected the EDBG and wanted to update the firmware.

The firmware upgrade was successfully and then i tried to debug a blink on AS: didn't work. My first thought was the EDBG firmware was no OK (very big mistake) so i Google it and found the command to manually update the EDBG firmware.

atfd -t edbg -a edbg_fw.zip

It failed.

 

I've asked support to Arduino.org and they point me to the ATSAMD21G18A bootloader and told me to upgrade it. I was unable to do it because the board stop programming.

One day later, i've bought an Atmel-ICE (yes it was more expensive than buying another Zero) and manage to do step by step their recommendations:

1) Start AtmelStudio
2) Plug in the Arduino Zero Pro by means of th programming port to your PC
3) Select "Tools -> Device Programming"
4) Select "EDBG" + "ATSAMD21G18A" + "SWD"
5) Click on "Apply"
6) In the "Memories" field select "Erase Chip" and then click on "Erase now"
7) Move to "Fuses" section
8) Set "NVMCTRL_BOOTPROT" to 0x07
9) Click on "Programming"
10) Move to "Memories" section
11) In "Flash (256KB)" section select the boolader file (bootloader_zero_pro_150226.hex) attached
12) Click on "Program"

Now the board flashes the Leds, the native port gets recognized again but the problem with the EDBG remains: The serial number is not recognized.

 

I found a similar problem with the Atmel Xplained Minis and the have a executable to fix the serial number (http://spaces.atmel.com/gf/project/avr_xp_mini/news/?id=75) but i can't find anything related to EDBG.

I've also asked support to Atmel and they said gently that i must ask support to Arduino.org :)

 

Anyone knows a way to fix this serial number not recognized issue?

 

The images are attached.

Attachment(s): 

Last Edited: Tue. Apr 21, 2015 - 11:31 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

There are at least 2 versions of Arduino Zero. I can't find anything on  coolcomponents.com, can you give a direct link? And the picture of an actual board you have might help as well.

 

 

NOTE: I no longer actively read this forum. Please ask your question on www.eevblog.com/forum if you want my answer.

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

This one: https://www.coolcomponents.co.uk... ?

 

I think this is the only one that you can actually buy now?

 

Anyhow, surely the EDBG is an Atmel chip - is it any different when it's on an Arduino Zero Pro, or an Arduino Zero, or an Xplained Pro, or ... ?

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

awneil wrote:
I think this is the only one that you can actually buy now?

 

https://www.avrfreaks.net/comment...

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

alexru wrote:

There are at least 2 versions of Arduino Zero. I can't find anything on  coolcomponents.com, can you give a direct link? And the picture of an actual board you have might help as well.

 

 

 

I've edited the main post. I got it from https://www.coolcomponents.co.uk/the-arduino-zero-pro-32-bit-with-debug-interface.html

It's the PRO version made by arduino.org and not from arduino.cc...

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

awneil wrote:
Anyhow, surely the EDBG is an Atmel chip - is it any different when it's on an Arduino Zero Pro, or an Arduino Zero, or an Xplained Pro, or ... ?
Ithink it is. At least on the XPro boards the chip itself does not let you disable JTAG fuses that will brick the board, so it knows something about the target part. Also, when you plug in XPro board, AS will not let you select any chip other than the one installed on the board. But that might be an AS feature and no the EDBG itself.

 

As far as original question goes, I can't really help. I'm actually surprised you can buy one of those boards and that IDE is officially out. I only have Atmel-built Arduino Zero and EDBG there works fine by itself, I have not tries Arduino IDE on it, since I have no interest in Arduino stuff.

NOTE: I no longer actively read this forum. Please ask your question on www.eevblog.com/forum if you want my answer.

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

alexru wrote:
But that might be an AS feature and no the EDBG itself.

I think that's an AS feature ... ?

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I removed the label saying limited edition and the EDBG is A06-0736.

I believe it's the same as Arduino Zero...

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

I have a Zero Pro from Cool Components.    The EDBG also says FFFFFFFFFFFFFFFFFFF

 

I entered AS6.

Viewed available Tools.

Right-clicked on EDBG

Selected "Device Programming"

 

It prompted me to upgrade.   So I did.   (it had to install a few extra USB drivers on the way)

 

Then I could read the SAMD21's Signature, Fuses etc

 

I then opened an "Object File for Debugging" and pointed to the Arduino secret location for the ELF.    

I had to browse for the INO file.

 

I added a breakpoint at setup() in the INO.

Then I could start debugging!

 

I will let you know how I get on.    But everything looks as if it should be fairly pleasant.

 

Oh  even after the Upgrade,  the EDBG still says FFFFFFFFFFFFFFF

 

David.

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

the EDBG still says FFFFFFFFFFFFFFF

That's what a lot of users say too...........

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Rubbish.    The introduction of EDBG is the best thing that Atmel has ever done.

 

(probably because every other manufacturer had beaten them to it)

 

David.

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

FFFFFFFFFFFFFFF sounds like "nor programmed" or "not present"

 

On the Xpained-Pro boards, the "Serial Number" is usually in an Atmel ATSHA204 CryptoAuthentication™ chip:

 

SAM L21 XPro User Guide, for example, wrote:
3.3. Hardware Identification System
All (sic) Xplained Pro compatible extension boards have an Atmel ATSHA204 CryptoAuthentication™ chip
mounted. This chip contains information that identifies the extension with its name and some extra data.
When an Xplained Pro extension is connected to an Xplained Pro MCU board the information is read and
sent to Atmel Studio. The Atmel Kits extension, installed with Atmel Studio, will give relevant information,
code examples, and links to relevant documents. Table 3-2 Xplained Pro ID Chip Content on page 10
shows the data fields stored in the ID chip with example content.

 

So I guess this ID chip is not present or not programmed on the Zero Pro - so reads as FFFFFFFFFFFFFFF ?

 

But this is just used by AS to identify XPro boards;  it shouldn't prevent debugging, etc - as David found.

 

(it doesn't seem to be true when they say that "All" XPro boards have this - the R21 XPro doesn't)

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I just connected to the EDBG with Rowley.    It says Serial number:   FFFFFFFFFFFFF

 

Every other CMSIS-DAP connection that I have ever used has a unique Serial number.    If you have multiple CMSIS-DAP devices,   you need to be able to distinguish them.    However,  in practice,   most humans debug one CMSIS at a time !!!

 

David.

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

js wrote:

the EDBG still says FFFFFFFFFFFFFFF

That's what a lot of users say too...........

 

Yes it had FFFFFFFFFFFFFFF until the problem with the firmware upgrade. Now it shows only question marks (?)

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

I have no idea what your ATMEL-ICE has done.    As a general rule,   you want to let the EDBG firmware handle any upgrade.

 

If you 'do it by hand',   you have to ensure that everything is done correctly.   e,g, with a regular Mega,   you would install a bootloader,   set fuses and lockbits.

If you miss any step,   you have serious problems.

 

Obviously,   the EDBG chip was programmed in-circuit at some stage since AFIK it is not a mask-programmed chip.

Whether Atmel would release this information is up to them.

 

With luck,  you have not erased the EDBG bootloader.

 

David.

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

I have not break it with ICE but with the EDBG it self and the command line utility atfw...

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

Also, if the EDBG show on Atmel Studio i could upload the firmware again with my ICE...

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

Have you tried to upgrade following the steps that I listed?

 

I would be very wary of attaching an ATMEL-ICE to the EDBG chip unless specifically instructed to by meolsen.

 

Note that CMSIS-DAP chips from 'other' manufacturers allow you to install firmware without an external debugger.

 

David.

Last Edited: Wed. Apr 22, 2015 - 03:23 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

it gives timout...

 

When you flash the EDBG firmware, the COM port changes to another one... that step is not working!

Then it timeout...

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

Can you do the upgrade with a faster PC ?

I had no problem with my Win7-64 Desktop PC.

 

My Vista-32 laptop struggles to do anything connected to AS6.   e.g. times out,  drops the Dragon, ...

I am glad that I did the upgrade on the Desktop PC.

 

David.

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

So you have actually re-programmed EDBG chip by hand? Then you have probably erased all identifying information, which is applied at the moment of programming and is not present in the firmware. Where did you get the firmware in an unpacked form anyway?

 

NOTE: I no longer actively read this forum. Please ask your question on www.eevblog.com/forum if you want my answer.

Last Edited: Wed. Apr 22, 2015 - 05:18 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The Zero Pro has got a 5x2 JTAG header for the EDBG chip and a 5x2 SWD header for the SAMD21 chip.

 

You upload sketches via the USB port.   i.e. the EDBG chip programs the SAMD21.

 

So it looks as if Moerbius might have connected the ATMEL-ICE to the JTAG header.

 

I presume that the EDBG chip found on the regular Atmel XPRO boards has some method of install / repair of the firmware.

The SAMD21-XPRO has some access points for JTAG signals near the EDBG chip.    Probably for pogo-pins.

 

David.

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

as i told on the first post, i only bought the ICE after i screw the Zero...

is it possible to program the EDBG firmware by hand (cmd). if you look at Atmel Studio folther, you have: C:\Program Files (x86)\Atmel\Atmel Studio 6.2\tools\EDBG wich has the firmware for the EDBG. You can use the atfw program wich is located here: C:\Program Files (x86)\Atmel\Atmel Studio 6.2\atbackend to flash it.

 

probably the USB cable was faulty...

i dunno...

 

i just need to fix the EDBG :)

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

In the state your board is right now, what happens when you go to the device programming dialog in Atmel Studio? Does it recognize the debugger? How it looks in the Windows device manager? Not just the COM port, but other devices as well?

NOTE: I no longer actively read this forum. Please ask your question on www.eevblog.com/forum if you want my answer.

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

This is what i get when i connect the Zero on the programming port.

Attachment(s): 

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

1. What is under the "Atmel" group in the device manager.

2. Show how this looks in the "Device Programming" dialog in the AS. Does it let you select a target device and connect to it?

NOTE: I no longer actively read this forum. Please ask your question on www.eevblog.com/forum if you want my answer.

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

he let me chose the device but can't connect...

Attachment(s): 

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

(note that debug chips usually enumerate under USB as at least two devices.  One is the "Virtual comm port" for application-level communications, and the other is some other device that actually implements the debug interface.)

 

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

This board comes with 2 usb ports. one for programming (and debuging) and another one connected to the SAM labeled as native...

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

So from what I understand, EDBG firmware on the Arduino Zero is different from EDBG firmware (possibly just VID/PID). So you need to ask Arduino guys to give that firmware to you. Atfw can read the firmware back, so you can ask someone with the same board to read it.

 

Right now your board looks like a normal EDBG with screwed up serial number. I don't think you can do that though atfw, so it is likely that the board was like this before. I can't find the actual fix for the ATmega328P-XMINI, but it might work for this board as well. Did you find the files for this fix, or just this blog post?

 

It would be helpful to know what exactly has "failed" during the firmware upgrade. Does it still fail if you try to run atfw agin?

NOTE: I no longer actively read this forum. Please ask your question on www.eevblog.com/forum if you want my answer.

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

The fix for Xmini is http://spaces.atmel.com/gf/project/avr_xp_mini/frs/?action=FrsReleaseView&release_id=433

 

I've tried to run it but it gave the error attached.

 

Moderator note: it's much easier for folks to see what's going on if you just include images inline rather than attaching them such as this....

 

https://www.avrfreaks.net/sites/default/files/forum_attachments/fix.jpg

Attachment(s): 

Last Edited: Thu. Apr 23, 2015 - 01:23 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
Moderator note: it's much easier for folks to see what's going on if you just include images inline rather than attaching them

Agreed!

 

How to do this could be made a whole lot clearer: https://www.avrfreaks.net/forum/h...

 

Instructions here: https://www.avrfreaks.net/wiki/em...

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Ok, it looks like this tool is very specific to mEDBG. It looks like an artificial limitation, but it is still there.

 

Also, I'm pretty sure this S/N issue was there from the beginning, so it would be Arduino problem, ask them for support.

NOTE: I no longer actively read this forum. Please ask your question on www.eevblog.com/forum if you want my answer.

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

well the board worked for the first time and had F's on the serial number.

Also, regarding support, thats what i did. asked for arduino.org support but they just answer what's on the first post and now i don't receive reply to my emails. I've asked support to Atmel also and the said "go ask arduino"

 

Last Edited: Fri. Apr 24, 2015 - 08:02 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ask Cool Components for Help.

 

They are a good company.   I suspect that an email from them to Arduino.srl will get a better response.

 

Have you ever tried a 'faster' PC?

Perhaps Cool Components might fix it for you.

 

David.

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

Did it work with Arduino IDE or Atmel Studio? I don't think Arduino cares for a serial number at all.

NOTE: I no longer actively read this forum. Please ask your question on www.eevblog.com/forum if you want my answer.

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

I have a I5 so i don't think its a speed issue...

 

It worked with arduino IDE and Atmel Studio.

Now don't work on either.