Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Building micropython for esp8266 & pybd boards

License

NotificationsYou must be signed in to change notification settings

boidolr/mpy-esp8266

Repository files navigation

Buildingmicropythonforesp8266 &pybd boards.

Setting up the tool chains for the esp8266 on mac was a pain, so I am using aVagrantfile to manage a VM with the tools.

Using the image

Create a VM with thevirtualbox provider by usingvagrant up.The scripts provisioning the image and building the firmware are inproviders.

The VM will mount the folder containing theVagrantfile assources directory, and copy firmware images into it.To build the firmware usevagrant provision --provision-with build-image.

Adding modules to the firmware

Python sources that should be baked into the firmware can be added tomodules.If sources from a different location should be added these can be added tomanifest.py.

Firmware for esp8266

Install micropython on an esp8266 board:

Steps to follow (backup first!):

pip3 install esptoolesptool.py --port /dev/tty.usbserial* read_macesptool.py --port /dev/tty.usbserial* erase_flashesptool.py --port /dev/tty.usbserial* --baud 460800 write_flash --flash_size=detect 0<firmware.bin>

Firmware for pybd

Usepydfu.py from micropython:

pip3 install pyusb pyserialpython3 pydfu.py -u<firmware.dfu># -- or via build if mapped to the image --make BOARD=PYBD_SF2 deploy

Related

About

Building micropython for esp8266 & pybd boards

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

[8]ページ先頭

©2009-2025 Movatter.jp