HardFault problem in KDS using K22F

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

HardFault problem in KDS using K22F

523 Views
jacewalton
Contributor III

How do i get code to run on my mk22f?

on 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

173310_173310.pngpastedImage_1.png

At that point I can no longer step through the code when I halt (pause) the code I am taken to this line.

173311_173311.pngpastedImage_2.png

What is a HardFault, is this why my code won't run? or is there something else causing this?

attached is a zip of my project incase that is needed.

 

My steps were.

Import bubble project

Clean all

Build Project (Debug)

Debug Project as JEGGER J-Link

Step over function. 

HardFault.

 

Ideas?

Original Attachment has been moved to: bubble.zip

Labels (1)
0 Kudos
1 Reply

259 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello ,

 I just test on FRDM-K22 jlink bootloader  about the Bubble demo, it can work well.

- Please change a new work KDS work space or delete the .metadata fold under your current work space,

then have a new test .

- If it still can not work well , please create a bare board simple project, without KDSK, check whether

it can work well .

BR

Alice

0 Kudos