Hi Bernd
uTasker KL26 framework = 6'362 bytes of Flash (scheduler, general system drivers, etc.)
uTasker KL26 framework with USB mouse = 13'531 bytes of Flash (FS USB driver + HID mouse class and operation)
uTasker KL26 framework with USB-CDC application = 14'083 bytes of Flash (FS USB driver + CDC class and operation)
uTasker KL26 framework with USB-CDC application and HID MOUSE (composite) = 14'563 bytes of Flash (FS USB driver + CDC class and operation + HID class and mouse operation)
uTasker KL26 framework with USB-CDC application and HID MOUSE and keyboard (composite) = 15'431 bytes of Flash (FS USB driver + CDC class and operation + HID class and mouse + keyboard operation)
Tested on the Teensy LC and Freedom boards (setup for 32k/4k memory)
http://www.utasker.com/kinetis/TEENSY_LC.html / http://www.utasker.com/kinetis/FRDM-KL26Z.html
Built with make file (GCC with -Os) [also builds with KDS, CW, S32 Design Studio, IAR, Keil, Atollic, Rowley, Green Hills, CooCox]
Flash consumption (on 32k/4k part) is not a problem generally but the SRAM may be a little tight together with further application requirements. The NXP examples probably are not designed for efficiency and potentially will be worse for SRAM consumption ((?) the more critical part) because larger Flash/RAM chips are available that are more interesting for sales.
The above references are industrially proven in various products (> 5 years) and thus robust, efficient, documented and can be simulated in the uTasker Kinetis simulator for further analysis, extension etc. With professional personal support if desired or FREE if not (but still with basic supported in this forum).
Regards
Mark
Kinetis for professionals: http://www.utasker.com/kinetis.html