Giter Club home page Giter Club logo

mongoose-os-template's Introduction

mongoose-os-template

Mongoose os template with the following features:

  • CMake with:
    • local quick compilation (run mos build first - to generate files, for examples configs)
      • ESP8266 and ESP32 - xtensa
      • Windows - VS C++
    • full mos build
  • ESP32 on-chip debugging (GDB) with OpenOCD and JTAG
    1. build and flash MCU.

    2. Connect JTAG to MCU. I use ESP32 devkit\Wemos ESP32 Pro + FTDI FT2232H. Pinout (https://www.ftdichip.com/Support/Documents/DataSheets/ICs/DS_FT2232H.pdf):

      ESP32 JTAG
      GPIO 12 (TDI) ADBUS1
      GPIO 13 (TCK) ADBUS0
      GPIO 14 (TMS) ADBUS3
      GPIO 15 (TDO) ADBUS2
      GND GND

      screen

      Optinally you can use the reset pin.

      TIP: If you use FT2232 (or FT4232H - 4 channels) you can use the second channel for TX\RX

      ESP32 JTAG
      RX BDBUS0
      TX BDBUS1
    3. run debug_start_openocd.bat. I usually do it by hand. You can reconfigure appropriate OpenOCD configuration inside the file. screen

    4. update .gdbinit and\or .gdbinit-command-line accordingly

    5. start debugger:

      • command line:
        1. start xtensa-esp32-elf-gdb.exe -x tools/.gdbinit-command-line build/objs/mongoose-os-template.elf (debug_start_gdb.bat) screen
      • CLion:
        1. Create GDB remote debug configuration. You can use OpenOCD Download & Run however you cannot configure it with additional params (as for now) - for example you have to merge config files into one (interface/ftdi/esp32_devkitj_v1.cfg, board/esp-wroom-32.cfg). screen
        2. Create custom tool (debug_copy_gdbinit.cmd) and run it before lunch - CLion does not allow to use local .gdbinit as for now so we copy it to %HOME%/.gdbinit before each run.
        3. Select config and press Debug (Alt + F5). screen
  • Google test under windows build
  • CLion tested
  • other build, flash scripts
    • Look into tools folder

Some features are still in development

mongoose-os-template's People

Contributors

mac-michael avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

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.