I am attempting to configure 7 GPIO pins as outputs but bits 0,1, and 3 of GPIO port G do not respond. Others, including bit 2 of port G do. I've verified wiring and switched Concerto boards but no difference.I am using GPIOPinConfigurationCoreSelect for all and tried adding the dir command as well. I am configuring most IO to be controlled by the CM3. Is that a problem??
Here is my configuration data:
// a0 and a2 used for PWM on concerto
GPIOPinConfigureCoreSelect(GPIO_PORTA_BASE, 0x05, GPIO_PIN_C_CORE_SELECT);
//bits b1 and 4 for ECAP and OPAEN on concerto
GPIOPinConfigureCoreSelect(GPIO_PORTB_BASE, 0x12, GPIO_PIN_C_CORE_SELECT);
// bits 4-7 only avail on plc module
GPIOPinConfigureCoreSelect(GPIO_PORTC_BASE, 0x0F, GPIO_PIN_C_CORE_SELECT);
// bits 4-7 for PGA control on plc module
GPIOPinConfigureCoreSelect(GPIO_PORTD_BASE, 0xF0, GPIO_PIN_C_CORE_SELECT);
// e4 and e5 for uart on plc module
GPIOPinConfigureCoreSelect(GPIO_PORTE_BASE, 0x00, GPIO_PIN_C_CORE_SELECT);
// f0 and f1 serial eeprom, f2 is PLCD_LED5
GPIOPinConfigureCoreSelect(GPIO_PORTF_BASE, 0x03, GPIO_PIN_C_CORE_SELECT);
// g0-7 avail for CM3
GPIODirModeSet(GPIO_PORTG_BASE,0xff,GPIO_DIR_MODE_OUT);
GPIOPinConfigureCoreSelect(GPIO_PORTG_BASE, 0x00, GPIO_PIN_C_CORE_SELECT);
// GPIODirModeSet(GPIO_PORTG_BASE,0xff,GPIO_DIR_MODE_OUT);
// h3 is PLCD_LED4 for C28
GPIOPinConfigureCoreSelect(GPIO_PORTH_BASE, 0x08, GPIO_PIN_C_CORE_SELECT);
// j0-7 avail for CM3
GPIOPinConfigureCoreSelect(GPIO_PORTJ_BASE, 0x00, GPIO_PIN_C_CORE_SELECT);
// channel 2 Aux relays bits 0 - 7
// AUX 0
GPIOPinTypeGPIOOutput(GPIO_PORTG_BASE,GPIO_PIN_0);
GPIOPinWrite(GPIO_PORTG_BASE,GPIO_PIN_0,~0);
// 1
GPIOPinTypeGPIOOutput(GPIO_PORTG_BASE,GPIO_PIN_1);
GPIOPinWrite(GPIO_PORTG_BASE,GPIO_PIN_1,~0);
// 2
GPIOPinTypeGPIOOutput(GPIO_PORTG_BASE,GPIO_PIN_2);
GPIOPinWrite(GPIO_PORTG_BASE,GPIO_PIN_2,~0);
// 3
GPIOPinTypeGPIOOutput(GPIO_PORTG_BASE,GPIO_PIN_3);
GPIOPinWrite(GPIO_PORTG_BASE,GPIO_PIN_3,~0);
// 4
GPIOPinTypeGPIOOutput(GPIO_PORTB_BASE,GPIO_PIN_3);
GPIOPinWrite(GPIO_PORTB_BASE,GPIO_PIN_3,~0);
// 5
GPIOPinTypeGPIOOutput(GPIO_PORTB_BASE,GPIO_PIN_5);
GPIOPinWrite(GPIO_PORTB_BASE,GPIO_PIN_5,~0);
// 6
GPIOPinTypeGPIOOutput(GPIO_PORTB_BASE,GPIO_PIN_6);
GPIOPinWrite(GPIO_PORTB_BASE,GPIO_PIN_6,~0);
// 7 (tbd)
//GPIOPinTypeGPIOOutput(GPIO_PORTG_BASE,GPIO_PIN_0);
//GPIOPinWrite(GPIO_PORTG_BASE,GPIO_PIN_0,~0);
Thanks,