Skip to content
/ pyAVRdbg Public
forked from stemnic/pyAVRdbg

A GDB RSP server for AVR debuggers supported by Microchips pymcuprog

License

Notifications You must be signed in to change notification settings

xedbg/pyAVRdbg

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyAVRdbg

An attempt of making a gdb rsp server for AVR debuggers with pymcuprog primarily for the new UPDI devices but other protocols supported by pymcuprog can easily be made to work.

Current Features

  • Stepping
  • Memory manipulation (viewing and modifying variables)
  • Hardware and software breakpoints
  • Reading Registers (including SREG, Stack pointer and program counter)*

*Writing is possible it is just not implemented yet.

Install/Dependencies

  • avr-gdb
    • Recommend using the latest version. If you are compiling it I would looking at the arch community repos buildfile
    • Windows users might want to use wsl
  • libusb might be required as a seperate install
  • pip3 install --user pymcuprog
    • Some form for C++ compiler if you are running python versions higher than 3.6 since pymcuprog needs to compile package with Cython
      • Windows:

Usage

Debugger server

  1. Ensure debugger/kit is connected
  2. Modify main.py with device name see supported devices and ip or port defines if applicable
  3. start main.py

GDB

  1. avr-gdb (wellNamed).elf
  2. (gdb) target remote IP:Port

Currently Supported Devices

These are all the currently supported devices per 03.06.2020. This list is wholly dependent on pymcuprog's device support since this RSP server only uses general library calls in pymcuprog. As mentioned before ISP devices might also be supported in the future.

Protocol Device Name
UPDI atmega4808*
atmega4809
attiny416*
attiny817*
attiny1607*
attiny1627*
attiny3217*
avr128da28*
avr128da48
avr128db48*

*Devices are untested but will most likely work.

Thanks

A huge thanks to Microchip for making pymcuprog available

Some useful links for referance for development

About

A GDB RSP server for AVR debuggers supported by Microchips pymcuprog

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%