npmx-zephyr libraries

I've been rolling my own code for controlling the NPM1300 but i've found the libraries at  https://github.com/NordicSemiconductor/npmx-zephyr/tree/main . It's unclear to me how i can use these though. I don't think they're currently included in v2.4.2? Could you explain how i can run some of these samples?

Regards

Robert

Parents Reply
  • Thanks Håkon. It looks like the features supported between the npm1300_ek implementation and the npmx-zephyr are different? for example i don't think i can use the shphld featue out of the box using npm1300_ek, just the fuel gauging. 

    I'd like to try and use the npmx-zephyr repo with my existing 2.4.2 nrf zephyr project but i'm a bit unclear on the details of how to use west to gain access to these features. I see the info listed in the "Repository initialisation" section that you linked but i'm not really sure what to do with this? Does this create a standalone project or does it somehow integrate the npmx-zephyr library into my zephyr installation so i can access it? 

    Some hand holding would be helpful or some resources that spell out how to do this please Slight smile

    Robert 

Children
  • Hi Robert,

     

    The zephyr sample "npm1300_fuel_gauge" does most (and you're correct; not all functionality, such as LED handling) of what the npmx-zephyr samples can provide in one sample.

    I understand your concern. I've been discussing your questions with the project lead, and we are currently adding more and more features into zephyr, as seen here with the PR's on upstream zephyr: https://github.com/zephyrproject-rtos/zephyr/pulls?q=is%3Apr+npm1300+is%3Aclosed

     

    In the future, the features available in zephyr should be equal to the features available in npmx-zephyr.

     

    robsrick said:
    I'd like to try and use the npmx-zephyr repo with my existing 2.4.2 nrf zephyr project but i'm a bit unclear on the details of how to use west to gain access to these features.

    Unfortunately, this will cause problems, as the paths are not fully compatible with ncs default path layout.

    The way to do this now is to initialize a new repository based on npmx-zephyr's west.yml, which will also download ncs:

    https://github.com/NordicSemiconductor/npmx-zephyr#repository-initialization

     

    You'll end up with two installations of ncs, unfortunately. But, we are working on migrating all npmx-features into ncs.

     

    Kind regards,

    Håkon

Related