OpenNuvoton / M031BSP

BSP for M031 Series MCU
Apache License 2.0
15 stars 16 forks source link

Make retarget.c optional #13

Open mf301 opened 2 years ago

mf301 commented 2 years ago

It would be desirable to have retarget.c not included automatically when using the NuMicro DFP, since printf will be included in the application even if not needed (which increases ROM footprint) and also Hardfault_Handler is defined.

kchuang1 commented 2 years ago

You can remove the printf(...) function from source code and Use MicroLIB in Taget tab to reduce the code size.