Can't override pin assignment in .overlay

Hello,

I'm trying to declare custom GPIO on pin that are already used by the default dts of the nRF7002-DK. I'm currently testing on P0.11 that is used by SPI4.

My code is quite simple and toggle a LED, a custom GPIO no used by default and a custom that is already used by default. Only the two firsts are effectively toggling, the custom GPIO that is used by default remains at 0. I tried with several pins and the result is always the same.

My code :

My overlay file :

Has anyone got stuck on a similar issue or im I missing something somewhere ?

Thank you

Parents
  • Hello Benjamin,

    I assumed this issue was being handled by other responders, but is this something you are maybe still struggling with?

    Regards,

    Elfving

  • Hello,

    I managed to control pin P0.12 but I'm still struggling using pin P0.11. I still have to test some solution provided on the Discord server, unfortunately, I won't have access to the board before next week.

    Thank you

  • Hello again, and sorry for being this slow. There can be some delays on devzone during this vacation season.

    Since you got it working on P0.12 I assume you've understood dts side of this problem. If not, using the new "devicetree action" in VSC might make it a bit easier.

    The issue with P0.11 is that it is used by default as the SW0 connection to the interface chip on the DK. You can see this somewhat explained on the back of the DK as well. 

    If you do still want use this pin though (and not use the debugger of the DK anymore) you can disable the interface MCU on the SW6, and then solder SB14. You would then have to program the DK using an external programmer. 

    Regards,

    Elfving

Reply
  • Hello again, and sorry for being this slow. There can be some delays on devzone during this vacation season.

    Since you got it working on P0.12 I assume you've understood dts side of this problem. If not, using the new "devicetree action" in VSC might make it a bit easier.

    The issue with P0.11 is that it is used by default as the SW0 connection to the interface chip on the DK. You can see this somewhat explained on the back of the DK as well. 

    If you do still want use this pin though (and not use the debugger of the DK anymore) you can disable the interface MCU on the SW6, and then solder SB14. You would then have to program the DK using an external programmer. 

    Regards,

    Elfving

Children
No Data