- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In my application I am trying to use P2 and P32 as GPIO pins. I am using the GPIO configuration call to configure them in the usual way. However they appear to still be operating as a serial port; P2 seems permanently operating as an input, and P32 can be controlled as an output but trace data is still output to it. (This despite setting the trace UART to HCI in spar_init.c)
I think I am turning off the peripheral port this way (following example of hello sensor):
// Following structure defines UART configuration
const BLE_PROFILE_PUART_CFG vehicle_tag_puart_cfg =
{
/*.baudrate =*/ 115200,
/*.txpin =*/ PUARTDISABLE | GPIO_PIN_UART_TX,
/*.rxpin =*/ PUARTDISABLE | GPIO_PIN_UART_RX,
};
Is there anything else I need to do to make sure the PUART is off so I can use these GPIO?
BTW my application is running on a custom board based on the 20732S.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Use NULL instead of this vehicle_tag_puart_cfg when invoking bleapp_set_cfg() in your APPLICATION_INIT function.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Use NULL instead of this vehicle_tag_puart_cfg when invoking bleapp_set_cfg() in your APPLICATION_INIT function.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks!