ClockTamerEmbeddingFirmware
Introduction
There are plenty of definitions to control firmware features. This article is valid from revision 3bfb5aeb3f. From this revision you can disable DFU (global variable NODFU=1) or set to only downloading mode (preventing reading current firmware over USB, definition NO_DFUUPLOAD).
Details
These are the firmware control definitions and the resulting firmware size.
Definition | Feature | Feature size (approx.) | SDK=0 | SDK=0, -DNO_DFUUPLOAD | NODFU=1 |
DEBUG_REGS | Helps to get internal variables | 246 | 12296 | 11874 | 9952 |
PRESENT_GPS | Enables basic GPS syncronization | 1708 | 12050 | 11628 | 9710 |
Default features enabled | 10342 | 9920 | 8006 | ||
UNROLL_MACROSS_LMX253 | Optimization in manipulating LMX registers | -186 | 10156 | 9734 | 7822 |
VCO_FIXED | Store VCO values in firmware rather than in EEPROM (the only way to update is to re-flash) | -430 | 9726 | 9304 | 7400 |
NO_CMDINFO | Disables INF command | -516 | 9210 | 8788 | 6890 |
NO_CMDPIN | Disables PIN command | -94 | 9116 | 8694 | 6796 |
NO_CMDREG | Disables REG command | -58 | 9058 | 8636 | 6738 |
NO_HWINFO | Disables HWI command | -56 | 9002 | 8580 | 6682 |
NO_VERSION | Disables VER command | -36 | 8966 | 8544 | 6646 |
NO_HEXVALUES | All commands accept only decimal numbers | -124 | 8842 | 8420 | 6522 |