SAME70 Explained EDBG, Program Trace Counter not available? Also EDBG 3.1f not working at all

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

I am using the EDBG chip on the SAME70 Explained development kit, and using latest Atmel studio.

 

The first thing of annoyance is that the EDBG firmware in the latest Studio, 3.1f, wasn't working for me.  When I attempted to debug it would crash with an error saying something like it couldn't get the program counter.

 

So I downgraded to 3.19, which got me working again.

 

Now my real problem is that I cannot get Program Trace Counter working.  The play button is not enabled.  Does this feature work with EDBG?  Does EDBG or the SAME70 not support MTB?

 

Thanks

 

 

 

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

Cortex-M7 does not have MTB, no...

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

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

Does the "Program Trace Counter" in Atmel Studio require MTB? 

 

Can EDBG perform any kind of PC trace?

 

Does the J-Link Trace support PC trace?  Especially the cheaper ones, like the Base, Pro or Edu?

 

Does the SAM-ICE work in Eclipse too, or only Atmel Studio?

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

Yes, the EDBG can read SWO trace from the ARM core. Do note that it is not as high speed compared to a J-Link trace. 

 

What sort of PC trace is you want? Just a continuous stream of program counter values? Then I think you need to look at ETM which the Cortex-M7 has. ETM uses PTRACE and needs a J-Link trace to keep up (as far as I can remember at least). 

 

If you can do with statistical PC sampling, the EDBG/Atmel Studio can do that and show you samples per function/samples per line of function.

 

As for J-Link specifics, all should be written on Seggers product pages. 

 

SAM-ICE is only locked to be used with Atmel Devices. There's no lock on what software drives it...

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

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

Same problem here, Atmel Studio urged me to upgrade my SAME70 explained board to EDBG version 3.1f but now this board is unusable yet. I can program the E70 via tools->device programming and after power on reboot the program is running and can print to terminal. But I cannot run the program nor debug it inside Atmel Studio any more.

Therefore I'd like to downgrade the EDBG firmware as mentioned in the previous posts but I cannot find the firmware in the Net. Can you point me to the old firmware ? Thanks. 
 

SAME newbie

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

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

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

Hm, thanks. Debugging seems to work again, although I got this error message:

 

atfw -a D:\Projekte\HV\tools\edbg\edbg_fw-3.33.401.zip -t edbg
Found edbg:ATML2637010000000000
Upgrading edbg:ATML2637010000000000
Waiting for bootloader usb enumeration: [==========]
Upgrading Debugger MCU Firmware: [==========]
GenericError thrown during firmware upgrade
Failed to read firmware version from coprocessors. Failed sending command/receiving response. Command ID 0x00. Invalid response received when sending CMSIS command from mk4 transport

EDBG Firmware

SAME newbie

Last Edited: Wed. Nov 23, 2016 - 09:28 PM