Sigtrap on reading gpio state

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Sigtrap on reading gpio state

952件の閲覧回数
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 返信

929件の閲覧回数
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 件の賞賛
返信