Giter Site home page Giter Site logo

deadsy / pycs Goto Github PK

View Code? Open in Web Editor NEW
74.0 12.0 11.0 42.76 MB

Python Based ARM CoreSight Debug and Trace Tools

License: MIT License

Makefile 0.12% Python 99.86% Shell 0.02%
microcontroller arm arm-microcontrollers cortex-m cortex-m4 cortex-m3 stm32 stm32discovery stm32f4xx debugger

pycs's Introduction

pycs

Python Based ARM CoreSight Debug and Trace Tools

  • PyCS is a python based JTAG/SWD debugger for ARM chips.
  • Its current focus is systems using Cortex-M ARM CPUs.
  • It reads the SoC SVD files to give full peripheral/register decodes for a wide variety of Cortex-M based chips.

What do I need?

Installing the tool

  • Run "make" - this will build the ARM disassembler library.
  • Run "./pycs" in the same directory you extracted the code to.
  • If you don't have permissions to access USB devices you can fix that (with a udev rules file) or run with "sudo ./pycs"

Current Targets

$ ./pycs -l
supported targets:
  axoloti       : Axoloti Synth Board (STM32F427xG)
  efm32lg       : EFM32 Leopard Gecko Starter Kit (EFM32LG990F256)
  frdm_k64f     : FRDM-K64F Kinetis Development Board (MK64FN1M0VLL12)
  mb1035b       : STM32F3 Discovery Board (STM32F303xC)
  mb1075b       : STM32F4 Discovery Board (STM32F429xI)
  mb997c        : STM32F4 Discovery Board (STM32F407xx)
  nRF51822      : Adafruit BLE USB dongle (nRF51822)
  nRF52dk       : Nordic nRF52DK Development Board (nRF52832)
  nucleo-l432kc : Nucleo-L432KC (STM32L432KC)
  saml21        : Atmel SAM L21 Xplained Pro Evaluation Board (ATSAML21J18B)
  tepo          : Teenage Engineering Pocket Operator (EFM32LG890F128)

Dependencies

  • sudo apt-get install python3-lxml
  • sudo apt-get install python3-hid

Using the Tool

$ ./pycs -t mb997c

pycs: ARM CoreSight Tool 1.0
STM32F407xx: compiling ./vendor/st/svd/STM32F40x.svd.gz
ST-Link usb 0483:3748 serial u"H\xffj\x06PuIU'3\x04\x87"
target voltage 2.889V

mb997c*>

It has an interactive CLI.

  • '?' for menu help
  • '?' for command completion/argument help
  • TAB for command completion
  • 'help' for general help

Features

  • display memory
  • disassemble memory
  • display system control registers
  • display peripheral registers
  • halt/go the cpu
  • program flash
  • Segger RTT client
  • measure counter frequencies
  • etc. etc.

Other Documents

pycs's People

Contributors

deadsy avatar samvasko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pycs's Issues

Add setup.py

The project is missing setup.py so it can be installed via pip and to explicitly mark the dependencies.
Do I get ๐Ÿฅ‡ for the first issue?

License

Hello,

Thanks for the helpful code here. I just wanted to ask what the license for the code in this repo is? I would like to use bits of it in another project but felt it better to inquire beforehand.

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.