TWR-K20D50 run only in debugging mode and not standalone

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

TWR-K20D50 run only in debugging mode and not standalone

跳至解决方案
1,072 次查看
dominikfallmann
Contributor II

Hallo,

I am using a TWR-K20D50 board, I am programming with Segger j-link and use Kinetis Design Studio 3.1.0.

After flashing the program on the controller of the TWR-K20D50 board, the TWR-K20D50 board do not start to run. Pressing the reset-button does not help. If I click step per step through the program at the debug perspective I can see that the board works well, but not standalone. I have connect the board all the time with power at connector J12 "Power/OSJTAG Mini-AB USB Connector".

Do I have set an option to run the board in a standalone mode after flashing with j-link?

标签 (1)
0 项奖励
回复
1 解答
989 次查看
BlackNight
NXP Employee
NXP Employee

Hi Dominik,

I have seen cases where semihosting was the problem. If you are using semihosting (e.g. printf()), then it will stall the board if no debug session is active.

Erich

在原帖中查看解决方案

0 项奖励
回复
2 回复数
989 次查看
dominikfallmann
Contributor II

Cpu_ivINT_PIT1_img0.jpg

I can see that it stopped at an interrupt. If I do not use the PIT and I use a "for loop" to wait a time then the board can run standalone. I do not understand why it stopped.

0 项奖励
回复
990 次查看
BlackNight
NXP Employee
NXP Employee

Hi Dominik,

I have seen cases where semihosting was the problem. If you are using semihosting (e.g. printf()), then it will stall the board if no debug session is active.

Erich

0 项奖励
回复