FRDM-K64Z QSP examples

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

FRDM-K64Z QSP examples

Jump to solution
4,979 Views
shauldorf
Contributor V

Where I can fined FRDM-K64Z QSP examples source (Not precompiled files).

0 Kudos
1 Solution
4,285 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

hi

there is no FRDM-K64Z but only FRDM-K64F

you can get source code from KDSK install folder

C:\Freescale\KSDK_1.2.0\examples\frdmk64f\demo_apps

pastedImage_1.png

here is KSDK 1.2.0 download link:

Software Development Kit for Kinetis MCUs|Freescale

does this answer your question?


Have a great day,
Zhang Jun

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

12 Replies
4,285 Views
shauldorf
Contributor V

Thanks Jun

I assume that you understand that KDS is new to me.

Your attached doc is helpful it and was needed to me month
ago when I started KDS.

I’m using Freescale docs and a lot of Erich “MCU on Eclipse”
I’m wasting a lot of time doing “Googling” search.

My recommendation is to prepare for unexperienced users like
me a document with collection of: How to manuals, Demos, Application notes … etc.
It will include abstract for each item and location where to find it.

My problem now is to use OpenOSD (onFRDM-K64Z board) as a UART
with RX from keyboard and TX to console (not semihosting).

I want it with Processor Expert and KSDK , I thought that “shell_test”
demo in QSP is good place to start.

Do you have other solution?

Have a nice day,

Shaul

0 Kudos
4,285 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

can you please check if this document can help you.

How to use printf() to print string to Console and UART in KDS

If this post answers your question, please click the Correct Answer button. Thank you!


Have a great day,
Zhang Jun

0 Kudos
4,285 Views
shauldorf
Contributor V

Yes I’m familiar with this post.

Alice solve two TX options:

  1. Debugger semihostig (paragraph #1). In this paragraph she needs to use Erich recommendation and modify link
    configuration.
  2. printf to Terminal (paragraph #2).

In my opinion what is missing in this post is the RX option  (reception from keyboard).

Based on RX user will have a possibility to selected different activities.

May be this is the best way to solve my problem but I don’t know how to do this

Thanks

Shaul

0 Kudos
4,285 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

I think this link should include the answer you need.

Hi, I am trying to use Scanf() in a Processor Expert project, and the function return nothing. Does ...

If this post answers your question, please click the Correct Answer button. Thank you!

Have a great day,
Zhang Jun

0 Kudos
4,285 Views
shauldorf
Contributor V

Sorry this link doesn’t help.

Different board (Tower TWR-60) & different tool chain (CW)

The first printf( “ ***** Test ******\n”) to TeraTerm

Then gets(str) does’t work and OpenOCD lose control

0 Kudos
4,285 Views
EarlOrlando
Senior Contributor II

Hello,

Maybe this post could help you Writing my first KSDK Application in KDS - Hello World and GPIO Interrupt, it explains how to create a baremetal project from scratch that uses the printf function.

Best regards,

Earl.

0 Kudos
4,285 Views
shauldorf
Contributor V

Hello and thanks;

I’m interest in keyboard reading.

Without input instruction the demo runs O.K

The program crash executing read a string or char like gets(str)

And I don’t know why.

So it doesn’t solve my problem

B.R

Shaul

0 Kudos
4,285 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

hi

please check if this answers your questions:

printf() and scanf() with GNU ARM Libraries | MCU on Eclipse
Have a great day,
Zhang Jun

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
4,285 Views
shauldorf
Contributor V

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

0 Kudos
4,286 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

hi

there is no FRDM-K64Z but only FRDM-K64F

you can get source code from KDSK install folder

C:\Freescale\KSDK_1.2.0\examples\frdmk64f\demo_apps

pastedImage_1.png

here is KSDK 1.2.0 download link:

Software Development Kit for Kinetis MCUs|Freescale

does this answer your question?


Have a great day,
Zhang Jun

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

4,285 Views
shauldorf
Contributor V

Thanks;

Strange in my installation I have only fourteen examples and in yours there are sixteen.

I’m specially interest in UART implementation with RX and TX implementations something equivalent to “shell_test” demo in QSP.

I prefer to have it implemented with KDS3.0 with KSDK1.2 , I don’t want to deal with tool versions compatibilities.

Tanks again

Shaul Dorf

0 Kudos
4,285 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

hi

yours screenshot is correct.  the redundant her_hello_world and my_hello_word is were created by myself for testing purpose.

I also recommend you this document regarding KDS v3.0 and and KSDK v1.2.0 customized project.

How to start customized KSDK project based on KSDK demo code

can this help you?


Have a great day,
Zhang Jun

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos