I have a problem switching the type of GPIO from output to input.
I'm working on pin 1 of port D. First, I remove the resistors R9/R10 from PCB.
In my code, enable the peripheral
Next, configure the pin
GPIOPinTypeGPIOOutputOD( GPIO_PORTD_BASE, GPIO_PIN_1 );
In some part of my code I change the GPIO type
GPIOPinTypeGPIOInput( GPIO_PORTD_BASE, GPIO_PIN_1 );
But, I reach the FaultISR in GDB.
My SW tools:
- OpenOCD v0.10.0
- Toolchain gcc-arm-none-eabi v5_4-2016q3
Someone can guide me to try the resolve this problem?
Thanks in advance.