Sigtrap on reading gpio state

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

Sigtrap on reading gpio state

963 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Croman13n3c on Fri Nov 30 04:13:33 MST 2012
I am trying read state of 29 pin on PORT4 (lpc1756,for detect sd card present)

When start firmware with inserted card - ok, then if i eject card - ok. But when i insert card back, generating sigtrap and programm stop.

SDPresent = LPC_GPIO4->FIOPIN&(1<<29);

GPIO init :

PINSEL_CFG_Type PinCfg ;
PinCfg.Funcnum   = PINSEL_FUNC_0;
PinCfg.OpenDrain = PINSEL_PINMODE_NORMAL;
PinCfg.Pinmode   = PINSEL_PINMODE_PULLUP;
PinCfg.Pinnum    = 29;
PinCfg.Portnum   = 4;
PINSEL_ConfigPin(&PinCfg);
标签 (1)
0 项奖励
回复
1 回复

940 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Croman13n3c on Mon Dec 10 05:09:52 MST 2012
Error was in hardware  - long line on power bus to the SD-card.This caused reset the processor.
0 项奖励
回复