Open salvq opened 4 years ago
Hi @salvq , this is probably due to the new compiler (arm-none-eabi-gcc/7-2017q4) blowing code size just enough not to fit the resulting binary in 16KB. You can try reverting the SAMD core to pre 1.8 and rerun your procedure because I don't see anything wrong in it. Anyway, thanks for reporting, I'm taking a look at what's happening with latest toolchain on windows!
Let me try and report again.
This is more what I found out just before you posted...
I just recompile original SDUBoot.ino without changing SS pin, transfer to h file and also Usage.ino compilation is failing due to above.
So the reason of compile issue of Usage.ino is either:
Could you attach the mkrgsm1400.h
you generate? Thanks
Attached, this is with SS PIN changed to 6, if neccessary I can generate original one (without any change)...
Just adding more tests I just did...
Compilation of Usage.ino in 1.6.21 board mng for both version of *.h compiled OK (original and compiled one from 1.8.3 board manager). Have not tried if it is actually working yet
Now I also tested to compile Usage.ino in 1.8.3 with compiled h file from 1.6.21 and it also works.
I can confirm that point 2 is working (just tested with SD card), so the short temp fix is following:
1.) If anybody needs to recompile h include (i.e. mkrgsm1400.h), need to revert back to 1.6.2 board version and compile it there
2.) Then you can switch back to the latest board version 1.8.3 and compile using #include
Hello,
I also have the same problem in Linux. Using latest board version 1.8.6. I'm recompiling mkrwifi1010.h. File size = 102 811 bytes. Any idea when this might be fixed?
Hello,
Reporting an issue compiling sketch using SDU library with adjusted boot h file. I am using different SS pin 6 instead of 4 therefore I am in need of recompile.
I have MKR GSM 1400 and when compiled example
Usage.ino
using adjusted boot file mkrgsm1400.h compilation is failing on below. I am using Arduino: 1.8.10 (Windows 10), Board: "Arduino MKR GSM 1400"When I use original mkrgsm1400.h (rewrite my adjusted one), compilation is OK.
The only change I made to SDUBoot.ino is below listed below. I have changed SS PIN and compiled via Arduino IDE 1.8.10 (export export compiled binary) and then use cat in raspberry pi (buster)
SDUBoot.ino.mkrgsm1400.bin | xxd -i > /tmp/mkrgsm1400.h
to create adjusted boot version and rewrite original file in boot folder of library folder.Does anybody knows why the compiler is failing when I changed just the SS pin ? What am I doing wrong ? Is there any settings I need to make in SDUBoot.ino ?
Thanks for help