GPREGRET - Hold the state of GPIO and state

Hi everyone!!! I need help with our new version of HW after validating the previous one that works.

I read some similar posts related to the GPRETREG for HOLD a GPIO while the DFU is performing.

I have a "smart power button " STM6601 to power up the system.

The code used in the previous version for hold the state is the following:

static void buttonless_dfu_sdh_state_observer(nrf_sdh_state_evt_t state, void * p_context)
{
    if (state == NRF_SDH_EVT_STATE_DISABLED)
    {
        // Softdevice was disabled before going into reset. Inform bootloader to skip CRC on next boot.
        nrf_power_gpregret_set(BOOTLOADER_DFU_GPREGRET );
        nrf_power_gpregret2_set(  BOOTLOADER_DFU_SKIP_CRC);

        //Go to system off.
        nrf_pwr_mgmt_shutdown(NRF_PWR_MGMT_SHUTDOWN_GOTO_SYSOFF);
    }
}

HW changes ( Shortage :( )

I changed the BLE module:

Fanstel : 840F --------------> Ublox: NINA- B306

Fanstel chip version

Ublox chip version

Any suggestion or recommendation to test will be grateful!!

Best regards.

Parents Reply Children
No Data
Related