Conflict with SoftDevice on P0.12

Working application, using S132 SoftDevice, new variation of the application. Using UARTE, with P0.12 assigned as RxD. Something in the SoftDevice is grabbing P0.12 and setting it as an output and low. If I call uart_init() early enough to grab the pin, the softdevice crashes and my code never starts running. GPIO is definitely not grabbing it; indeed, I can't even set it as an output and set it high. What other peripheral is likely to be grabbing that pin? Nothing I can find in any of the source code should do anything with it.

Even more mysterious, we have 3 units (out of over a dozen in this batch) that configure the pin correctly. A timing difference in the startup, perhaps?

Steve Hendrix

Parents
  • Hello,

    The only time the Softdevice can control GPIOs is when you use the PA/LNA control feature, but even then it is the application that is responsible for assigning the pins to the softdevice, it will not grab the pins by itself.

    the softdevice crashes and my code never starts running

    Could you please try to provide any more details about this crash? If you have debug logging available on this device, the easiest way to get more information about the crash is to build the project with "DEBUG" defined in the list of preprocessor symbols and let the app_error_fault_handler() print the crash log.

    Thanks,

    Vidar

Reply
  • Hello,

    The only time the Softdevice can control GPIOs is when you use the PA/LNA control feature, but even then it is the application that is responsible for assigning the pins to the softdevice, it will not grab the pins by itself.

    the softdevice crashes and my code never starts running

    Could you please try to provide any more details about this crash? If you have debug logging available on this device, the easiest way to get more information about the crash is to build the project with "DEBUG" defined in the list of preprocessor symbols and let the app_error_fault_handler() print the crash log.

    Thanks,

    Vidar

Children
No Data
Related