hi,
This is regarding MSP430 Driver Library's code size.
The User guide mentions:
"The drivers are not necessarily as efficient as they could be
(from a code size and/or execution speed point of view)"
I tested with a simple test example from MSP430Ware library(wdt_a_ex1_intervalSMCLK)
and the general sample code(MSP430F55xx_WDT_01.c).
Below are code sizes after the compiling/downloading the code to MSP430F5529.
General sample code:
-------------------------
MSP430F55xx_WDT_01.c with Output format :Legacy COFF
Code Size - Text: 74 bytes Data: 4 bytes.
MSP430F55xx_WDT_01.c with Output format :EABI(ELF)
Code Size - Text: 174 bytes Data: 4 bytes.
------------------------
Sample code which uses Library:
----------------------------
MSP430Ware(wdt_a_ex1_intervalSMCLK) with Output format :Legacy COFF
Code Size - Text: 1738 bytes Data: 202 bytes.
MSP430Ware(wdt_a_ex1_intervalSMCLK) with Output format :EABI(ELF)
Code Size - Text: 598 bytes Data: 4 bytes.
----------------------------
1.As the code size increases with usage of MSP430 Library,
can we assume that the Driver Library is not recommended for smaller devices
like MSP430F5308?
2.And shown above with the output format EABI(ELF) the code size reduces
in case of Driver Library sample code but increases in case of normal code,
please let me know which Output format is recommended?
Best regards,
Paddu.