<?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>How to change c++ code into NORDIC nRF52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47950/how-to-change-c-code-into-nordic-nrf52832</link><description>Hi, 
 I want to write or change the code in to nRF52832 
 I have some code this code i should write for nRF52832 
 kindly give any suggestion 
 here is the my code 
 uint8_t HT1632_LedMatrix::putChar( int x, int y, char c) {
 // fonts defined for ascii</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 31 May 2019 11:05:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47950/how-to-change-c-code-into-nordic-nrf52832" /><item><title>RE: How to change c++ code into NORDIC nRF52832</title><link>https://devzone.nordicsemi.com/thread/190257?ContentTypeID=1</link><pubDate>Fri, 31 May 2019 11:05:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad053777-91b7-4cec-b11b-24dc7ab72d7c</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;That has nothing to do with the topic of this thread: &amp;quot;&lt;strong&gt;How to change c++ code into NORDIC nRF52832&lt;/strong&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;You need to start a new thread for a different topic!&lt;/p&gt;
&lt;p&gt;But, as noted, it has nothing to do with Nordic.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change c++ code into NORDIC nRF52832</title><link>https://devzone.nordicsemi.com/thread/190255?ContentTypeID=1</link><pubDate>Fri, 31 May 2019 11:01:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f6ea74c-61c1-4e3b-9ff9-a463fe364b00</guid><dc:creator>gain</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/error-image.png" /&gt;&lt;/p&gt;
&lt;p&gt;I select&amp;nbsp; internal and external tool chains for importing eclipse project&lt;/p&gt;
&lt;p&gt;This is the error i got while importing project in to segger&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change c++ code into NORDIC nRF52832</title><link>https://devzone.nordicsemi.com/thread/190237?ContentTypeID=1</link><pubDate>Fri, 31 May 2019 10:16:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a37ada9-a251-416b-9937-cc2b7317907c</guid><dc:creator>awneil</dc:creator><description>[quote userid="6462" url="~/f/nordic-q-a/47950/how-to-change-c-code-into-nordic-nrf52832/190226"]What project?[/quote]
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/learn"&gt;gain&lt;/a&gt;:&amp;nbsp;Are you referring to the original code - the subject of this thread - or&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/hnhoan"&gt;Nguyen Hoan Hoang&lt;/a&gt;&amp;#39;s code?&lt;/p&gt;
&lt;p&gt;For the latter, did you see the instructions on GitHub:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;See&amp;nbsp;&lt;a href="https://embeddedsoftdev.blogspot.ca/p/h.html" rel="nofollow"&gt;https://embeddedsoftdev.blogspot.ca/p/h.html&lt;/a&gt;&amp;nbsp;for more detail installation and setup of development environment.&lt;/em&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;Library online documentation located here&amp;nbsp;&lt;a href="https://www.i-syst.com/docs/EHAL/" rel="nofollow"&gt;https://www.i-syst.com/docs/EHAL/&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;Library source code on GitHub at&amp;nbsp;&lt;a href="https://github.com/I-SYST/EHAL"&gt;https://github.com/I-SYST/EHAL&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;Need to port a specific driver or MCU ? Put your request in issues. It will get done eventually. If you want to have it faster, a fee based port is available.&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change c++ code into NORDIC nRF52832</title><link>https://devzone.nordicsemi.com/thread/190226?ContentTypeID=1</link><pubDate>Fri, 31 May 2019 09:50:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a623bdc-9838-4eff-9c9f-d4190137f358</guid><dc:creator>awneil</dc:creator><description>[quote userid="79506" url="~/f/nordic-q-a/47950/how-to-change-c-code-into-nordic-nrf52832/190222"]the project[/quote]
&lt;p&gt;What project?&lt;/p&gt;
&lt;p&gt;As it&amp;#39;s a 3rd-party project, that&amp;#39;s not really a question for Nordic.&lt;/p&gt;
&lt;p&gt;The SES manual is here:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.segger.com/downloads/embedded-studio/EmbeddedStudio_Manual"&gt;https://www.segger.com/downloads/embedded-studio/EmbeddedStudio_Manual&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The SES forum is here:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://forum.segger.com/index.php/Board/9-SEGGER-Embedded-Studio-related/?s=25ffbe221f5c55e10b6e16c1d45ec6091432edc8"&gt;https://forum.segger.com/index.php/Board/9-SEGGER-Embedded-Studio-related/?s=25ffbe221f5c55e10b6e16c1d45ec6091432edc8&lt;/a&gt;&lt;/p&gt;
[quote userid="79506" url="~/f/nordic-q-a/47950/how-to-change-c-code-into-nordic-nrf52832/190222"] i got error like above[/quote]
&lt;p&gt;Sorry, the picture is unclear - I can&amp;#39;t see what the message says.&lt;/p&gt;
&lt;p&gt;To capture just the active window - instead of the entire screen - use &lt;strong&gt;Alt+&lt;/strong&gt;PrintScreen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change c++ code into NORDIC nRF52832</title><link>https://devzone.nordicsemi.com/thread/190222?ContentTypeID=1</link><pubDate>Fri, 31 May 2019 09:40:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbc0f26a-d17b-45ba-9a28-2065ae3689e1</guid><dc:creator>gain</dc:creator><description>&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1559297274434v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;i am trying to import the project in segger .&lt;/p&gt;
&lt;p&gt;then i got error like above&amp;nbsp;&lt;/p&gt;
&lt;p&gt;how to resolve this?&lt;/p&gt;
&lt;p&gt;kindly provide suggestion&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change c++ code into NORDIC nRF52832</title><link>https://devzone.nordicsemi.com/thread/190183?ContentTypeID=1</link><pubDate>Fri, 31 May 2019 07:59:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9caf60ff-67f1-4162-ba51-e24bc1ad09b9</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;If your question is resolved, please verify the answer:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/0636._5F00_Verify_2D00_answer_2D00_nordic.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change c++ code into NORDIC nRF52832</title><link>https://devzone.nordicsemi.com/thread/190182?ContentTypeID=1</link><pubDate>Fri, 31 May 2019 07:58:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:186cd43d-d9e4-4731-8c10-16e8f8eafd9a</guid><dc:creator>awneil</dc:creator><description>[quote userid="2867" url="~/f/nordic-q-a/47950/how-to-change-c-code-into-nordic-nrf52832/190135"]you can&amp;#39;t flatten the code[/quote]
&lt;p&gt;Well, you &lt;em&gt;can&lt;/em&gt; - but there&amp;#39;ll be an amount of work to it!&lt;/p&gt;
&lt;p&gt;As has already been pointed out to &lt;a href="https://devzone.nordicsemi.com/members/learn"&gt;gain&lt;/a&gt;, it&amp;#39;s not about nRF - it&amp;#39;s all just standard language stuff.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change c++ code into NORDIC nRF52832</title><link>https://devzone.nordicsemi.com/thread/190157?ContentTypeID=1</link><pubDate>Fri, 31 May 2019 05:50:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05a75d48-d682-47c8-be1e-c8dedff7be78</guid><dc:creator>gain</dc:creator><description>&lt;p&gt;Thank you very much Nguyen Hoan Hoang&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;it is very helpful to me&lt;/p&gt;
&lt;p&gt;and thanks to Nordic Dev Zone&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change c++ code into NORDIC nRF52832</title><link>https://devzone.nordicsemi.com/thread/190135?ContentTypeID=1</link><pubDate>Fri, 31 May 2019 00:02:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5895385-be05-46a0-8335-d104795a7c9d</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Using C syntax (ie no x.method()) however it&amp;#39;s in a C++ method definition so they are most probably instance members or methods of the class. eg send_col() is just called with no object instance,&amp;nbsp;however it&amp;#39;s an instance method of the class (I just googled for the code) so that&amp;#39;s implicitly this-&amp;gt;send_col(), the this-&amp;gt; is inferred. So you can&amp;#39;t flatten the code, you need the object reference.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change c++ code into NORDIC nRF52832</title><link>https://devzone.nordicsemi.com/thread/190122?ContentTypeID=1</link><pubDate>Thu, 30 May 2019 21:43:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f78268ac-5a3a-45b8-ad1e-a2c27662585c</guid><dc:creator>awneil</dc:creator><description>[quote userid="2867" url="~/f/nordic-q-a/47950/how-to-change-c-code-into-nordic-nrf52832/190119"]it uses variables like cgram and functions such as chip_byte_address()[/quote]
&lt;p&gt;But it&amp;#39;s only accessing those things using standard &amp;#39;C&amp;#39; syntax.&lt;span class="mceItem mceNonEditable mceQuote" id="mceQuote1"&gt;...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Of course, any &amp;amp; all external references would have to be satisfied.&lt;/p&gt;
[quote userid="2867" url="~/f/nordic-q-a/47950/how-to-change-c-code-into-nordic-nrf52832/190119"]I&amp;#39;m not sure I understand the original question at all[/quote]
&lt;p&gt;likewise:&lt;/p&gt;
[quote userid="6462" url="~/f/nordic-q-a/47950/how-to-change-c-code-into-nordic-nrf52832/190022"]Not sure what you&amp;#39;re actually asking here[/quote]&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change c++ code into NORDIC nRF52832</title><link>https://devzone.nordicsemi.com/thread/190119?ContentTypeID=1</link><pubDate>Thu, 30 May 2019 21:35:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fba52074-0cf4-48d7-a65b-5c4773eebd66</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Probably not quite as it uses variables like cgram and functions such as chip_byte_address() which I assume are member variables and methods, unless they are globals which is not so likely.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However if he defines HT1632_LedMatrix_putChar() as you have above but with an initial HT1632_LedMatrix pointer, as extern &amp;quot;C&amp;quot;, and then calls through the pointer it effectively renames the function into something callable from C, you just drag the pointer about.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However I&amp;#39;m not sure I understand the original question at all and the answer &amp;#39;no changes are required&amp;#39; is the right one.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change c++ code into NORDIC nRF52832</title><link>https://devzone.nordicsemi.com/thread/190059?ContentTypeID=1</link><pubDate>Thu, 30 May 2019 12:30:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2958b2e3-ccc1-4290-b554-3d465813f2da</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;No changes are required. &amp;nbsp;It all depends on the compiler not the processor. &amp;nbsp;You can use C++ with nRF no problem. &amp;nbsp;See this library &lt;a href="https://github.com/I-SYST/EHAL"&gt;https://github.com/I-SYST/EHAL&lt;/a&gt;. &amp;nbsp;It&amp;#39;s C++ fully object oriented. &amp;nbsp;it actually have code for the HT1632.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change c++ code into NORDIC nRF52832</title><link>https://devzone.nordicsemi.com/thread/190046?ContentTypeID=1</link><pubDate>Thu, 30 May 2019 10:45:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd2c7bb7-e3c8-4316-a964-54693c4bc851</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Exactly the same as would be required to convert any other C++ code to C - the languages are standard; not specific to Nordic.&lt;/p&gt;
&lt;p&gt;But the function seems to be only using &amp;#39;C&amp;#39; syntax anyhow - apart from the initial&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;uint8_t HT1632_LedMatrix::putChar(int x, int y, char c) {&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So you could start by just changing that to a standard &amp;#39;C&amp;#39; function signature; eg,&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;uint8_t HT1632_LedMatrix_putChar(int x, int y, char c) {&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change c++ code into NORDIC nRF52832</title><link>https://devzone.nordicsemi.com/thread/190043?ContentTypeID=1</link><pubDate>Thu, 30 May 2019 10:32:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f313c73-f382-46d6-96d7-b6d0bac04ffc</guid><dc:creator>gain</dc:creator><description>&lt;p&gt;for using above code in nrf52832 what are the changes required ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change c++ code into NORDIC nRF52832</title><link>https://devzone.nordicsemi.com/thread/190022?ContentTypeID=1</link><pubDate>Thu, 30 May 2019 07:54:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8821911-7690-4277-9df0-120394c78939</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Not sure what you&amp;#39;re actually asking here.&lt;/p&gt;
&lt;p&gt;Regarding C++ and the Nordic SDK, see:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/47945/i-will-re-encapsulate-the-interface-of-bluetooth-devices-which-original-interfaces-should-be-encapsulated-c-interface-officially-provided/190021#190021"&gt;devzone.nordicsemi.com/.../190021&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>