npm1300-EK entering/using ship mode

I have a npm1300-EK connected to nrf52832dk.

Power connected from npm1300 Buck2 3v to external supply nrf52.

  1. nrf52 is not usb connected.
  2. TWI connected to nrf52 P0.26,27
  3. USB PMIC is not connected.

I flashed "NPM1300_FUEL_GAUGUE" with the addition of "ret = gpio_pin_set_dt(&led, 1);" just to show the nrf52 is running

everything works as expected, except that when I push/push hold "SHPHLD" nothing happens. I was hoping/expecting SHPHLD to Power Down and/or Reset.

Are there a steps I can follow to get SHPHLD set up so that I can use the SHPHLD button to be a Power ON/OFF, (nrf52 hard reset)?

I attached my firmware.

  npm1300_fuel_gauge.zip

Parents
  • Hi

    From what I can see, the fuel gauge sample doesn't in fact use the SHPHLD. You can check out the nPM1300 One Button sample to see how the SHPHLD/RESET button is set up there to control the device state. Can you also share some details on how you're powering the nPM1300 on your end here, and how exactly the nPM1300 and nRF52832 DK is connected?

    Best regards,

    Simon

  • Thanks for your reply! I don't seem to have that sample...? I searched in the directory to find it elsewhere, but it's not there?

    "This sample can be found under samples/pmic/native/npm1300_one_button in the nRF Connect SDK folder structure."

    Directory of C:\ncs\v2.5.1\zephyr\samples

    01/23/2024 10:08 AM <DIR> .
    01/08/2024 04:58 AM <DIR> ..
    01/08/2024 04:49 AM <DIR> application_development
    01/08/2024 04:49 AM <DIR> arch
    01/08/2024 04:49 AM <DIR> basic
    01/08/2024 04:49 AM <DIR> bluetooth
    01/08/2024 04:49 AM <DIR> boards
    01/08/2024 04:49 AM 244 classic.rst
    01/08/2024 04:49 AM <DIR> compression
    01/08/2024 04:49 AM <DIR> cpp
    01/08/2024 04:49 AM <DIR> drivers
    01/08/2024 04:49 AM <DIR> fuel_gauge
    01/08/2024 04:49 AM <DIR> hello_world
    01/08/2024 04:49 AM 604 index.rst
    01/08/2024 04:49 AM <DIR> kernel
    01/08/2024 04:49 AM <DIR> modules
    01/08/2024 04:49 AM <DIR> net
    01/08/2024 04:49 AM <DIR> philosophers
    01/08/2024 04:49 AM <DIR> posix
    01/23/2024 10:08 AM 0 print.txt
    01/08/2024 04:49 AM 4,129 sample_definition_and_criteria.rst
    01/08/2024 04:49 AM <DIR> sensor
    01/08/2024 04:49 AM <DIR> shields
    01/08/2024 04:49 AM <DIR> subsys
    01/08/2024 04:49 AM <DIR> synchronization
    01/08/2024 04:49 AM <DIR> tfm_integration
    01/08/2024 04:49 AM <DIR> userspace

    I followed the suggested connections for npm1300->nrf5340dk, but on the nrf52832dk those pins are P0.19 - P0.24 instead of P0.10-P0.15 

    ***VDD connected to VDDIO(npm1300ek) - I am getting connection problems when I close then open the PowerUp app. The problem seems like it might be tied to the VDDIO-VDD connection? Is this supposed to be connected? 



Reply
  • Thanks for your reply! I don't seem to have that sample...? I searched in the directory to find it elsewhere, but it's not there?

    "This sample can be found under samples/pmic/native/npm1300_one_button in the nRF Connect SDK folder structure."

    Directory of C:\ncs\v2.5.1\zephyr\samples

    01/23/2024 10:08 AM <DIR> .
    01/08/2024 04:58 AM <DIR> ..
    01/08/2024 04:49 AM <DIR> application_development
    01/08/2024 04:49 AM <DIR> arch
    01/08/2024 04:49 AM <DIR> basic
    01/08/2024 04:49 AM <DIR> bluetooth
    01/08/2024 04:49 AM <DIR> boards
    01/08/2024 04:49 AM 244 classic.rst
    01/08/2024 04:49 AM <DIR> compression
    01/08/2024 04:49 AM <DIR> cpp
    01/08/2024 04:49 AM <DIR> drivers
    01/08/2024 04:49 AM <DIR> fuel_gauge
    01/08/2024 04:49 AM <DIR> hello_world
    01/08/2024 04:49 AM 604 index.rst
    01/08/2024 04:49 AM <DIR> kernel
    01/08/2024 04:49 AM <DIR> modules
    01/08/2024 04:49 AM <DIR> net
    01/08/2024 04:49 AM <DIR> philosophers
    01/08/2024 04:49 AM <DIR> posix
    01/23/2024 10:08 AM 0 print.txt
    01/08/2024 04:49 AM 4,129 sample_definition_and_criteria.rst
    01/08/2024 04:49 AM <DIR> sensor
    01/08/2024 04:49 AM <DIR> shields
    01/08/2024 04:49 AM <DIR> subsys
    01/08/2024 04:49 AM <DIR> synchronization
    01/08/2024 04:49 AM <DIR> tfm_integration
    01/08/2024 04:49 AM <DIR> userspace

    I followed the suggested connections for npm1300->nrf5340dk, but on the nrf52832dk those pins are P0.19 - P0.24 instead of P0.10-P0.15 

    ***VDD connected to VDDIO(npm1300ek) - I am getting connection problems when I close then open the PowerUp app. The problem seems like it might be tied to the VDDIO-VDD connection? Is this supposed to be connected? 



Children
No Data
Related