I need to use some GPIO pins that are multiplexed with UART1 on a Q2687. My understanding is that I first need to disable UART1 within my application, and then subscribe to the GPIOs. Before trying this I realized that disabling UART1 might be dangerous since there is no way to communicate with the module any more. And sure enough…
The way I do it is to use
adl_atCmdCreate ( “AT+WMFM=0,0,1”, TRUE, ( adl_atRspHandler_t ) NULL, NULL );
to deactivate if, and then
adl_atCmdCreate ( “AT+WMFM=0,1,1”, TRUE, ( adl_atRspHandler_t ) NULL, NULL );
to activate it. However, this doesn’t work that well. The activation doesn’t work, and I end up with a disabled UART1. Then I have to use DWLWin to flash the module and start over. It is annoying and it takes quite some time to do this.
So, does anybody have a recommendation about a safe process to enable and disable UART1?