<?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>Migrating from arduino to NRF32 platform Using the SES IDE and TWI interface OLED display</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/32469/migrating-from-arduino-to-nrf32-platform-using-the-ses-ide-and-twi-interface-oled-display</link><description>Hello, 
 
 I&amp;#39;m trying to start working with the NRF52832 Dev board for quite some time and can&amp;#39;t manage to get anything complex done other than blinking an LED and even that can&amp;#39;t be achieved without using one of the pre build examples sins it&amp;#39;s super</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 16 Apr 2018 08:35:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/32469/migrating-from-arduino-to-nrf32-platform-using-the-ses-ide-and-twi-interface-oled-display" /><item><title>RE: Migrating from arduino to NRF32 platform Using the SES IDE and TWI interface OLED display</title><link>https://devzone.nordicsemi.com/thread/128400?ContentTypeID=1</link><pubDate>Mon, 16 Apr 2018 08:35:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ec3b7d1-5b90-417f-8d71-b754c1e436df</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;I do not think this is related to SES in any way, but rather the commands, responses, etc&amp;nbsp;that is used to interface with the&amp;nbsp;display.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from arduino to NRF32 platform Using the SES IDE and TWI interface OLED display</title><link>https://devzone.nordicsemi.com/thread/128338?ContentTypeID=1</link><pubDate>Sat, 14 Apr 2018 20:31:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ee89221-d26d-4150-bd37-0b0989a9f4b7</guid><dc:creator>MikeLemon</dc:creator><description>&lt;p&gt;Arghh this is something I wrote to preform a little test for the display the same algorithm(display commands) work with the arduino thing but not in SES.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is simply going no where, please close that case.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from arduino to NRF32 platform Using the SES IDE and TWI interface OLED display</title><link>https://devzone.nordicsemi.com/thread/128190?ContentTypeID=1</link><pubDate>Fri, 13 Apr 2018 08:49:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49059e4e-e9a0-4f48-908d-ee433ddeefa0</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;If you can read the device ID you are in communication with the display. I suggest you either find another driver for the display(that does not target arduino), or write one from scratch yourself.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from arduino to NRF32 platform Using the SES IDE and TWI interface OLED display</title><link>https://devzone.nordicsemi.com/thread/127229?ContentTypeID=1</link><pubDate>Fri, 06 Apr 2018 13:19:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e18ecc81-1c53-422f-95fd-602459d2ab17</guid><dc:creator>MikeLemon</dc:creator><description>&lt;p&gt;Ahmmm quite a delay almost became irrelevent....&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Anyways that is the datasheet if that somehow helps but I&amp;#39;m afraid that&amp;#39;s something in the code that I miss.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Anyway not sure here&amp;#39;s the link to the OLED driver datasheet:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://cdn-shop.adafruit.com/datasheets/SSD1306.pdf"&gt;cdn-shop.adafruit.com/.../SSD1306.pdf&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from arduino to NRF32 platform Using the SES IDE and TWI interface OLED display</title><link>https://devzone.nordicsemi.com/thread/127148?ContentTypeID=1</link><pubDate>Fri, 06 Apr 2018 07:50:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36328a05-aa50-4a2e-a96d-ea6536963a1e</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Do you have a datasheet for the OLED screen?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from arduino to NRF32 platform Using the SES IDE and TWI interface OLED display</title><link>https://devzone.nordicsemi.com/thread/125864?ContentTypeID=1</link><pubDate>Sun, 25 Mar 2018 05:36:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c07ea1ef-aeb2-43a4-b508-1ddc80971777</guid><dc:creator>MikeLemon</dc:creator><description>[quote userid="13562" url="~/f/nordic-q-a/32469/migrating-from-arduino-to-nrf32-platform-using-the-ses-ide-and-twi-interface-oled-display/125487"]Can you read the shields device ID?[/quote]
