Application doesn.t run on FRDM-K22F

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Application doesn.t run on FRDM-K22F

886 次查看
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 项奖励
回复
2 回复数

876 次查看
ErichStyger
Specialist I

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

0 项奖励
回复

860 次查看
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 项奖励
回复