cvra / can-bootloader

The bootloader used to flash our CAN-connected boards
BSD 2-Clause "Simplified" License
146 stars 51 forks source link

Reduce code size by linking with newlib-nano #78

Closed antoinealb closed 6 years ago

antoinealb commented 6 years ago

This commit reduces code size enough to fix issue #76. It does so by linking against a version of newlib optimized for code size. With this commit enabled, the motor board platform only takes 8.7kB where it used to overflow the 10kB limit. This fix was tested on motor-board hardware and since it passed I also enabled it on can-io.

I am not sure if this is toolchain specific, but I was able to run it in my antoinealb/gcc-arm-embedded image, so it should work at least on OSX and Ubuntu.

antoinealb commented 6 years ago

@SyrianSpock @nuft review ? merge ?

SyrianSpock commented 6 years ago

LGTM, merging.