This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

uart usable after softdevice disabled?

SDK v12, SD130 on 51822.

I init uart through APP_UART_FIFO_INIT, and installed uart_event_handler. UART rx/tx with an external MCU works OK while softdevice running.

then i tried to use sd_softdevice_disable() to disable softdevice. I expect uart to work as the same. However the uart turns out not responding anymore, either not receiving or sending anything.

Is it normal? Is uart related API and event handler still usable after softdevice disabled? any specific thing need to do to keep uart running?

thank you.

Parents
  • @Daniel Wang I actually combined the ble_cscs example and the ble_uart example in SDK. The uart part of code is taken from ble_uart demo.

    And then i added some code to do uart communication with an external MCU. Why i try to disable softdevice is though the UART works OK most of time, it sometimes gives uart overrun error. I guess it has something to do with softdevice activities so i would like to disable it and see if it improves.

    @Bjørn Spockeli

    I did not get any error codes after disable the SD, as the CPU then seems to get into sleep mode, no advertising, and no log on console (i am using RTT log) and not responding anymore.

Reply
  • @Daniel Wang I actually combined the ble_cscs example and the ble_uart example in SDK. The uart part of code is taken from ble_uart demo.

    And then i added some code to do uart communication with an external MCU. Why i try to disable softdevice is though the UART works OK most of time, it sometimes gives uart overrun error. I guess it has something to do with softdevice activities so i would like to disable it and see if it improves.

    @Bjørn Spockeli

    I did not get any error codes after disable the SD, as the CPU then seems to get into sleep mode, no advertising, and no log on console (i am using RTT log) and not responding anymore.

Children
No Data
Related