Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

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

Try Okta to add social login, MFA, and OpenID Connect support to your Java app in minutes. Create a free developer account today and never build auth again.

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

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.

Build and launch faster with Okta’s user management API. Register today for the free forever developer edition!

Topics:

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

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}