Giter VIP home page Giter VIP logo

aideck-esp-firmware's Introduction

AI-Deck ESP32 firmware CI

This firmware is running on the ESP32 Nina W102 module of the AI-Deck. It implements communication with the GAP8 chip, the Crazyflie's STM32 main MCU as well as implementing Wifi communication.

NOTE: The default configuration uses the NINA_SYSBOOT (IO1) as log UART TX from the ESP32.

Compile and flash

The firmware is currently designed to be flashed and run from the serial port.

It has been developed using the version 4.3.1 of the Esp32 IDF.

To flash and run:

$ source ~/path/to/idf/export.sh
$ idf.py build
$ idf.py flash
$ idf.py monitor

Flash using the builder image

To build the firmware in Docker, use:

docker run --rm -it -v $PWD:/module/ --device /dev/ttyUSB0 --privileged -P bitcraze/builder /bin/bash -c "make"

Then, to flash the ESP using a JTAG, use:

docker run --rm -it -v $PWD:/module/ --device /dev/ttyUSB0 --privileged -P bitcraze/builder /bin/bash -c "openocd -f interface/ftdi/olimex-arm-usb-tiny-h.cfg -f board/esp-wroom-32.cfg -c 'adapter_khz 20000' -c 'program_esp build/bootloader/bootloader.bin 0x1000 verify' -c 'program_esp build/aideck_esp.bin 0x10000 verify reset exit'"

Flash using the cfloader

A binary can be flashed to the ESP via a Crazyradio using the cfloader

Note: replace the radio address with the appropriate value for your Crazyflie

cfloader flash build/aideck_esp.bin deck-bcAI:esp-fw -w radio://0/30/2M

Build with the toolbelt

When using the toolbelt the required toolchain is running in a docker container and no tools have to be installed on the machine. Just pre-pend make with tb, for instance

tb make

tb make clean

aideck-esp-firmware's People

Contributors

evoggy avatar krichardsson avatar ataffanel avatar whoenig avatar zeroos 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.