-
Notifications
You must be signed in to change notification settings - Fork 20
MCU Builder node: Initial commit. #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Interesting idea to integrate this as a node. I'm excited to try this out. After doing the Maybe it is just a dependency problelm? |
|
I was unsure, if that was necessary - yet it seem to be (once): |
|
That eliminates the error. I will try this out as soon as I can. |
|
I'm getting closer. ;) When running the flow, I get this error: Here' the flow set-up: I created an empty directory for the working directory at |
|
Sorry - I‘ve been a bit short yesterday describing the idea:
I‘ll check if I can locate the issue you encountered… |
Ok. I think I found the issue. As a workaround, please inject an empty object |
|
@ralphwetzel – that works! Very nice. The "working directory" is where you create the Moddable SDK project. I'm not sure what "Create Build Environment" does. I haven't had a chance to read your sources yet to understand what it does. |
|
If you uncheck the option "Create Build Environment", only |
|
I really like your focus on trying to make things as easy as possible for users. I have a some suggestions for the configuration dialog with the goal of making it more accessible for casual users while maintaining access to more powerful capabilities for more advanced users. For most users, it will be enough to just run the project. They don't need to know the path. Maybe it would be enough to create a temporary directory, put For more advanced users, an option to choose a path would be great. In that case, it could always just write write The "build command line" is a bit esoteric for users getting started. For most users, it would be enough to choose either "simulator" (to run on thee local device) or give the platform ("esp32/moddable_two", "esp", "pico", etc). For device targets, you could provide boxes to enter Wi-Fi SSID and password and add those to the command line. An advanced option to provide the full command line would be a fallback for special cases. |
|
As of now, the dialog matches the description you provided to build projects for XS. I agree, that it's currently quite technical - yet as well ultimately flexible. For the time being, I would like to focus on adding functionality ... knowing there's plentitude of opportunities to make things nicer. |
|
That's fine. I would prefer not to make the root of the node-red-mcu project specifically for the MCU builder. Maybe that is the right answer in the long term, but it seems too early to make that assumption. the |
|
You're right. In the end, my proposal is just one way to integrate this idea into the NR editor. Thus I'll close this PR & keep things seperated - to not create too much interference. |
I still think it would be good to have as part of this repository. It is useful and provides an example for others who may with to explore other approaches. |

This is the initial attempt to support / automate the

node-red-mcubuilding process.This PR proposes a
MCU buildernode that is able to perform the building process from thenode-rededitor.Minimal usecase:
The build parameters can either be provided as a parameter in
msg.mcuor defined in the node config panel:A short description of how to install this package was added to the readme.
No intensive testing has been performed ... thus: Expect the unexpected! 😉