I compiled my code on KDS for FRDM-K64F. I got the elf file but I am not getting the output on tera term. I have set the baud rate=115200, data bits=8, no parity bits and 1 stop bit. Also the size of the .elf is 1.98mb. I would appreciate if someone could help me
Solved! Go to Solution.
Hello Kiran,
If you want use the printf function of KSDK , the name is "debug_printf", "debug_scanf":
please be careful that in the function of "debug_scanf" , the IO_MAXLINE is 20
you can refer to your demand to change it .
I also attached my project .
BR
Alice
Hi Alice,
I am working on a frequency generator project.
I wanted to direct you to this link. Please let me know if you can help?
Hello Kiran,
My colleague have checked your question , he will reply to you .
Have a nice day !
Alice
Thank you Alice. The solution works :smileyhappy:
Hello Kiran,
- Please be sue which UART you used , check the SCH and your code .
- What about your project ? Bare board project ? PE project ? KSDK ? You'd better send it to me .
- And you can also first find one demo project to test .
Hope it helps
Alice
Hi Alice,
I missed to add some files and paths.
Now, I have "MK64F12/include/MK64F12.h: No such file or directory" error.
Please let me know if you have any solution?
Thank you,
Kiran
Hello Kiran,
Please tell me the version of KDS, and also the KSDK version , KSDK1.2 OR ksdk 1.3 ?
Then please send file you changed , the method is click the "Actions" button , then click "Edit" ,
then you can find the "attach"
Alice
Hello Alice,
I am using KDS Version: 3.2.0 and KSDK 1.3.
Also, now I am getting new issues with the debug
I build the project and after debugging I get the following:
No source available for "(gdb[1].proc[42000].threadGroup[i1],gdb[1].proc[42000].OSthread[1]).thread[1].frame[0]"
No source available for "0x3848"
No source available for "0x2592"
The address keeps changing. I also get the following warning on the console:
Warning: the current language does not match this frame.
Temporary breakpoint 2, main () at ../Sources/main.c:65
65 PE_low_level_init();
Hello Kiran,
Are you sure this main.c file you send to me is changed under the KSDK demo ?
I think no , for the header files you include in the main.c file are some header file the PE
generate . So i have some confused.
If you want use the KSDK+PE create one project , please create one new project.
And you can also describe your project in detail , then we can find the problem sooner.
BR
Alice
Hi Alice,
I was confused with the use of PE. I tried a simple "Hello World" program with PE, it worked. I cannot make scanf work on tera term. My project is to design a frequency generator(pattern generator with 1 and 0 bits) for crank and cam. Is it possible to run my code with KSDK+PE. I have attached my original C code below.
Hello Alice,
Thank you for replying. It is a Kinetis SDK 1.x project.
I tried to run the demo code for "Hello World!" and it worked fine.
I copied 750 lines of my C code in main.c file. I was wondering if it is the size.
How can I send you the code? Is there a way to send a file?
I'm new to this and would appreciate any help.