-
Hi, I'm trying to recreate mm-stm-serial-aetr-v1.3.3.20.bin using
v1.3.3.20 asset mm-stm-serial-aetr-v1.3.3.20.bin has a size of 118,192 bytes My local build with just PPM disabled in _Config.h produces a .bin with a size of 117,372 bytes What am I missing? Is there anything I need to enable to recreate mm-stm-serial-aetr-v1.3.3.20.bin? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 17 comments 8 replies
-
Are you building on Windows? We build our release files on Linux. A <1KB file size delta when building on Windows seems to be 'normal' (but is interesting). |
Beta Was this translation helpful? Give feedback.
-
Thanks for your response. Indeed, I do build on Window. I can't say for sure but working on 1.3.3.7 and 1.3.3.14 my first actions was to recreate the baseline to make sure the tool chain in working. Think I managed to build digital twins of both. This was on the old gcc version. Can you confirm //#define ENABLE_PPM is the only thing to change in _Config.h to build mm-stm-serial-aetr-v1.3.3.20.bin? |
Beta Was this translation helpful? Give feedback.
-
Yes, that's all you need to do. |
Beta Was this translation helpful? Give feedback.
-
I remember the switch to the new gcc version was done to save flash memory. Just switch to building on Windows and get another 800 bytes free of charge. |
Beta Was this translation helpful? Give feedback.
-
The best way to do "genuine" builds would be to use CI. Unfortunately it seems running actions off of my fork excludes release type builds. Is there any way to do a release type cloud build? Alternatively a docker would also be fine. Possible? |
Beta Was this translation helpful? Give feedback.
-
In your repo you can modify the existing CI workflow, or create your own. Personally, I use WSLv2 to build binary files on Windows. The output is the same as the Github CI process. |
Beta Was this translation helpful? Give feedback.
-
Care to share a how-to-setup? |
Beta Was this translation helpful? Give feedback.
-
My bad. Running CI on my local repo does build release type .bins and it produces binary twins. But I'd be still interested how you build on WSL2. Would MSYS2 work too? |
Beta Was this translation helpful? Give feedback.
-
I've uploaded a copy of my WSLv2 build script here: https://gist.github.com/benlye/1b33b6c2bbf9883f52fbdf81148105d7 It's basically just cobbled together from the code we use for our CI/CD workflows. It 'should' just work, and will install all the necessary bits you need in your Linux environment. I use it in an Ubuntu 22.04 image running in WSLv2 on Windows 11. It builds 10 different images for me, each with slightly different configuration. It should be pretty easy for you to customize to do whatever you want. At a minimum you will need to change I don't if it will work with MSYS2 - I've never tried. |
Beta Was this translation helpful? Give feedback.
-
I've also realized that I did create a Docker image some time ago, but it's rather out of date now. I'll see if I can get it updated. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your script. Works like a charm on WSL2/Ubuntu 20.04. Finally time to scrap the Arduino IDE. |
Beta Was this translation helpful? Give feedback.
-
I've updated my Docker container if you want to give that a try. |
Beta Was this translation helpful? Give feedback.
-
I've put some more time into the Docker container, including cleaning up the inconsistencies in the documentation.
I'll get instructions for building with the container added to the main MULTI documentation. Ben
|
Beta Was this translation helpful? Give feedback.
-
Hi Ben, Thank you very much. I tried with the updated container (
Michael |
Beta Was this translation helpful? Give feedback.
-
I've synced the Docker Hub doc up with Github. To use |
Beta Was this translation helpful? Give feedback.
-
OK, got it - the 'help' output from the container was giving bad examples and had the wrong variable name. It should be
|
Beta Was this translation helpful? Give feedback.
-
Hi Ben, Great, thank you very much. Works perfect now! Maybe on thing. Using non -devel: -devel: Have a great day Michael |
Beta Was this translation helpful? Give feedback.
I've uploaded a copy of my WSLv2 build script here: https://gist.github.com/benlye/1b33b6c2bbf9883f52fbdf81148105d7
It's basically just cobbled together from the code we use for our CI/CD workflows. It 'should' just work, and will install all the necessary bits you need in your Linux environment. I use it in an Ubuntu 22.04 image running in WSLv2 on Windows 11.
It builds 10 different images for me, each with slightly different configuration. It should be pretty easy for you to customize to do whatever you want. At a minimum you will need to change
SRCPATH
and you probably want to remove the lines which set the fixed global ID options,FORCE_GLOBAL_ID
andFORCE_CYRF_ID
.I don't if it will …