Application doesn.t run on FRDM-K22F

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

Application doesn.t run on FRDM-K22F

422 Views
Stachu
Contributor I

Hi,

I use KDS 3.2.0 and FRDM-K22F. I create a new project and choose board
FRDM-K22F. Now I add to the project 3 BitIO components, set them as outputs
with initial value '1' and select required pins to control RGB LEDs.
Then, I generate Processor Expert code, compile it and flash the device.
Everything is OK, when I press the reset button, LEDs are ON and when I release
it LEDs go OFF. Everything as expected.

Now, I create a new project and choose processor instead of board (MK22FN512VLH12)
and I treate the board as my own custom project. I select maximal clock frequencys
(core 120MHz) and all the rest I do exactly as above. Unfortunately LEDs are always ON.

What am I missing?

0 Kudos
Reply
2 Replies

412 Views
ErichStyger
Specialist I

Have you looked into it with the debugger and checked that way that the program does what you want?

0 Kudos
Reply

396 Views
Stachu
Contributor I

Hi Erich,

No, I didn't . There is no single line of my own code. In both cases there is only Processor Expert code.

int main(void)
{
PE_low_level_init();
#ifdef PEX_RTOS_START
PEX_RTOS_START();
#endif
for(;;){}
}

Rgds, Stachu

 

0 Kudos
Reply