AnsweredAssumed Answered

MKW41Z_ConnSw_1.0.2 and FRDM-KW41Z - Bluetooth examples on Linux

Question asked by Lubomir Bogdanov on Jan 6, 2017
Latest reply on Mar 2, 2017 by David Switzer

Hi guys,

If you want to use FRDM-KW41Z and if you try to compile some of the FreeRTOS bluetooth examples from MKW41Z_ConnSw_1.0.2 you might get the following error:

=====================================================================================

Invoking: Cross ARM C Compiler
arm-none-eabi-gcc ...
 
In file included from /home/.../workspaces/kinetis_workspace/MKW41Z_ConnSw_1.0.2/boards/frdmkw41z/wireless_examples/bluetooth/wireless_uart/FreeRTOS/kds/../../../../../../../rtos/freertos_8.2.3/Source/include/FreeRTOS.h:104:0,
 from /home/lbogdanov/workspaces/kinetis_workspace/MKW41Z_ConnSw_1.0.2/rtos/freertos_8.2.3/Source/croutine.c:70:
/home/lbogdanov/workspaces/kinetis_workspace/MKW41Z_ConnSw_1.0.2/boards/frdmkw41z/wireless_examples/bluetooth/wireless_uart/FreeRTOS/kds/../../../../../../../rtos/freertos_8.2.3/Source/include/portable.h:94:24: fatal error: portmacro.h: No such file or directory
  #include "portmacro.h"
                        ^
compilation terminated.
Building file: /home/..../workspaces/kinetis_workspace/MKW41Z_ConnSw_1.0.2/rtos/freertos_8.2.3/Source/portable/MemMang/heap_1.c
make: *** [freertos/croutine.o] Error 1

==================================================================================

 

To solve it, do this:

1. Right click the project -> Properties -> C/C++ Build -> Settings -> Cross ARM C Compiler -> Include paths ->

 

select "${ProjDirPath}/../../../../../../../rtos/freertos_8.2.3/Source/portable/gcc/ARM_CM0"

 

and click edit -> change it to :

 

"${ProjDirPath}/../../../../../../../rtos/freertos_8.2.3/Source/portable/GCC/ARM_CM0"

 

2. Right click the project -> Properties -> Resource -> Linked Resources -> Linked Resources tab -> you will see "Invalid location" section ->

 

select: PROJECT_LOC/../../../../../../../rtos/freertos_8.2.3/Source/portable/gcc/ARM_CM0/port.c
and change it to PROJECT_LOC/../../../../../../../rtos/freertos_8.2.3/Source/portable/GCC/ARM_CM0/port.c

 

select: PROJECT_LOC/../../../../../../../rtos/freertos_8.2.3/Source/portable/gcc/ARM_CM0/portmacro.h
and change it to PROJECT_LOC/../../../../../../../rtos/freertos_8.2.3/Source/portable/GCC/ARM_CM0/portmacro.h

 

Press OK to close the window. Now your project should build correctly.

 

Unfortunately you cannot debug two Freedom Boards KW41Z at the same time in KDS as on Windows yet.

 

OS used: Ubuntu 14.04.4 (64-bit)

Outcomes