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

Where is P0.17 LED set on connect?

I do not use board.h nor bsp* in my project, and also I am not initializing the pins that I do not use in my program currently - so P0.17 is not initialized and setup. However using the DK, upon connection, the LED1 P0.17 lights up. I am trying to figure out where this clear is carried out, I do not see it in my code, could the softdevice be doing this?

At a higher level, what would you recommend to manage unused pins when working with a SDK and softdevice combination?

Thanks

FI

Parents
  • No the softdevice cannot be doing this. The softdevice knows nothing at all about hardware, doesn't touch the GPIOs or GPIOTE, so it's in your user code somewhere or in a piece of SDK code you've linked in. If you think about it, since the softdevice is designed to be used in any and all custom designs which could map pins anywhere to do anything, it can't have any knowledge of GPIO nor use it them any way.

    Since the softdevice doesn't touch output pins, or input pins, the advice is the same whether you use a softdevice or not, just leave unconnected pins at their default state on reset which is input / unconnected.

  • That is confident! You are right, found the code causing the issue. Thanks RK!

Reply Children
No Data
Related