&lt;p&gt;Yes Of course like I said at the beginning I just don&amp;#39;t understand why that function doesn&amp;#39;t work physically according to that code. the arduino POC algorithm that got converted to SES with the nrf52832 just doesn&amp;#39;t work as expected or is it just me not ready understanding that TWI read function properly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from arduino to NRF32 platform Using the SES IDE and TWI interface OLED display</title><link>https://devzone.nordicsemi.com/thread/125487?ContentTypeID=1</link><pubDate>Thu, 22 Mar 2018 09:42:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:533cd4e3-2c84-449a-a135-98f391e80f28</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;I&amp;#39;m not suggesting that you actually start by checking every transistor, etc. What you need to do is to start slow. Can you read the shields device ID?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from arduino to NRF32 platform Using the SES IDE and TWI interface OLED display</title><link>https://devzone.nordicsemi.com/thread/125043?ContentTypeID=1</link><pubDate>Mon, 19 Mar 2018 15:38:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17bec3c7-0bce-4127-853c-5af1fdd75a03</guid><dc:creator>MikeLemon</dc:creator><description>&lt;p&gt;Hello haakonsh,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve went through the Nordic docs countless times and make sure the specific components work with with that particular setup(Used arduino nrf52832 extensions and ST LINK V2 to program it even on my custom PBCs) the tutorial are not helpful either just explaining about how to setup the more complex stuff which I&amp;#39;m sure are easy when you get to that stage after you understand the basics and common idiology of this platform,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Now going through every transistor that makes the IC and programming useful is not that useful either sins it simpley take way too many years I don&amp;#39;t have.&lt;/p&gt;
&lt;p&gt;So for now I&amp;#39;m just striking that particular problem to be able to move more easily hopefully and integrate the rest and then add the more complex BLE,low power part of the software.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from arduino to NRF32 platform Using the SES IDE and TWI interface OLED display</title><link>https://devzone.nordicsemi.com/thread/124951?ContentTypeID=1</link><pubDate>Mon, 19 Mar 2018 10:37:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acc51137-3752-4abc-b138-6bc789a5296f</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Hey Mike,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m glad that you&amp;#39;ve taken the BIG step into embedded engineering. I know It seems incredibly daunting right now as the transition from the Arduino world into the embedded realm is&amp;nbsp;the developer/maker/tinkerer/students equivalent&amp;nbsp;to the Ice-bucket challenge.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As you have probably noticed nothings seems to &amp;quot;work out of the box&amp;quot; and minuscule changes to seemingly unrelated code have disastrous consequences. Fear not, we&amp;#39;ve all been there (still am to some degree). The learning curve is steep, there is so much to learn, and you&amp;#39;ll not know where to start. I will try to give you some advice and directions.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;First off, you cannot focus entirely on you end goal, you need to take baby steps otherwise you will lose motivation and quit.&lt;/p&gt;
&lt;p&gt;You need to realize that a &amp;quot;simple&amp;quot; task of transmitting a single byte over I2C/TWI is a very complex operation dependent on a lot of variables, and if you make any assumptions along the way you will regret it later. My job is to chase down the root causes of our customers problems and I know from painful experience how an assumption like: &amp;quot;BTW there&amp;#39;s no way it&amp;#39;s a wiring problem since I&amp;#39;m using it with a shield and checked that the MCU can read it with the TWI_scanner example&amp;quot;, will ruin your week/month. You need to&amp;nbsp;&lt;em&gt;know&lt;/em&gt; that the physical signal is transmitted and received correctly. To do that you need a digital analyzer. We&amp;#39;ve got a Saleae Logic Pro at every desk because&amp;nbsp;we use them frequently, they are easy to use and they&amp;#39;re good enough debug data lines at &amp;lt;10MHz.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There ARE defective products, no matter how simple or complex. Any product will have some small percentage(Parts Per Million) of&amp;nbsp;units that have some sort of defect. It might be our MCU, or the OLED screen, or a power transistor on the OLED board, or a capacitor, or an inductor, or a connector, etc.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Once you have verified that something works as intended you can take a few moments and appreciate the fact that you are one step closer to your end goal, then start on the next step. Testing and verification is a critical component of engineering and it automatically breaks down tasks into small components.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Secondly, you will have to read, a lot. The nRF52832&amp;nbsp;&lt;a title="Product Specification" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52/dita/nrf52/chips/nrf52832_ps.html?cp=2_1_0"&gt;Product Specification&lt;/a&gt;, the OLED display&amp;#39;s datasheet, the &lt;a title="nRF5 SDK v14.2.0" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk/keydef/PLUGINS_ROOT/com.nordic.infocenter.sdk5.v14.2.0/index.html?cp=4_0_0"&gt;nRF5 SDK v14.2.0&lt;/a&gt; documentation and its &lt;a title="API Reference" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/modules.html?cp=4_0_0_6"&gt;API Reference&lt;/a&gt;, and code. Lots and lots of code. You will have to learn embedded C programming to understand what is going on inside the libraries and drivers.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You will find our tutorials at&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/tutorials/b/software-development-kit"&gt;https://devzone.nordicsemi.com/tutorials&lt;/a&gt;. I suggest you delay doing anything BLE related until you have a better grasp of how to use our SDK documentation, libraries and examples.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thirdly, you need to use some form of a Version Control system. I suggest Git for programming. This way you can modify your code and not have to worry about ruining your code base or project files. The Segger Embedded Studio project file itself is stored in clear-text&amp;nbsp;which means that it can be processed and saved in Git.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Now to answer your questions:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;SDK14.2/examples/peripheral/TWI or TWIM. Use this example as a base to begin with. You might want to switch to another base as you gain more knowledge.&lt;/li&gt;
&lt;li&gt;Version control, version control, version control. Commit often, write good commit messages, use branches.&amp;nbsp;&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Håkon.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>