Parallel Debugging / Trace

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

Hi, I want to implement a parallel debug on two quasi-identical programs on two different atsamda1j16b cores. I am using an atmel-ice programmer. 

 

The reason I want to implement this is to allow for "hardware in the loop" of my system on both devices. I don't want to transmit data back to my system using UART as it would change the application specification.

 

For further information on my project I am building two hex files from one project with slight differences through #ifdef statements. I am generating two different .elf files and then I use the atprogram utility to program my devices. This works. But this utility doesn't afford the debugging of the device.

 

Currently I am using the atbackend utility to generate a local gdb server. Then using atmel studio utility  arm/arm-gnu-toolchain/bin/arm-none-eabi-gdb.exe to connect to this remote serial host.

I am missing some details in getting this utility to work, but this might not be the best solution for what I want.

 

What I want is trace functionality and real-time data acquisition of my variables through the ICE debugger. 

 

Could you direct me further?  

Any documentation I am missing? 

 

Suggestions to other technologies such as OpenOCD or an easier to use interface will be accepted. However I wish to not use two different atmel studio processes running in parallel. Perhaps some guide to hardware in the loop or some python library I am unaware of?

 

Thanks in advance,

Tim

This topic has a solution.

Tim Xuereb

Last Edited: Fri. Apr 8, 2022 - 04:56 PM
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Timothy51 wrote:
What I want is trace functionality
Arm MTB is in Microchip Studio.

Timothy51 wrote:
or some python library
EDBG via Python

 

P.S.

Timothy51 wrote:
I don't want to transmit data back to my system using UART as it would change the application specification.
Is a logic analyzer within specification?

 


ATSAMDA1J16B | Microchip Technology

 

Atmel Studio 6.2 Service Pack 1 | Microchip Studio

 

GitHub - microchip-pic-avr-tools/pyedbglib: Low-level protocol library for communicating with Microchip CMSIS-DAP based debuggers

 

Troubleshooting real-time software issues using a logic analyzer - Embedded.com

 

"Dare to be naïve." - Buckminster Fuller

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

Very interesting reads. Thanks for the information if you have any other method in mind please do share.

Tim Xuereb

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

Timothy51 wrote:
I am using an atmel-ice programmer.

...

I don't want to transmit data back to my system using UART as it would change the application specification.

Timothy51 wrote:
if you have any other method in mind please do share.
Arm semihosting

What is Semihosting? | ARM Compiler Software Development Guide Version 5.06

Introduction to ARM Semihosting | Interrupt (Memfault)

 

edit :

How to display ITM-based output in Atmel Studio - Arduino Due & J-Link | AVR Freaks

 

 

"Dare to be naïve." - Buckminster Fuller

Last Edited: Tue. Apr 12, 2022 - 06:22 PM