Cannot check my output on tera term for FRDM-K64F

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Cannot check my output on tera term for FRDM-K64F

Jump to solution
2,446 Views
kirantujare
Contributor IV

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

Labels (1)
0 Kudos
1 Solution
1,615 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Kiran,

If you want use the printf function of KSDK , the name is "debug_printf", "debug_scanf":

pastedImage_0.png

please be careful that in the function of "debug_scanf" , the IO_MAXLINE is 20

pastedImage_1.png

pastedImage_2.png

you can refer to your demand to change it .

I also attached my project .

pastedImage_0.png

BR

Alice

View solution in original post

0 Kudos
13 Replies
1,615 Views
kirantujare
Contributor IV

Hi Alice,
My program is working on teraterm but I cannot see the scanf values I enter. It does the calculation correctly though. Also the teraterm out is spaced. Can you provide some solution for it? I have attached how my output looks on tera term

0 Kudos
1,616 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Kiran,

If you want use the printf function of KSDK , the name is "debug_printf", "debug_scanf":

pastedImage_0.png

please be careful that in the function of "debug_scanf" , the IO_MAXLINE is 20

pastedImage_1.png

pastedImage_2.png

you can refer to your demand to change it .

I also attached my project .

pastedImage_0.png

BR

Alice

0 Kudos
1,615 Views
kirantujare
Contributor IV

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?

DMA and PIT for FRDM K64F board

0 Kudos
1,615 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Kiran,

My colleague have checked your question , he will reply to you .

Have a nice day !

Alice

0 Kudos
1,615 Views
kirantujare
Contributor IV

Hi Alice,
I haven't heard back from your colleague. Is there any way you could help. I have attached my code below. I want to output DAC at different frequencies based on the user input. Is it possible ?

0 Kudos
1,615 Views
kirantujare
Contributor IV

Thank you Alice. The solution works :smileyhappy:

0 Kudos
1,615 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

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

0 Kudos
1,615 Views
kirantujare
Contributor IV

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

0 Kudos
1,615 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

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"

pastedImage_0.png

pastedImage_0.png

Alice

0 Kudos
1,615 Views
kirantujare
Contributor IV

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();

0 Kudos
1,615 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

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

0 Kudos
1,615 Views
kirantujare
Contributor IV

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.

0 Kudos
1,615 Views
kirantujare
Contributor IV

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.

0 Kudos