<?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>Porting the library from the nRF52DK to the nRF52820</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91291/porting-the-library-from-the-nrf52dk-to-the-nrf52820</link><description>Hello all, 
 I have started to port the code from the nRF52dk in Segger EM, indeed, everything so far works on the NRF52 dk , so I have opened the Blinky example for the nRF52820, namely the PCA10100e and compiles ok, it is downloaded to the module and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 30 Aug 2022 07:51:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91291/porting-the-library-from-the-nrf52dk-to-the-nrf52820" /><item><title>RE: Porting the library from the nRF52DK to the nRF52820</title><link>https://devzone.nordicsemi.com/thread/383805?ContentTypeID=1</link><pubDate>Tue, 30 Aug 2022 07:51:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fdccd71-1a52-4c68-8a47-3be8cd185f73</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The driver structure in the nRF5 SDK is a bit complicated, for historical reasons. Essentially the nrf_drv drivers is the older driver set, which was later replaced by the nrfx drivers. But in order to avoid breaking all the examples the legacy nrf_drv API and configurations was kept as a layer between the application and the nrfx drivers.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So to your application it looks like you are still using the nrf_drv drivers, while in the background you will end up using the newer nrfx drivers.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In order to use TWIM0 in your application you should ensure that TWI_ENABLED and TWI0_ENABLED is set to 1 in sdk_config.h. Also, it is recommended to set&amp;nbsp;TWI0_USE_EASY_DMA to 1 to leverage the newer TWIM peripheral.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Porting the library from the nRF52DK to the nRF52820</title><link>https://devzone.nordicsemi.com/thread/383429?ContentTypeID=1</link><pubDate>Fri, 26 Aug 2022 09:40:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f799aed2-064e-479d-a40f-971f6f35d9a8</guid><dc:creator>MuRa</dc:creator><description>&lt;p&gt;Moving forward with porting of the TWI ... so far I have added the #include, etc. and drivers to the project, none to the preprocessor, I am using only regular drivers, namely&amp;nbsp;//TWI library&lt;br /&gt;#include &amp;quot;nrf_drv_twi.h&amp;quot; indeed, the nrf_drv_twi.c and nrfx_twim.c are added to the&amp;nbsp; nRF_drivers folder,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I get the error when compiling (this is found in the nrfx_twim.c ) :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;#error &amp;quot;No enabled TWIM instances. Check &amp;lt;nrfx_config.h&amp;gt;.&amp;quot;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The twi instance is defined :&amp;nbsp;#define TWI_INSTANCE_ID 0&lt;/p&gt;
&lt;p&gt;However, I am not sure why is there nrfx... and nrf... driver ?&lt;/p&gt;
&lt;p&gt;Is it possible that I am using other drivers, like timer or something else that is needed to run the twi, btw I am using this code from the project that works seamlessly on the nrf52dk, but there is plenty of other code too...&lt;/p&gt;
&lt;p&gt;Best.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Porting the library from the nRF52DK to the nRF52820</title><link>https://devzone.nordicsemi.com/thread/383397?ContentTypeID=1</link><pubDate>Fri, 26 Aug 2022 07:42:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:481190b1-cdac-4ced-ac8e-c425ae4a08bb</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Glad to hear I was able to help, even if the issue wasn&amp;#39;t exactly the one I described ;)&lt;/p&gt;
&lt;p&gt;The include folders in SES are not recursive, no, so you do need to include every sub folder that you are interested in.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As a side note it is not common practice to put source or header files inside the pca10040 folder (this is usually reserved for project files only), but in the end this is up to you.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Porting the library from the nRF52DK to the nRF52820</title><link>https://devzone.nordicsemi.com/thread/383231?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2022 10:33:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:910e3a8b-5d34-41ab-bf2d-c1f91230db61</guid><dc:creator>MuRa</dc:creator><description>&lt;p&gt;Hello ovrebekk and thank you for your input, it helped!&lt;/p&gt;
&lt;p&gt;I have explicitly put the location into the preprocessor like this, not a problem, I was automatically thinking that segger would search into the all available folder in &amp;quot;an available subtree&amp;quot;, apparently it does not...&lt;/p&gt;
&lt;p&gt;../../../../../../examples/peripheral/VCNL4035_final/Firmware_Version_rev1.1.2&lt;/p&gt;
&lt;p&gt;../../../../../../examples/peripheral/VCNL4035_final/Firmware_Version_rev1.1.2/pca10040/blank/VCNL4035X01nRF52DK/C&lt;/p&gt;
&lt;p&gt;../../../../../../examples/peripheral/VCNL4035_final/Firmware_Version_rev1.1.2/pca10040/blank/VCNL4035X01nRF52DK/C/Config&lt;/p&gt;
&lt;p&gt;so now it compiles !&lt;/p&gt;
&lt;p&gt;Thank you again, looking forward to port more code !&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Porting the library from the nRF52DK to the nRF52820</title><link>https://devzone.nordicsemi.com/thread/383213?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2022 09:25:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9610b81c-9860-420c-9d9d-3c9a733f31d1</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you sure that the VCNL4035X01.h file is located in a folder that you have added to your preprocessor settings?&lt;/p&gt;
&lt;p&gt;Could you double check that the folder is correctly added to your project, and that there are no spaces at the end of the directory name?&lt;br /&gt;Segger Embedded Studio doesn&amp;#39;t remove trailing spaces from the directory folders in the settings, so it won&amp;#39;t work if you have any.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>