• James Created Project

    12/30/2017 | 2:08pm

Loading Items

About This Project

project to walk you through how to create a new module for micropython
Request Access

Project Info


No skills have been added

Meet The Makers

Join Team
  • James
    • User:James
    • Rank:Master
    • Projects:30
    • Joined:2016
    • From:US
    Interests: Systems Architect. Love making robots and systems with moving parts.

No Comments yet. Why don't you add one?

.Set up

This is the setup procedure for an Ubuntu environment for building micropython for the esp32.



Step 1: GCC

Install dependencies
sudo apt-get install git wget make libncurses-dev flex bison gperf python python-serial
Then download

Then extract
mkdir -p ~/esp
cd ~/esp
tar -xzf ~/Downloads/xtensa-esp32-elf-linux64-1.22.0-73-ge28a011-5.2.0.tar.gz
Then add this to either your .bashrc or .profile file
export PATH="$PATH:$HOME/esp/xtensa-esp32-elf/bin"

.Micropython environment

get the main repo

mkdir -p ~/git
cd ~/git
git clone https://github.com/swymMaker/pycom-micropython-sigfox.git

Then get the IDF SDK
mkdir -p ~/git
cd ~/git
git clone https://github.com/swymMaker/pycom-esp-idf.git

then set the IDF_PATH in your .profile
export IDF_PATH=$HOME/git/pycom-esp-idf/
and finally make the ble_adv example to get the random libraries you need for micropython
cd $HOME/git/pycom-esp-idf/examples/bluetooth/ble_adv
make all

then build the micropython cross environment
cd $HOME/git/pycom-micropython-sigfox/mpy-cross
make all
then build the esp32 wipy stuff
cd $HOME/git/pycom-micropython-sigfox/esp32
make BOARD=WIPY -j5 TARGET=boot
make BOARD=WIPY -j5 TARGET=app
Finally, short the pin P2 to ground, reset and flash the board
make BOARD=WIPY -j5 flash

There are no project files yet.

Qty   Item Where to Find Est. Cost More Info
1 Pycom WiPy 2.0 Item Number: C1015

Pycom WiPy 2.0

Item #: C1015

Powerful CPU, BLE and sta