在线时间2220 小时
UID3253523
注册时间2016-3-21
NXP金币2856
该用户从未签到
超级版主
 
- 积分
- 24866
- 最后登录
- 2025-7-18
|
发表于 2016-6-3 15:52:04
|
显示全部楼层
楼主,你好!
我测了,我把TRK的烧录固件换的也是JLINK的,我用你工程,断电之后是能工作的。
我改了下你main函数,为了能看出效果:
int main(void)
{
int counter = 0;
unsigned int i,j;
Clk_Init(); /* Configure clocks to run at 20 Mhz,TRK board does not include XTAL */
GPIO_Init(); /* Configure button pins as inputs and LED pins as outputs */
// KBI_Init(); /* Initialize KBI module */
// KBI_SetCallback(KBI_Interrupt); /* Set the KBI callback function to be called on each button press */
//NVIC_EnableIRQ(KBI1_IRQn); /* Enable KBI1 Interrupts */
for(;;) {
for(j=0;j<65535;j++);
LED4_ON;
LED5_ON;
for(j=0;j<65535;j++);
LED4_OFF;
LED5_OFF;
}
}
然后编译之后,下载,reset,PTB3翻转,断电,上电,PTB3还是翻转,所以程序是工作的。
不知道你的JLINK是否是正版的,你要不生成hex,用Jflash烧进去试试。 |
|