Hello,
I am trying to rebuild the SDUBoot.ino sketch for a custom board (based on MKRZERO, with different pinout config on the SPI), but once I built it (either via IDE or using the build.sh script) the final binary size exceeded the 16kB expected by sduBoot array. The same happens if I rebuild the sketch for the MKRZERO itself, so it does not seem to be a matter of variant configuration.
I tried both on Windows and Linux, using the IDE or arduino-cli, the outcome is always the same: about 16900 Bytes of binary.
I am able to make it work by increasing the SDU_SIZE to 0x6000, but it is a waste of resources. Could someone please help me understand what am I missing in the sketch build process? I also tried to tinker with the platform build flags, to no avail...
thanks a lot for any feedback!