<?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>Migrate Code Nrf51 to Nrf52</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50107/migrate-code-nrf51-to-nrf52</link><description>Hi guys, i was using nrf51822 s130 sdk, and now i am using nrf52dk s132 sdk. When i am using nrf_adc.h, all bitfields macro&amp;#39;s get errors. It&amp;#39;s bitfield macros doesn&amp;#39;t match nrf52&amp;#39;s bitfield macros because i am using nrf51&amp;#39;s nrf_adc.h header. And i didn</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Jul 2019 11:18:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50107/migrate-code-nrf51-to-nrf52" /><item><title>RE: Migrate Code Nrf51 to Nrf52</title><link>https://devzone.nordicsemi.com/thread/200013?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2019 11:18:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cc99971-eb71-4de1-8c47-d2e0e18f92c9</guid><dc:creator>iremino</dc:creator><description>&lt;p&gt;I will :) thanks for your help&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrate Code Nrf51 to Nrf52</title><link>https://devzone.nordicsemi.com/thread/199976?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2019 09:28:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df15a362-b37a-4310-9911-5db396bcc6ce</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;We also have some documentation in order to migrate from the nRF51-series to the nRF52-series that you can take a look at.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/migration_nrf52/MIG/nrf52_migration/preface.html?cp=3_5" rel="noopener noreferrer" target="_blank"&gt;Migrating from the nRF51 Series to the nRF52 Series.&amp;nbsp;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards,&amp;nbsp;&lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrate Code Nrf51 to Nrf52</title><link>https://devzone.nordicsemi.com/thread/199841?ContentTypeID=1</link><pubDate>Mon, 22 Jul 2019 14:09:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8cf5ef9-6341-4637-92af-8208f176bcb1</guid><dc:creator>iremino</dc:creator><description>&lt;p&gt;himm okey thanks for your help &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;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrate Code Nrf51 to Nrf52</title><link>https://devzone.nordicsemi.com/thread/199837?ContentTypeID=1</link><pubDate>Mon, 22 Jul 2019 14:06:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f71296f-dbee-4b88-9b87-763af8abfcd7</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;You&amp;#39;re missing the point!&lt;/p&gt;
&lt;p&gt;You need to separate what is your &lt;em&gt;application&lt;/em&gt; code - the stuff you&amp;#39;ve written yourself to achieve your goals - from the underlying &lt;em&gt;driver&lt;/em&gt; code which Nordic provide just to make their hardware work.&lt;/p&gt;
&lt;p&gt;This is basic software development stuff.&lt;/p&gt;
&lt;p&gt;Using the SDK ADC example, you should be able to get the basic ADC &lt;em&gt;drivers&lt;/em&gt; working, and giving you readings.&lt;/p&gt;
&lt;p&gt;Your application code should then take these readings without worrying about where they came from.&lt;/p&gt;
&lt;p&gt;Perhaps you need to take a step beck and re-organise your nRF51 code to separate your own code from the Nordic code ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrate Code Nrf51 to Nrf52</title><link>https://devzone.nordicsemi.com/thread/199833?ContentTypeID=1</link><pubDate>Mon, 22 Jul 2019 13:55:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8cba3f1f-c66b-42ca-8711-493020a5ebb4</guid><dc:creator>iremino</dc:creator><description>&lt;p&gt;yes i am doing all this too, but sdk15.3.0 doesn&amp;#39;t have an adc header, it is a problem. maybe header name different for nrf52?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And i can&amp;#39;t find how this problems ;&amp;nbsp;&lt;span&gt;Undefined symbol app_pwm_uninit (referred from main.o). for nrf52, do you know how i can fix this errors?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrate Code Nrf51 to Nrf52</title><link>https://devzone.nordicsemi.com/thread/199832?ContentTypeID=1</link><pubDate>Mon, 22 Jul 2019 13:53:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e02ea4f0-d4c2-443c-a4f8-426fe8d97dfb</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;So you&amp;#39;ve got an SDK v15.3.0 ADC example working?&lt;/p&gt;
&lt;p&gt;In that case, you must have all the necessary Nordic headers in place.&lt;/p&gt;
&lt;p&gt;So you just need to add &lt;em&gt;&lt;strong&gt;your&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;own&lt;/strong&gt;&lt;/em&gt;, custom-written&amp;nbsp;application code - no more Nordic stuff.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrate Code Nrf51 to Nrf52</title><link>https://devzone.nordicsemi.com/thread/199829?ContentTypeID=1</link><pubDate>Mon, 22 Jul 2019 13:49:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20c04dd9-349b-4f0f-bc47-a268976232f8</guid><dc:creator>iremino</dc:creator><description>&lt;p&gt;Hi, yes i started with nrf52 examples as you said, and trying to merge with my functions but how can i solve this adc.h problem i don&amp;#39;t know&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrate Code Nrf51 to Nrf52</title><link>https://devzone.nordicsemi.com/thread/199809?ContentTypeID=1</link><pubDate>Mon, 22 Jul 2019 13:18:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2974ef1-a6d5-4449-a6d9-18e6d6ec7627</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Thr nRF52 is significantly different from nRF51, and the SDK has moved on a lot.&lt;/p&gt;
&lt;p&gt;It is unrealistic to expect that this &amp;quot;migration&amp;quot; will be just a few tweaks - it is a major porting exercise.&lt;/p&gt;
&lt;p&gt;Probably the easiest approach will be to start with appropriate nRF52 examples, and merge-in your application-specific stuff ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>