Updated McuOnEclipse Components: USB for KL24Z, FatFs v0.10c, Shell Backspace and FreeRTOS Trace Hook Configuration
Join the DZone community and get the full member experience.
Join For FreeI have received several requests to post a quick note when there is a new release (16-Nov-2014) of the McuOnEclipse components on SourceForge (see “McuOnEclipse Releases on SourceForge“). I have published today a new release, and with following major improvements:
- USB support for Kinetis KL24Z
- FatFs now features the latest Elm-Chan v0.10c release
- Backspace support in Shell
- Configuration item in FreeRTOS for Percepio Trace Hooks
USB Stack with Kinetis KL24Z Support
The FSL_USB_Stack components support now the Kinetis KL24Z:
FatFs with Elm-Chan R0.10c
The FatFS component has been updated and uses now the latest R0.10c from http://elm-chan.org/fsw/ff/00index_e.html
R0.10c comes with bug fixes and many improvements, but as well with a changed API for mounting. Instead a numeric drive number for multidrive support, it now requires a string. I have updated my components to reflect this.
FRESULT f_mount ( FATFS* fs, /* Pointer to the file system object (NULL:unmount)*/ const TCHAR* path, /* Logical drive number to be mounted/unmounted */ uint8_t opt /* 0:Do not mount (delayed mount), 1:Mount immediately */ )
This means that you might need to update your projects too: Instead of the drive number (e.g. 0) pass now an empty string “” or “0″.
Backspace support in Shell
If using a console like Putty then you probably send characters by characters, instead of the whole command in one sequence. Thanks to the contribution of Daniel Winz (thanks again!) the Shell component supports backspace (deleting characters already sent).
Now I can hit backspace (both ‘\b’ and ‘\177′ are supported):
Entering backspace will delete the last character, so I can enter the correct string:
If using the Shell in that mode, and if the terminal does not feature an ‘auto-echo’: enable the Echo function in the Shell:
Percepio Trace Configuration Item for FreeRTOS
If FreeRTOS trace gets enabled, then the RTOS gets instrumented with trace hooks (see “Tracing with FreeRTOS+Trace from Percepio“). But it requires as well the the trace gets initialized by the application, or trace elements enabled and controlled by the application. To make it easier for the application, the FreeRTOSConfig.h now contains a define
#define configUSE_TRACE_HOOKS 1 /* using Percepio Trace hooks */
which can be used by the application for conditional code. configUSE_TRACE_HOOKS is set to 1 if trace hooks are used, 0 otherwise.
Summary
I try to keep the releases on SourceForge about once a month, but there has been several changes in the last two weeks who made it worthwile to do a new release. I hope that it is useful for you.
Happy SourceForging :-)
PS: you can subscribe on https://sourceforge.net/projects/mcuoneclipse/ to get notified about new releases.
Published at DZone with permission of Erich Styger, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.
Comments