Skip to content

Fri3dCamp/badge_2024_micropython_obsolete

Repository files navigation

badge_2024_micropython

The micropython codebase to support the Fri3dcamp 2024 badge

Building

Clone this repo and update all submodules recursively:

git submodule update --init --recursive

Then add a symlink from the esp32 port modules to our Fri3dCamp specific modules.

ln -s ./fri3d_modules ./micropython/ports/esp32/modules/fri3d_modules

Then run the build script:

./build.sh

Flash it with:

sudo ~/.espressif/python_env/idf4.4_py3.11_env/bin/python ./esp-idf/components/esptool_py/esptool/esptool.py -b 460800 --before default_reset --after no_reset --chip esp32s3  write_flash --flash_mode dio --flash_size detect --flash_freq 80m 0x0 ./build-FRI3D_BADGE_2024/bootloader/bootloader.bin 0x8000 ./build-FRI3D_BADGE_2024/partition_table/partition-table.bin 0x10000 ./build-FRI3D_BADGE_2024/micropython.bin

# this handles port detection automatically, but you can also set it with the -p option

Connect to the micropython with something like:

sudo picocom /dev/ttyACM0 -b115200

If you get an error like "A fatal error occurred: Failed to connect to ESP32-S3: No serial data received.", then 1. press-hold 'start', 2. short-press 'reset' and 3. release 'start'.

If you don't get a terminal then press reset, and reconnect your terminal emulator.

todo: make a Makefile instead and make the board configurable, and create flash targets

Refs

About

The micropython codebase to support the Fri3dcamp 2024 badge

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •