Hello Zhang;
Thanks
Yes I’m familiar to Erich excellent posts.
This is exactly what I want to implement.
Especially with this post and my little experience I have seen problems that I can’t explain to myself.
I have to two main difficulties: one is test program and the second is project building with the tools.
Test program
The #include definition in the Test program are not clear to me:
#include "Application.h" // ?
#include
void APP_Run(void) {
int value;
char buffer[64];
for(;;) {
printf("Hello world!\r\n");
printf("Please enter a name:\n\r");
scanf("%s", buffer);
printf(" I have received: '%s'\r\n", buffer);
printf("Please enter a number:\r\n");
scanf("%i", &value);
printf(" I have received: '%i'\r\n", value);
}
}
Project Generation:
The post refers to KDS beta tools, I’m using KDS3.0, I do not know if my problems associate them to tools or I’m doing something wrong.
My assumption is that the project is generated with PE enabled and without KSDK?
Using FRDM-K64F Device is selected from Board option, but only 1200 baud is accepted.
Using FRDM-KL25Z Device has to be selected from Processor option (why)?
In generated code I don’t see bugs that are mentioned in the post
I don’t know if the bugs in “generated code” still exist in the new tools version?
After this long story I think that the Test issue is my main problem.
I wrote simple printf and scanf test. I start debug using PEmicro.
The step by step printf is outputting to console, but scanf failed and I don’t know where is the debugger.
B.R
Shaul