kopia lustrzana https://github.com/micropython/micropython
Strona:
Bundling and deploying application code and files
Strony
Board FreeSOC
Board Arduino Due
Board BLACK F407VE
Board BLACK F407ZE
Board BLACK F407ZG
Board Crazyflie2
Board Espruino Pico
Board FEZ Cerb40 II
Board FEZ Cerb40
Board FEZ Lemur
Board G30HDR
Board HydraBus V1.0
Board NUCLEO F401RE
Board NetduinoPlus2
Board Nucleo F767ZI
Board Olimex STM32 405STK
Board Olimex STM32 E407
Board OpenMV
Board STM32F401 Discovery
Board STM32F407 Discovery
Board STM32F429
Board STM32F746 Discovery
Board Teensy 3.1 3.5 3.6
Board Tiva TM4C123G Launchpad
Board VCC GND STM32F407VET6 Mini
Boards Summary
Build Troubleshooting
Building Micropython Binaries
Building st flash
Bundling and deploying application code and files
Collections module
ContributorGuidelines
CrossBranch
Developing on a microcontroller
Differences
ESP32 debugging
Examples
FAQ
Getting Started Compiling Micropython for Ubuntu 16.04
Getting Started STM
Getting Started
HY STM32F4xxCore144
Hardware API
Home
Improving performance with Viper code
Instrumenting code using GPIOs
LCD driver
LTO
Learn MicroPython
Memory Manager
Micro Python on Mac OSX
MicroPythonVsELua
Micropython Git Development Workflow
PPP on ESP32
PWM Timers
Performance
Programming Debugging the pyboard using ST Link v2
ProjectsUsingMicroPython
Pyboard Firmware Update
STM32F405 Timer Triggering
STM32F405 pinouts
Securing a MicroPython System
Servos
Soft reset
Standard Library Coverage
Symbolic Debugging for STM32
Threads
Timebase calculation and Clock sources
Timer Implementation
Timer capture mode
Timer one shot
Tips and Tricks
VS Code
Watchdogs, Crash prevention, Crash recovery
1
Bundling and deploying application code and files
Andrew Leech edytuje tę stronę 2024-03-25 09:03:45 +11:00
During development, tools like mpremote are fantastic for quickly running code on a micropython device.
Once an application is ready for release however you will often want your code to be bundled into the firmware for easy deployment.
The official way to achieve this is called freezing.
Code freezing however only works with python file, to deploy other kinds of data or assets there are a number of different options (listed in no particular order):
- https://github.com/peterhinch/micropython_data_to_py
- https://insigh.io/blog/how-to-freeze-the-unfreezable/
- https://github.com/bixb922/freezefs
- https://github.com/Josverl/vfs_merge
- https://github.com/glenn20/micropython-esp32-ota
- https://github.com/glenn20/mp-image-tool-esp32
Longer term this is intended to be an official way to deploy any kind of files: https://github.com/micropython/micropython/pull/8191