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?
Hello Jace Walton
Can you share your steps to flash code in K22 freedom board?
Thanks & regards
Harsh
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
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
Screen Shot of the console
Hello Jace,
- About the debug mode , please check the Device Manager->Ports:
Then choose the corresponding debug mode on KDS:
- 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
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.
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
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?
Hi Jace,
There are gpio demo under KSDKv2.0, please refer to it :
Have a great day,
Alice Yang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Board:
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
that I need
(before you begin 1.3)
I downloaded
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
I'll give more info next time thanks
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