nreset 0.18 disable

I have a customized PCB with nrf52840. Pin 0.18 is used as CS pin in SPI communication. 

I want to disable the nreset function and I add this CONFIG_GPIO_AS_PINRESET=n in .conf file 

When I click flash it still shows 

[ ###### ] 0.000s | Program file - Checking image [ ##### ] 0.000s | Check image validity - Initialize device info [ ########## ] 0.000s | Check image validity - Check region 0 settings [ ############### ] 0.000s | Check image validity - block 1 of 2 [ #################### ] 0.006s | Check image validity - Finished [ ############# ] 0.000s | Program file - Programming [ ########## ] 0.000s | Programming image - block 1 of 1 [ #################### ] 0.000s | Programming image - Write successful [ #################### ] 0.248s | Program file - Done programming
[ ###### ] 0.000s | Verify file - Check image [ ##### ] 0.000s | Check image validity - Initialize device info [ ########## ] 0.000s | Check image validity - Check region 0 settings [ ############### ] 0.115s | Check image validity - block 1 of 2 [ #################### ] 0.006s | Check image validity - Finished [ ############# ] 0.000s | Verify file - Verifying [ ########## ] 0.000s | Verifying image - block 1 of 1 [ #################### ] 0.000s | Verifying image - Verify successful [ #################### ] 0.255s | Verify file - Done verifying
Enabling pin reset.
Applying pin reset.

I read across the platform and I found someone mentioned NCIR and some mentioned system_nrf52840.c but those answers are more than 1 years ago so I am not sure whether those are relevant.

I am using J-LINK for flash and printk though RTT.

What else I need to add after adding CONFIG_GPIO_AS_PINRESET=n ? 

Parents
  • Hi,

    There are two things that needs to be adressed in order to not use pin reset.

    The first is to don't enable pin reset in  your firmware. You describe CONFIG_GPIO_AS_PINRESET=n but that is deprecated, so if using a recent SDK release (>= v2.5.0) you need to adjust your devicetree as explained in this post.

    The second is that when programming west flash needs to be called with the "--softreset" option. If calling it direclty, just add that option. If programming from nRF Connect for VS Code, set "nrf-connect.flash.softreset": true in your VS Code configuration.

Reply
  • Hi,

    There are two things that needs to be adressed in order to not use pin reset.

    The first is to don't enable pin reset in  your firmware. You describe CONFIG_GPIO_AS_PINRESET=n but that is deprecated, so if using a recent SDK release (>= v2.5.0) you need to adjust your devicetree as explained in this post.

    The second is that when programming west flash needs to be called with the "--softreset" option. If calling it direclty, just add that option. If programming from nRF Connect for VS Code, set "nrf-connect.flash.softreset": true in your VS Code configuration.

Children
Related