Over a million developers have joined DZone.

Updated McuOnEclipse Components: USB for KL24Z, FatFs v0.10c, Shell Backspace and FreeRTOS Trace Hook Configuration

DZone's Guide to

Updated McuOnEclipse Components: USB for KL24Z, FatFs v0.10c, Shell Backspace and FreeRTOS Trace Hook Configuration

· Java Zone
Free Resource

What every Java engineer should know about microservices: Reactive Microservices Architecture.  Brought to you in partnership with Lightbend.

I 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:

  1. USB support for Kinetis KL24Z
  2. FatFs now features the latest Elm-Chan v0.10c release
  3. Backspace support in Shell
  4. Configuration item in FreeRTOS for Percepio Trace Hooks
McuOnEclipse SourceForge

McuOnEclipse SourceForge

USB Stack with Kinetis KL24Z Support

The FSL_USB_Stack components support now the Kinetis KL24Z:

Kinetis KL24Z supported in FSL_USB_Stack

Kinetis KL24Z supported in FSL_USB_Stack

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

FatFs r0.10c

FatFs r0.10c

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).

Putty with Shell

Putty with Shell

Now I can hit backspace (both ‘\b’ and ‘\177′ are supported):

Backspace entered

Backspace entered

Entering backspace will delete the last character, so I can enter the correct string:

text entered after backspace

text entered after backspace

If using the Shell in that mode, and if the terminal does not feature an ‘auto-echo’: enable the Echo function in the Shell:

Echo in Shell

Echo in 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.

FreeRTOS Configuration Item for Trace

FreeRTOS Configuration Item for Trace


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.

Microservices for Java, explained. Revitalize your legacy systems (and your career) with Reactive Microservices Architecture, a free O'Reilly book. Brought to you in partnership with Lightbend.


Published at DZone with permission of Erich Styger, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}