-
-
Notifications
You must be signed in to change notification settings - Fork 64
Compiled MuxTo binary too large #103
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
Comments
Hi @thomome , |
I can set up CI for it if you like. The workflow I wrote for the sketch compilation "smoke test" of the Motor Carrier firmware can be a good reference: |
@per1234 it would be great! The only step to add is to check that the final .bin is smaller than 12288 bytes (0x3000), since the size report is reporting a slightly smaller size. |
Hi @facchinm. I'm afraid I don't understand the requirement. Shouldn't the compilation process fail already if the compiled sketch size exceeds the
I can certainly add another step to the workflow to run |
Basically |
Thanks for the explanation! Here is the PR: #105 |
As this issue shows that the latest version can not compile successfully for the size of arduino nano every. In the discussion And also I want to know who compiled the "factory" version of the firmware in the purchased nano every board? Which commit does it associated with? Thanks, |
I modified the MuxTO.ino as attached. But after upload I can not load the regular sketch and I got the error Basically, I did the following change:
For me it doesn't seems I have changed the behavior of the code, but I am not sure, especially it is not working yet. |
Since my last modification is wrong, I am thinking about what can we do to reduce the size.
|
Unfortunately the github action never runs successfully due to this issue. |
I got it fixed by removing some unused features from the core and, most important, updating the compiler version (that was stuck to 4.9.x) |
@facchinm I seem to be working out of my depth here, But I am having this same problem, though it should be solved. I have put together a custom nano every and would like to upload the factory program to the ATSAMD11D14A, but am stuck here. I have followed the instructions from in0 on this page: https://forum.arduino.cc/t/reset-nano-every-via-1200-baud-touch/939949/8 but have stumbled over a few issues. Firstly, the location online for the firmware and instructions: https://www.arduino.cc/en/Guide/NANOEvery#firmware-for-samd11d14a seems to be missing. But ok, I am trying to work around. Secondly, the versions of "MattairTech SAM D|L|C core for Arduino" that are currently available do not allow for 4kb bootloader. I was able to find "Fab SAM Core for Arduino" seems to be able to do this, however I have not been able to test this yet. Thirdly, when trying to complile MuxTO, the flash is overflowed by 424 bytes. I am using the Arduino IDE 2.1.1. Really what I need are explicit instructions for how to program the SAMD11D14A so that it can be used to program the ATMEGA4809. If there is any way that you can help or if you have any comments about the issues I am having it would be greatly appreciated. |
@TtomGit the Compile MuxTo github action already creates a zip file containing a compiled firmware as artifact 🙂 |
@facchinm Thank you, for your quick response. I created a new branch and used the Compile to MuxTo action which produced a binary file that I uploaded to my custom Arduino Nano Every and also a factory Nano Every to check if it was a software or a hardware issue . However when I connected via USB to both, nothing was detected over any of my COM ports. I tested the factory Nano Ever before I flashed the binary file and it was detected, so it is not a issue with my computer or the hardware, but rather the firmware. You had mentioned applying patches to MuxTO sources, but I am still rather confused what you mean by that. What do you mean by patches? Are there any in the repository or elsewhere? Because I am only trying to upload the factory firmware. Is that not what is created with the current source files? Thank you, for your help. |
Hello everyone,
I was trying to compile and upload the MuxTO firmware for the Arduino Nano Every. I followed the guide https://www.arduino.cc/en/Guide/NANOEvery and was able to compile the sketch with arduino-cli.
After exporting the binary, I noticed that it was 280 bytes larger than the precompiled firmware binary from the repo. When I anyway tried to upload it with bossac it failed with the following error.
Does anyone have any idea what I am doing wrong?
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: