Tool/software: Code Composer Studio
Hi,
I'm using the GPIO 21 of Concerto board.
These are my configuration at M3 side.
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOD);
GPIOPinConfigureCoreSelect(GPIO_PORTD_BASE, 0xFF, GPIO_PIN_C_CORE_SELECT);
These are my configuration at C29 side.
GpioG1CtrlRegs.GPAMUX2.bit.GPIO21 = 0; // Set as GPIO mode
GpioG1CtrlRegs.GPADIR.bit.GPIO21 = 1; // Set as output
I have un interrupt at 10Khz that can change the state of the GPIO. But I need to code two lines of the same command to real change the GPIO state:
GpioG1DataRegs.GPADAT.bit.GPIO21 = variable;
GpioG1DataRegs.GPADAT.bit.GPIO21 = variable;
If I let just one line, the GPIO doesn't stay on the new state, it works like in the picture.