DigitalInOut switch from input to output

Hello,

I am working on a project with LPC1549, using the evaluation board OM13056 v2 Rev C.

I am trying to switch DigitalInOut pin, defined as Input, OpenDrain mode to Output mode during runtime; and using a voltmeter, as well as using different pin defined as input and reading from it, I realized that such switch from DI to DO does not work.

However, initializing the pin as output first, then switching to input mode, open drain, seems to work fine (switching back to output, of course, leads to the same error: writing 1 to the output pin does not do anything)

Is there a way to either reset the current pin setting to default or any suggestions to fix such issues?

Thank you for your time.

Best regards,
Simon

that could be considered a bug. Try filing it as such at https://github.com/ARMmbed/mbed-os