tried:
new project, added ksdk_platform_lib.a to the linker path.
added (manually) all the KSDK/platform files (only the .h) putting all in the same folder ( Hal and Driver), so the includes are less. In the C and C++ compiler settings I added all the necessary path but when i compile cpp files a get an error like this:
In file included from C:\Users\jack\Dropbox\MBD\Progetti\TwingTec\Firmware\workspace\firmware\Sources\Includes\Hal/fsl_pit_hal.h:33:0,
from C:\Users\jack\Dropbox\MBD\Progetti\TwingTec\Firmware\workspace\firmware\Sources\Init/Cpu.h:82,
from C:\Users\jack\Dropbox\MBD\Progetti\TwingTec\Firmware\workspace\firmware\Sources\Init/UART3.h:69,
from ../Sources/SBUS.h:24,
from ../Sources/Futaba_sbus/FUTABA_SBUS.h:4,
from ../Sources/Futaba_sbus/FUTABA_SBUS.cpp:1:
C:\Users\jack\Dropbox\MBD\Progetti\TwingTec\Firmware\workspace\firmware\Sources\Includes\Hal/fsl_pit_hal.h: In function 'bool PIT_HAL_GetIntCmd(uint32_t, uint32_t)':
C:\Users\jack\Dropbox\MBD\Progetti\TwingTec\Firmware\workspace\firmware\Sources\Includes\Hal/fsl_pit_hal.h:287:22: error: 'FSL_FEATURE_PIT_TIMER_COUNT' was not declared in this scope
assert(channel < FSL_FEATURE_PIT_TIMER_COUNT);
so it seems that it can't find the FSL_FEATURE_PIT_TIMER_COUNT #define that is in fsl_pit_features.h THAT IS IN SAME DIRECTORY AS fsl_pit_hal.h.
Any ideas?