mega328PB in VisualGDB

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

Sysprogs

Topic: Support for ATMEGA328PB

by asti

December 5, 2017

https://sysprogs.com/w/forums/topic/support-for-atmega328pb/

...

I’ve patched the existing BSP because I needed an immediate workaround,

...

 

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

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

https://sysprogs.com/w/forums/topic/support-for-atmega328pb/#post-13165

...

Thanks the for the update. We will try to include support for new devices in our next refresh of the AVR toolchain.

 

Prebuilt GNU toolchain for avr

http://gnutoolchains.com/avr/

VisualGDB Tutorials

Developing firmware for AVR devices with Visual Studio

https://visualgdb.com/tutorials/avr/

https://github.com/sysprogs/BSPTools/tree/master/DebugPackages/AVaRICEDebugPackage

 

Edit: AVaRICE

 

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

Last Edited: Sat. Jan 20, 2018 - 05:48 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Is VisualGDB worth getting into?  Do you really enjoy using it (any severe pitfalls)? Is it more arm-wrestling than usingAS7?   Perhaps being able to easily move code to other types of targets (STM, PIC, etc) without being tied to Atmel/Microchip makes it wirth investigating.

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!

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

avrcandies wrote:
Is VisualGDB worth getting into? 
No because Atmel Studio has "infinite value" wink

If you dis-like AVR in MPLAB X then VisualGDB is one of several alternatives.

VisualGDB is centered on arm Cortex and ESP32/etc (OpenOCD); AVR is an add-on (AVaRICE)

If PIC is a requirement then VisualGDB is not it though PIC32 should work as there are GDB servers for PIC32.

avrcandies wrote:
Perhaps being able to easily move code to other types of targets (STM, PIC, etc) without being tied to Atmel/Microchip makes it wirth investigating.
A recent competitor to Sysprogs VisualGDB is PlatformIO 

PIO Unified Debugger

http://docs.platformio.org/en/latest/plus/debugging.html

 

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

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

Developing firmware for AVR devices with Visual Studio

A follow-on to that tutorial shows the further integration of AVR GDB into VisualGDB with a future product for AVR being something akin to Microchip Debug Executive.

Debugging Arduino AVR boards with Visual Studio – VisualGDB Tutorials

October 1, 2018

This tutorial shows how to debug the AVR-based Arduino boards using Visual Studio and the Advanced Arduino Project Subsystem of VisualGDB. Before you begin, install VisualGDB 5.4 Preview 4 or later, get an AVR debug probe (e.g. AVR Dragon) and follow our basic Arduino tutorial to create a simple project.

...

[debugWIRE enable caution]

...

[Atmel Studio for DWEN fuse]

...

 

[step 8]

...

As long as the AVR board is properly setup for debugging, VisualGDB will provide the same debugging experience as with any other supported target. The FLASH memory will be automatically programmed and VisualGDB will let you set breakpoints and step through your code. However, while the AVR chip is in the debugging mode, it will only run with a debugger connected and won’t let you use the bootloader for programming the FLASH memory.

 

...

[Atmel Studio, disable debugWIRE]

...

 

[bottom]

If you are debugging AVR-based Arduino boards frequently and would be interested in our experimental instrumenting debug engine that works over the regular COM port and does not require a separate debug probe, contact us via our support page for more details.

 


VisualGDB - Serious cross-platform support for Visual Studio

VisualGDB - Download

Debug Executive - Developer Help

 

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