Best Practices for App Deployment #132
Replies: 2 comments 3 replies
-
Every one of the You have the ability to "bake" your program into the firmware by passing the location where you have defined a frozen manifest. This is done by using the I need to better know what you are wanting to do when you say board definition. The main purpose of being able to define boards is for the inexperienced user. it is to provide convince functions and variables that align with what a board manufacturer has named things as. They are so a user doesn't have to know if there is SPIRAM or not or how much flash there is. The only use case that would have applied is if a board didn't use a uart repl and instead was using USB-CDC. But even that is able to be controlled using a command line parameter. The reason why the build script is so large is because of adding the ability to control the build from the command line. The things where the build system in MicroPython fell short have been addressed and by doing that it has also removed the need to define a board. |
Beta Was this translation helpful? Give feedback.
-
I was originally thinking that I needed to change the REPL setup and add an additional dupterm slot so I could disable the UART REPL, use the UART for communicating with the CNC controller, and debug on WebREPL. But I no longer need that since I can effectively disconnect the UART0 REPL by redirecting the Tx and Rx pins to UART1. That gives me all that I need, so I can probably use the stock S3..OCT build. And knowing that everything can be overridden from the command line should solve any residual issues that might arise. I do plan to freeze some, but not all, of my application modules. Others will be stored on the file system to provide some measure of user configuration, along with NVS settings. I have a mklittlefs script to prepopulate the vfs. All systems go! |
Beta Was this translation helpful? Give feedback.
-
My CNC UI project (UI for the FluidNC CNC controller running on an Elecrow 7" ESP32-S3 HMI display) is getting close, so it is time to think about the deployment and code management details.
I'm sure that other considerations will arise, but for now I am thinking about how to manage a custom board definition. Is there a better way to add one than manually adding files to lib/micropython/lib/ports/esp32? Ideally the solution would get the data from another repo, but maybe there is no easy way to do that. Perhaps hot-patching?
Beta Was this translation helpful? Give feedback.
All reactions