Programming the MK22fX512 board

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

Programming the MK22fX512 board

1,298 Views
jacewalton
Contributor III

I have Kinetis design studio and I can build example projects but I cannot run them. I get no errors in the console but the program just wont run. what do I do?

Is there some extra software package that I am missing?

I have the SDK's : 1.03 and SDK_v2

How do I get started?

Labels (1)
0 Kudos
11 Replies

849 Views
harshpatel
Contributor IV

Hello Jace Walton

Can you share your steps to flash code in K22 freedom board? 

Thanks & regards

Harsh

0 Kudos

849 Views
jacewalton
Contributor III

My steps were.

Import bubble project

Clean all

Build Project (Debug)

Debug Project as JEGGER J-Link

Step over function. 

HardFault.

Windows 7

using Jlink bootloader. (Have used PE Micro with same results)

Kenitis Development Studio v3.2.0. (have also Tried IAR and mbed same result)

SDK: SDK_2.1_FRDM-K22F

 

I am using the demo projects located at. 

C:\Freescale\SDK_2.1_FRDM-K22F\boards\frdmk22f\demo_apps

 

The projects will build and download. I can enter the debugger and step through the code but, the functionality of the projects does not show, meaning that Bubble demo does not show red or blue LED's when the board is tilted. also the Hello world program does not blink LED's or show anything on the terminal. 

During the running of the bubble demo I can step through the code to the highlighted line

0 Kudos

849 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Jace,

- I test the Bubble demo on KDS3.2 , use the Jlink bootloader, it can work well.

Please check the attachment .

If your board still can not work well ,please also take a video about how to debug on your side.

- Plea pay attention that ,  after download the project into board, please click the Run button on

KDS, or press once the Reset button on board.

- You can also create a simple project to configure the  LED pin , then use a detector to check

whether the haredware has no problem.

Hope it helps

Alice

0 Kudos

849 Views
jacewalton
Contributor III

Screen Shot of the console

pastedImage_1.png

0 Kudos

849 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Jace,

- About the debug mode , please check the Device Manager->Ports:

pastedImage_1.png

Then choose the corresponding debug mode on KDS:

pastedImage_2.png

- About the KSDKv1.3 and KSDK v2.0 , i recommend you use the latest version of KSDKv2.0 .

It easy to use , after you download it , just need import it into KDS, then build , download .

Using Kinetis Design Studio v3.x with Kinetis SDK v2.0 

- From the console view, it seems you have not download project to your chip .

Please refer to the "Kinetis Design Studio V3.0.0- User's Guide Document Number: KDSUG ",

->  2.5 Debugging Projects

BR

Alice

0 Kudos

849 Views
jacewalton
Contributor III

Thanks Alice, I got the SDK figure out but how do I control the digital ports. 

Digital read and wright. as well as Analog Read.

0 Kudos

849 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Jace,

Sorry i'm not very clearly you said by the last time . Do you meaning use the ADC or DAC module ?

Could you please take a screenshot about it and describe it in detail ?

BR

Alice

0 Kudos

849 Views
jacewalton
Contributor III

How do I control the digital ports is what I am asking.

How do I set PTE0 and PTE1 to high or low?

how do I control the digital pins for the code?

0 Kudos

849 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi Jace,

There are gpio demo under KSDKv2.0, please refer to it :

pastedImage_1.png


Have a great day,
Alice Yang

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

0 Kudos

849 Views
jacewalton
Contributor III

Board:

FRDM-K22F

IDE:

Kinetis Design studio

Debugger:

Not completely sure I think I have tried OpenOCD and SEGGER J-Link.

Code:

is a demo app

located in C:\Freescale\KSDK_1.3.0\examples\frdmk22f\demo_apps\bubble_level_ftm

I read in this PDF

https://community.nxp.com/servlet/JiveServlet/download/474295-1-286623/Writing%20my%20first%20KSDK%2... 

that I need 

‘Eclipse Update for KSDK 1.1.0-GA’ and ‘Processor Expert for KDS’

(before you begin 1.3)

I downloaded 

KSDK-FRDM-K22F (REV 2.0) from this link

Software Center 

but when i tried to add it through the software adder on KDS, it told me that there is not code in the file 

i am following the instructions in this PDF

https://community.nxp.com/servlet/JiveServlet/download/474295-1-286623/Writing%20my%20first%20KSDK%2... 

I'll give more info next time thanks

0 Kudos

849 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Jace,

Could you please describe your question more detail?

How do you know it can not run ? What about your project , its a demo or your own project ?

And what the console view shows? take a screenshot  share it .

BR

Alice

0 Kudos