Hello guys, I've just started using Kinetis SDK.
I downloaded SDK_2.1_FRDM-KL25Z folder from kex.nxp.com
I created a new project using
File -> Kinetis SDK 2.x Project
However while creating project I was never asked what compiler should be used nor is it C or C++ project.
In the source folder there is a following code:
[code]
#include <string.h>
#include "board.h"
#include "pin_mux.h"
#include "clock_config.h"
/*#include "fsl_debug_console.h"*/
/* FreeRTOS kernel includes. */
#include "FreeRTOS.h"
#include "task.h"
#include "queue.h"
#include "timers.h"
/* Task priorities. */
#define hello_task_PRIORITY (configMAX_PRIORITIES - 1)
/*!
* @brief Task responsible for printing of "Hello world." message.
*/
static void hello_task(void *pvParameters) {
for (;;) {
/*PRINTF("Hello world.\r\n");*/
/* Add your code here */
vTaskSuspend(NULL);
}
}
/*!
* @brief Application entry point.
*/
int main(void) {
/* Init board hardware. */
BOARD_InitPins();
BOARD_BootClockRUN();
BOARD_InitDebugConsole();
/* Add your code here */
/* Create RTOS task */
xTaskCreate(hello_task, "Hello_task", configMINIMAL_STACK_SIZE, NULL, hello_task_PRIORITY, NULL);
vTaskStartScheduler();
for(;;) { /* Infinite loop to avoid leaving the main function */
__asm("NOP"); /* something to use as a breakpoint stop while looping */
}
}
[/code]
After trying the build the project from
Project -> Build all I get the following error (in the picture attached)
Also If I try to run the program it says that 'Binary could not be found'
I am really not familiar with eclipse so if someone could help me I am stuck with googleing whole day this problem.
Big thanks!
The error I get following your steps: Binary not found
Hi fsa saf,
I suppose the question is related to KDS - there is separate community for the tool: https://community.nxp.com/community/kinetis/kinetis-design-studio
To answer your question:
Compiler is used based on the file extension - *.c files are compiled using C compiler and *.cpp files are compiled using CPP compiler.
Regards
Marek
I followed your steps:
Also regarding link you provided I am getting the following message:
This place or content does not exist or access to it is restricted. If you think this is a mistake, please contact your administrator or the person who directed you here.