GPIO Interrupts / Cortex M0 in LPCXpresso V6?

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

GPIO Interrupts / Cortex M0 in LPCXpresso V6?

687 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CMChorey on Fri Jan 31 18:51:16 MST 2014
I have recently installed Xpresso V6.1.2, previously I was using X4.2.2.  I am using the LPC1114 Xpresso Eval / Dev board (with LPC-Link).

I am having problems with Interrupts from GPIO's, ... basically very simple code that runs perfectly well under V4.2.2 (i.e. toggle a LED on interrupt from a Button Press) does not work in V6.1.2.  In V6.1.2 I can see that the interrupt is being handled by the default handler and not by my PIOINT2_IRQHandler. 

I also tried one of the Examples provided with the LPC1114 SW package, (called 'extint') and it has the same problem, ... runs fine in V4.2.2. does not works correctly in V6.1.2

In both cases I am using exactly the same CMSISV2.0 files and definitions in both versions of Xpresso.

Any ideas or hints? 
0 项奖励
回复
1 回复

612 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Mon Feb 03 02:07:24 MST 2014
So if the interrupt is not being handled by the correct exception handler, it sounds like it is probably an issue with your startup code. If you check the map file generated by your link step - what is actually getting linked in?

Note that you might want to take a look at the LPCOpen examples for the LPC11 family…
http://www.lpcware.com/content/nxpfile/lpcopen-software-development-platform-lpc11xx-packages-0
[The download for the LPCXpresso LPC11C24 board is the one you need.]

Regards,
LPCXpresso Support
0 项奖励
回复