What is 'getPC()'

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

What is 'getPC()'

865 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by khfreiberg on Fri Oct 26 12:28:16 MST 2012
Hi all,
I found this call in the dualcore example for the new Keil board.

extern uint32_t getPC(void);

/**
* FIXME: Keil M0 startup code bug!
* This is not required for other compilers.
**/
getPC();

But since I can not build due to missing files I wasn't able to find the code behind this call. Even UltraEdits 'searchInFiles' could not locate it. I assume it returns the program counter of the M0.
Does anybody know something about this call or the bug?
标签 (1)
0 项奖励
回复
2 回复数

835 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by khfreiberg on Mon Oct 29 16:08:23 MST 2012
Thanks,
that's why, I searched in .c and .h only.
I'll try if it fixes our problems.
0 项奖励
回复

835 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by NXP_Paul on Mon Oct 29 14:56:08 MST 2012
Hello
I don't know about the bug, but the getPC function is defined in the startup_LPC43xx_M0.s and startup_LPC43xx.s files in the Keil dual core example:

                AREA    |.text|,CODE, READONLY
getPC           PROC
                EXPORT  getPC

                MOV     R0,LR
                BX      LR

                ENDP
0 项奖励
回复