Hi,
We are currently using Kinetis SDK with FreeRTOS on a TWR-K64F120. We have separated the SDK folders in order to use it with
GIT, because we don´t want to check in to much to the server.
Taken from our *.cproject file, these are the include paths:
¨
<listOptionValue builtIn="false" value=""../Source/HWLayer/Includes""/> <listOptionValue builtIn="false" value=""../Source/HWLayer/Includes/device""/> <listOptionValue builtIn="false" value=""../Source/HWLayer/Project_Settings/Startup_Code""/> <listOptionValue builtIn="false" value=""../Source/AppLayer/Sources""/> <listOptionValue builtIn="false" value=""../Source/AppLayer/Sources/include""/> <listOptionValue builtIn="false" value=""../Libraries/lwip""/> <listOptionValue builtIn="false" value=""../Libraries/lwip/port""/> <listOptionValue builtIn="false" value=""../Libraries/lwip/port/arch""/> <listOptionValue builtIn="false" value=""../Libraries/lwip/src""/> <listOptionValue builtIn="false" value=""../Libraries/lwip/src/include""/> <listOptionValue builtIn="false" value=""../Libraries/lwip/src/include/ipv4""/> <listOptionValue builtIn="false" value=""../Libraries/lwip/src/include/ipv4/lwip""/> <listOptionValue builtIn="false" value=""../Libraries/lwip/src/include/ipv6""/> <listOptionValue builtIn="false" value=""../Libraries/lwip/src/include/ipv6/lwip""/> <listOptionValue builtIn="false" value=""../Libraries/lwip/src/include/lwip""/> <listOptionValue builtIn="false" value=""../Libraries/lwip/src/include/netif""/> <listOptionValue builtIn="false" value=""../Libraries/lwip/src/include/posix""/> <listOptionValue builtIn="false" value=""../Libraries/FreeRTOS""/> <listOptionValue builtIn="false" value=""../Libraries/FreeRTOS/Source/portable/GCC/K64F12""/> <listOptionValue builtIn="false" value=""../Libraries/FreeRTOS/Source/include""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/CMSIS""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/CMSIS/Include""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/drivers/adc""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/drivers/adc/common""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/drivers/enet""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/drivers/enet/common""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/drivers/enet/src""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/drivers/gpio""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/drivers/gpio/common""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/drivers/gpio/src""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/drivers/i2c""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/drivers/i2c/i2c_slave""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/drivers/i2c/i2c_master""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/drivers/i2c/common""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/drivers/pit""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/drivers/pit/common""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/drivers/uart""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/drivers/uart/common""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/drivers/uart/src""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/drivers/wdog""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/drivers/wdog/common""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/hal/adc""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/hal/enet""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/hal/gpio""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/hal/i2c""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/hal/mcg""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/hal/pit""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/hal/port""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/hal/sim""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/hal/uart""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/hal/wdog""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/osa""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/osa/src""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/phyksz8041""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/system/clock""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/system/hwtimer""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/system/interrupt""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/twrk64f120m""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/utilities""/> <listOptionValue builtIn="false" value=""../Libraries/KSDK/utilities/src""/> <listOptionValue builtIn="false" value=""${KSDK_PATH}/platform/osa""/>
When we try to remove the last path, the RTOS stops to work. It seems that the Kinetis SDK includes something more than just the files.
We copied the osa-folder to our project. No modification are made. The files are binary the same.
The line we replace are: "${KSDK_PATH}/platform/osa"
We replace it with: "../Libraries/KSDK/osa/", which is the path to where we copied the folder.
Is this a bug to the SDK, to Kinetis Design Studio or is it some setting that we need to do in the project file?
Best regards,
Anders
Hi Anders,
In kds, use SDK need fix environment variable fellow below :
And whether nee do like this in your platform ?
Hope it helps
Alice
I tried to change the PATH and now it seems to work with a custom folder.
However, im not sure that it was the cause of the problem since I changed back the KSDK_PATH variable, and now it is working with a custom folder for the KSDK.