RTC problems running on target board

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

RTC problems running on target board

跳至解决方案
1,649 次查看
ERussell
Contributor IV

I'm not sure which forum this should be addressed to but I'll start here. I'm running CW10.1 with MQX and PE using a Kinetis k60 processor. I have run programs on the twrk60n512 board just fine but now have my own target board which still uses the k60 processor. I created new bsp and psp projects which have been built. I am trying to run on the new board but am running into problems with what seems to be an RTC issue.

 

If I include an RTC component using PE, then program gets as far as the routine _pe_initialize_hardware in the cpu.c file. As soon as the RTC is enabled in the statement: SIM_SCGC6 |= 0x20000000, the program goes to the kernel interrupt handler.

 

If I don't include an RTC component in the bsp using PE, then the program makes it to line 111 in the _rtc_init routine in the file krtc.c before ending up in the kernel interrupt routine. If the program is allowed to continue from the interrupt  and then paused, the program is found in the _pend_svc routine of the dispatch.s file in the section with the label "no_one_to_run".

 

Any suggestions as to how I can resolve this issue?

 

Thanks.

0 项奖励
回复
1 解答
1,384 次查看
ERussell
Contributor IV

This has been solved. I neglected to apply power to the VBAT pin.

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,385 次查看
ERussell
Contributor IV

This has been solved. I neglected to apply power to the VBAT pin.

0 项奖励
回复