Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


FreeRTOS+IO, i2c driver, bsp for Kinetis k20/40/60/70

Posted by blewis9993 on September 28, 2017

We are trying to use the FreeRTOS+IO with i2c in a FreeRTOS project. We have the file system, usb stack and so forth working without problem with FreeRTOS. According to the product description, the FreeRTOS+IO i2c driver is easy to use so we went down that path but have hit a wall.

The FreeRTOS+IO example code base is built against a board product from NXP which is the LPC17xxx. However we have a custom board that uses the MK20dx256VLL10 processor. The problem is the bsp file set that is needed to use FreeRTOS+IO with our processor. We cannot find any documentation on how to set up the bsp files. We are using the pin_mux.c,h files generated by MCUExpresso and the SDK v3.2. These are already setting up the configuration of the processor. FreeRTOS+IO appears to want to set mux.pin structures in the bsp as well. This would be a conflict.

Can anyone share a bsp file for kinetis that works, or direct me on how to integrate the i2c driver correctly please? We invested a lot of time and money to move away from MQX to FreeRTOS because of the bsp and other dependencies. This has always proven to be a very weak link in their code base. We are hoping this is not true for FreeRTOS+IO, but need help around this area.

Thanks for any advice and help.

Robert Lewis

FreeRTOS+IO, i2c driver, bsp for Kinetis k20/40/60/70

Posted by rtel on September 28, 2017

The IO code is provided with a port to an NXP LPC chip, using NXP drivers. I believe the Kinetis drivers are quite different. The code dates from a time when the two product lines came from different companies. There would be some porting effort, and to be honest, it might be better to use the drivers as they are provided by NXP in their tools.

[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]

Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


FreeRTOS and other embedded software careers at AWS.

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers


STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner