npm1300 one button sample

Environment:

IMPORTANT: The data below could contain sensitive or confidential information about your environment.
If you do not wish this to be seen by others, please make sure to remove it before sharing.

For help and support, visit the Nordic DevZone at https://devzone.nordicsemi.com/.

{
  "platform": {
    "os": "win32",
    "osVersion": "Windows 11 Pro",
    "osKernel": "10.0.22631",
    "vscode": "1.91.0",
    "electron": "29.4.0",
    "node": "v20.9.0"
  },
  "system": {
    "date": "2024-07-13T15:10:58.885Z",
    "vscodeRoot": "c:\\Users\\mej\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
    "nrfConnectForDesktopInstalled": true,
    "vscodeUptime": "00:58:44",
    "osUptime": "85:24:07",
    "cpu": "Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz"
  },
  "workspace": {
    "name": "npm1300_one_button_1",
    "workspaceFile": null,
    "folders": [
      "c:\\nrf\\npm1300_one_button_1"
    ]
  },
  "sdks": [
    {
      "version": "v2.6.1",
      "path": "c:\\ncs\\v2.6.1"
    },
    {
      "version": "v2.6.0",
      "path": "c:\\ncs\\v2.6.0"
    }
  ],
  "activeBuild": "c:\\nrf\\npm1300_one_button_1\\build52840",
  "apps": [
    {
      "workspace": "c:\\nrf\\npm1300_one_button_1",
      "uri": "c:\\nrf\\npm1300_one_button_1",
      "buildConfigurations": [
        {
          "id": "c:\\nrf\\npm1300_one_button_1\\build52840",
          "name": "build52840",
          "boardId": "nrf52840dk_nrf52840",
          "type": "Zephyr",
          "isChild": false,
          "isStale": false,
          "taskBindings": {
            "build": [],
            "pristineBuild": [],
            "flash": [],
            "eraseAndFlash": []
          }
        }
      ]
    }
  ],
  "topdir": "c:\\ncs\\v2.6.1",
  "workspaceState": "freestanding-ready",
  "toolchains": [
    {
      "version": "2.6.1",
      "path": "c:\\ncs\\toolchains\\cf2149caf2"
    },
    {
      "version": "2.6.0",
      "path": "c:\\ncs\\toolchains\\cf2149caf2"
    }
  ],
  "connectedDevices": [
    {
      "serialNumber": "001050263836"
    },
    {
      "serialNumber": "001050265146"
    }
  ],
  "deviceProvider": "nrfutil",
  "tools": {
    "C:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gcc.exe": "0.16.5",
    "C:\\Program Files\\SEGGER\\JLink_V794e\\JLink.exe": "7.94e",
    "C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.24.1",
    "nrfutil": "Not found",
    "C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\cmake.exe": "3.21.0",
    "C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\Scripts\\west.exe": "1.2.0",
    "C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\python.exe": "3.9.13",
    "C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\ninja.exe": "1.10.2",
    "C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\gperf.exe": "3.1",
    "C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\dtc.exe": "1.4.7",
    "C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\gn.exe": "2154",
    "C:\\ncs\\toolchains\\cf2149caf2\\mingw64\\bin\\git.exe": "2.37.3.windows.1",
    "gdbPath": "c:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gdb.exe"
  },
  "nrfutil": {
    "nrfutil-device": {
      "version": "2.0.0",
      "binPath": "c:\\Users\\mej\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.7.13-win32-x64\\platform\\nrfutil\\bin\\nrfutil-device"
    },
    "nrfutil-toolchain-manager": {
      "version": "0.14.4",
      "binPath": "c:\\Users\\mej\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.7.13-win32-x64\\platform\\nrfutil\\bin\\nrfutil-toolchain-manager"
    }
  },
  "environment": {
    "westEnv": {
      "ELECTRON_RUN_AS_NODE": "1",
      "HOME": "C:\\Users\\mej",
      "HOMEDRIVE": "C:",
      "HOMEPATH": "\\Users\\mej",
      "PATH": "C:\\ncs\\toolchains\\cf2149caf2;C:\\ncs\\toolchains\\cf2149caf2\\mingw64\\bin;C:\\ncs\\toolchains\\cf2149caf2\\bin;C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin;C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\Scripts;C:\\ncs\\toolchains\\cf2149caf2\\opt\\nanopb\\generator-bin;C:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\aarch64-zephyr-elf\\bin;C:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\x86_64-zephyr-elf\\bin;C:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin;C:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\riscv64-zephyr-elf\\bin;c:\\Users\\mej\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.7.13-win32-x64\\platform\\nrfutil\\lib\\nrfutil-toolchain-manager;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Microchip\\xc8\\v2.41\\bin;C:\\Program Files (x86)\\Windows Kits\\8.1\\Windows Performance Toolkit\\;C:\\Program Files\\dotnet\\;C:\\Program Files\\CMake\\bin;C:\\Program Files\\Microchip\\xc8\\v2.46\\bin;C:\\Program Files\\PuTTY\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\mej\\AppData\\Local\\Programs\\Python\\Python312\\Scripts\\;C:\\Users\\mej\\AppData\\Local\\Programs\\Python\\Python312\\;C:\\Users\\mej\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\mej\\AppData\\Local\\Programs\\Microsoft VS Code\\bin",
      "ZEPHYR_BASE": "c:\\ncs\\v2.6.1\\zephyr",
      "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
      "ZEPHYR_SDK_INSTALL_DIR": "C:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk",
      "PYTHONPATH": "C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin;C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\Lib;C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\Lib\\site-packages"
    },
    "inherited": {
      "ELECTRON_RUN_AS_NODE": "1",
      "HOME": "C:\\Users\\mej",
      "HOMEDRIVE": "C:",
      "HOMEPATH": "\\Users\\mej",
      "Path": "C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Microchip\\xc8\\v2.41\\bin;C:\\Program Files (x86)\\Windows Kits\\8.1\\Windows Performance Toolkit\\;C:\\Program Files\\dotnet\\;C:\\Program Files\\CMake\\bin;C:\\Program Files\\Microchip\\xc8\\v2.46\\bin;C:\\Program Files\\PuTTY\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\mej\\AppData\\Local\\Programs\\Python\\Python312\\Scripts\\;C:\\Users\\mej\\AppData\\Local\\Programs\\Python\\Python312\\;C:\\Users\\mej\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\mej\\AppData\\Local\\Programs\\Microsoft VS Code\\bin",
      "PATH": "C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Microchip\\xc8\\v2.41\\bin;C:\\Program Files (x86)\\Windows Kits\\8.1\\Windows Performance Toolkit\\;C:\\Program Files\\dotnet\\;C:\\Program Files\\CMake\\bin;C:\\Program Files\\Microchip\\xc8\\v2.46\\bin;C:\\Program Files\\PuTTY\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\mej\\AppData\\Local\\Programs\\Python\\Python312\\Scripts\\;C:\\Users\\mej\\AppData\\Local\\Programs\\Python\\Python312\\;C:\\Users\\mej\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\mej\\AppData\\Local\\Programs\\Microsoft VS Code\\bin"
    },
    "toolchainPath": "c:\\ncs\\toolchains\\cf2149caf2",
    "toolchainBinPath": "c:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin",
    "toolchainVersion": "2.6.1"
  },
  "terminal": {
    "defaultProfile": "nRF Connect"
  },
  "config": {
    "nordic-semiconductor.nrf-connect": {
      "topdir": "",
      "toolchain": {
        "path": ""
      },
      "ozonePath": "",
      "applications": [],
      "applicationOptions": {},
      "kconfig": {
        "interface": "guiconfig"
      },
      "west": {
        "env": {
          "$base": "terminal"
        }
      },
      "boardRoots": [],
      "taskBindings": {},
      "buildTerminal": {
        "condensedProgress": true
      },
      "debugging": {
        "flash": true,
        "bindings": {},
        "justMyCode": true
      },
      "activeAppFollowActiveEditor": true,
      "deviceProvider": "",
      "flash": {
        "softreset": false,
        "erase": false,
        "recover": false
      },
      "enableTelemetry": null,
      "thirdpartyIntegration": {},
      "toolchainManager": {
        "indexURL": null,
        "installDirectory": null
      },
      "nrfutil": {
        "home": null
      },
      "defaultOpenAction": "ask"
    },
    "nordic-semiconductor.nrf-terminal": {
      "terminalMode": "character"
    }
  },
  "extensions": {
    "internal": {
      "nordic-semiconductor.nrf-connect": {
        "version": "2024.7.13",
        "path": "c:\\Users\\mej\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.7.13-win32-x64",
        "isActive": true
      },
      "nordic-semiconductor.nrf-terminal": {
        "version": "2024.3.15",
        "path": "c:\\Users\\mej\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2024.3.15",
        "isActive": true
      },
      "nordic-semiconductor.nrf-devicetree": {
        "version": "2024.6.20",
        "path": "c:\\Users\\mej\\.vscode\\extensions\\nordic-semiconductor.nrf-devicetree-2024.6.20",
        "isActive": true
      },
      "nordic-semiconductor.nrf-kconfig": {
        "version": "2024.6.20",
        "path": "c:\\Users\\mej\\.vscode\\extensions\\nordic-semiconductor.nrf-kconfig-2024.6.20",
        "isActive": true
      }
    },
    "external": {
      "marus25.cortex-debug": null,
      "ms-vscode.cpptools": "1.20.5",
      "ms-vscode.js-debug": "1.91.0",
      "ms-vscode.js-debug-companion": "1.1.2",
      "ms-vscode.vscode-js-profile-table": "1.0.9",
      "ms-vscode.cpptools-extension-pack": "1.3.0",
      "ms-vscode.cpptools-themes": "2.0.0",
      "ms-vscode.vscode-serial-monitor": "0.12.0",
      "pdconsec.vscode-print": "0.12.14",
      "trond-snekvik.gnu-mapfiles": "1.1.0",
      "vsciot-vscode.vscode-arduino": "0.6.0"
    }
  }
}


I can't seem to get the one button sample to do anything... I get a steady ~1sec flash from HOST led on the npm1300, but I get nothing from pushing SHPHLD for any duration of time.

   ============  ============  =========================================================
   Duration      Log output    Outcome
   ============  ============  =========================================================
   < 1 sec       Short press   Sample flashes **LED** at 5 Hz, LDSW 1 enabled
   1 - 5 sec     Medium press  Sample flashes **LED** at 1 Hz, LDSW 1 disabled
   5 - 10 sec    Long press    nPM1300 enters ship mode provided **J3** is not connected
   > 10 sec      None          nPM1300 long press reset activates
   ============  ============  =========================================================

I am unclear as to what the USB connections should be. I've tried
  1. npm1300 J3 both connected and not connected.
  2. npm1300 J4 not connected
  3. nrf52840dk J2 connected and not connected

nothing seems to change the npm1300/nrf52840dk behavior, also it's unclear which **LED** the sample is referring to.

I get this from the nrf52840 Serial output:
*** Booting nRF Connect SDK v3.5.99-ncs1-1 ***
PMIC device ok
uart:~$
Not sure what I am missing here. No matter how long I push SHPHLD - Host continues to flash at a steady rate and no other LEDs activate...

I've included photos of my connections. I have an unrelated SPI Display connected, but unused.
The one button sample code is completely unmodified from the VSCode samples and all the jumpers on npm1300ek are as they came out of the box.
My Connections:

* - SDA nPM1300ek - P0.26 nrf52840dk
* - SCL nPM1300ek - P0.27 nrf52840dk

* - GPIO3 nPM1300ek - P0.22 nrf52840dk

* - VDDIO nPM1300ek - VDD nrf52840dk
* - GND nPM1300ek - GND nrf52840dk

Parents
  • Hi.

    The flashing Host LED shows that the communications between the host and the PMIC is working correctly.

    Do you see a transition on GPIO3 with a scope?
    I would expect to see a transition on this output when you press SHPHLD for the first time.
    On a working system this output should remain high for about 1ms, before it is cleared by the host.

    One problem I see in your setup is the use of VDDIO.
    It should be connected to either the host, or a buck, not both.
    Can you try removing the jumper on VDDIO REF?

    Best regards
    Andy

Reply
  • Hi.

    The flashing Host LED shows that the communications between the host and the PMIC is working correctly.

    Do you see a transition on GPIO3 with a scope?
    I would expect to see a transition on this output when you press SHPHLD for the first time.
    On a working system this output should remain high for about 1ms, before it is cleared by the host.

    One problem I see in your setup is the use of VDDIO.
    It should be connected to either the host, or a buck, not both.
    Can you try removing the jumper on VDDIO REF?

    Best regards
    Andy

Children
No Data
Related