greatscottgadgets / saturn-v

DFU bootloader for SAMD11 and SAMD21 microcontrollers
Other
20 stars 10 forks source link

Binary size optimization: saturn-v under 2 KiB #3

Closed mndza closed 10 months ago

mndza commented 1 year ago

This patch set aims to reduce the saturn-v binary size to under 2 KiB in size.

Apollo must be modified to target a 2 KiB offset. Also, its binary size must be an even number.

Support for board revisions >=0.6 is also added. For earlier board revisions, make sure BOARD_REVISION_MAJOR and BOARD_REVISION_MINOR are set in your environment.

grvvy commented 1 year ago

I have this working on:

Cynthion rev: r0.4 gcc version 10.3.1 20210824 (release) (GNU Arm Embedded Toolchain 10.3-2021.10)

Notes: