<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>npmx-zephyr libraries</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/103964/npmx-zephyr-libraries</link><description>I&amp;#39;ve been rolling my own code for controlling the NPM1300 but i&amp;#39;ve found the libraries at https://github.com/NordicSemiconductor/npmx-zephyr/tree/main . It&amp;#39;s unclear to me how i can use these though. I don&amp;#39;t think they&amp;#39;re currently included in v2.4.2</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 20 Sep 2023 14:25:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/103964/npmx-zephyr-libraries" /><item><title>RE: npmx-zephyr libraries</title><link>https://devzone.nordicsemi.com/thread/446916?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2023 14:25:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c63c275a-0bc8-4346-bfc4-8191841577ec</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Robert,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The zephyr sample &amp;quot;npm1300_fuel_gauge&amp;quot; does most (and you&amp;#39;re correct; not all functionality, such as LED handling) of what the npmx-zephyr samples can provide in one sample.&lt;/p&gt;
&lt;p&gt;I understand your concern. I&amp;#39;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&amp;#39;s on upstream zephyr:&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/pulls?q=is%3Apr+npm1300+is%3Aclosed"&gt;https://github.com/zephyrproject-rtos/zephyr/pulls?q=is%3Apr+npm1300+is%3Aclosed&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the future, the features available in zephyr should be equal to the features available in npmx-zephyr.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="robsrick"]I&amp;#39;d like to try and use the npmx-zephyr repo with my existing 2.4.2 nrf zephyr project but i&amp;#39;m a bit unclear on the details of how to use west to gain access to these features.[/quote]
&lt;p&gt;Unfortunately, this will cause problems, as the paths are not fully compatible with ncs default path layout.&lt;/p&gt;
&lt;p&gt;The way to do this now is to initialize a new repository based on npmx-zephyr&amp;#39;s west.yml, which will also download ncs:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicSemiconductor/npmx-zephyr#repository-initialization"&gt;https://github.com/NordicSemiconductor/npmx-zephyr#repository-initialization&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You&amp;#39;ll end up with two installations of ncs, unfortunately. But, we are working on migrating all npmx-features into ncs.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: npmx-zephyr libraries</title><link>https://devzone.nordicsemi.com/thread/446860?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2023 12:00:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecfaf289-31bd-4b4c-b645-cd55dd4840f3</guid><dc:creator>robsrick</dc:creator><description>&lt;p&gt;&lt;span&gt;Thanks H&amp;aring;kon. It looks like the features supported between the npm1300_ek implementation and the npmx-zephyr are different? for example i don&amp;#39;t think i can use the shphld featue out of the box using npm1300_ek, just the fuel gauging.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;d like to try and use the npmx-zephyr repo with my existing 2.4.2 nrf zephyr project but i&amp;#39;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 &amp;quot;Repository initialisation&amp;quot; section that you linked but i&amp;#39;m not really&amp;nbsp;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?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Some hand holding would be helpful or some resources that spell out how to do this please &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Robert&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: npmx-zephyr libraries</title><link>https://devzone.nordicsemi.com/thread/446814?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2023 09:47:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7deca86d-630a-4f49-b95a-414d30d7a08e</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;quot;npmx-zephyr&amp;quot; is a standalone repository, which pulls in ncs/zephyr via its west.yml manifest file.&lt;/p&gt;
&lt;p&gt;This is made as a bare metal sample, but uses zephyr as its main test system, as this is what we currently use&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s how to manually checkout and install all subcomponents:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicSemiconductor/npmx-zephyr#how-to-use"&gt;https://github.com/NordicSemiconductor/npmx-zephyr#how-to-use&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Update: My initial answer was wrong. There&amp;#39;s two ways of using npm family:&lt;/p&gt;
&lt;p&gt;* Standalone (ie. as a bare metal implementation)&lt;/p&gt;
&lt;p&gt;* In NCS / zephyr.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you want to use it in ncs/zephyr, please see these links:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/shields/npm1300_ek"&gt;https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/shields/npm1300_ek&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/pmic/native/npm1300_fuel_gauge/README.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/pmic/native/npm1300_fuel_gauge/README.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The driver itself is integrated into the regulators subsys:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/tree/main/drivers/regulator"&gt;https://github.com/zephyrproject-rtos/zephyr/tree/main/drivers/regulator&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>