Coder Social home page Coder Social logo

lnarduino_freertos_gdb's Introduction

These are modified version of FreeRTOS-GDB (https://github.com/autolycus/FreeRTOS-GDB) for my needs Bottom line, i use a blackmagic clone debugger and it does not support FreeRTOS. I just want to have backtrack for all the tasks on the system to see what they are doing and why they are stuck

The aim is to be similar to the "info thread" "thread x" commands of gdb

Disclaimer : I probably broke the other functions + i'm not a python developper

There are 4 subfolders :

  • riscv for GD32V103 style chips
  • arm_m3 for cortex m3/m0+ chips
  • arm_m4 for cortex m4+fpu chips
  • ch32_riscv for ch32 riscv chips. ( on ch32v3x I'm using a modified register layout on the stack to avoid saving fpu registers when not used)

Read the readme in each subfolder to have platform specific changes

Usage :

be sure to have the folder you use in your python path

export PYTHON_TOOL=some folder/freeRTOS_gdb_support/ch32_riscv export PYTHONPATH=${PYTHON_TOOL}/

... start gdb... source some folder/freeRTOS_gdb_support/ch32_riscv/FreeRTOS.py ...

Now you have 2 new functions from with gdb:

  • show Task-List to list all freeRTOS threads
  • switchTCB x : swith to thread x

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.