<?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>Flashing Existing FW</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64222/flashing-existing-fw</link><description>Hi, 
 I&amp;#39;ve been trying to make a small modification on the existing Nordic Thingy firmware, such as changing the color of an LED, by compiling the existing Nordic Thingy 52 firmware on the SDK and flashing it. 
 However having tried both using gcc and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Aug 2020 08:29:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64222/flashing-existing-fw" /><item><title>RE: Flashing Existing FW</title><link>https://devzone.nordicsemi.com/thread/263136?ContentTypeID=1</link><pubDate>Wed, 05 Aug 2020 08:29:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94ca3997-f800-40a2-aacc-6df54705ab8e</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Have you made sure that you&amp;#39;ve completed the &amp;#39;Prerequisite&amp;#39;s listed in&amp;nbsp;&lt;a href="https://nordicsemiconductor.github.io/Nordic-Thingy52-FW/"&gt;https://nordicsemiconductor.github.io/Nordic-Thingy52-FW/&lt;/a&gt;&amp;nbsp;?&lt;br /&gt;&lt;br /&gt;Have you flashed both your compiled application and the SoftDevice?&lt;br /&gt;&lt;br /&gt;Have you been able to enter a debug session?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing Existing FW</title><link>https://devzone.nordicsemi.com/thread/262065?ContentTypeID=1</link><pubDate>Tue, 28 Jul 2020 18:23:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7755e811-df3a-4a37-966a-8b160f853459</guid><dc:creator>Weiqi Wang</dc:creator><description>&lt;p&gt;&lt;span style="font-weight:400;"&gt;I&amp;rsquo;m not too sure what you mean by the Thingy:52 not being supported by Segger because I was able to compile one of the nRF52-dk example files in Segger just fine and since the nRF52-dk and the Thingy:52 are based on the same microcontroller, shouldn&amp;rsquo;t the Thingy:52 compile as well? But yes, I think that the Thingy:52 SDK is broken too.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;I downloaded and installed Keil and also opened the Thingy:52 SDK files with Keil. But when I tried to compile using Keil without making any changes to the existing code, the compilation failed yet again with 92 errors and I think all of them were errors that had to do with missing files. But on the other hand, Keil compiled the nRF52-dk example files just fine (as was the case with Segger and gcc compilation).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Unfortunately, I still can&amp;rsquo;t get it to work.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;As for what I&amp;rsquo;ve done to change the LED color on the Thingy, I initially went to the &amp;ldquo;m_ui.c&amp;rdquo; file (&lt;/span&gt;&lt;a href="https://github.com/NordicSemiconductor/Nordic-Thingy52-FW/blob/master/source/modules/m_ui.c"&gt;&lt;span style="font-weight:400;"&gt;https://github.com/NordicSemiconductor/Nordic-Thingy52-FW/blob/master/source/modules/m_ui.c&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;in the Thingy:52 SDK repo on my machine, opened it with a text editor, changed lines 378-380 to be&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;rgb.r = 255;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;rgb.g = 255;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;rgb.b = 255;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;just to make it an obvious all-white color so I&amp;rsquo;d see a change in the Thingy&amp;rsquo;s LED. I compiled the file with gcc and it generated a .hex file. I dragged and dropped the .hex file into the JLINK folder popup that comes up when I connect the nRF52-dk to my machine (while having the Thingy:52 connected to the nRF52-dk via a 10-pin cable). For some reason, this puts the Thingy into an unknown state where the LED is just colorless and I don&amp;rsquo;t think it advertises as well because I can&amp;rsquo;t find the device on my nordic phone app.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;After this, I also compiled just the base project file without making any changes to the code, dropped &lt;/span&gt;&lt;i&gt;&lt;span style="font-weight:400;"&gt;that &lt;/span&gt;&lt;/i&gt;&lt;span style="font-weight:400;"&gt;.hex file in, still had no change and just put it into an unknown state again which is probably proving what you said about the Thingy:52 SDK files being broken.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Now apart from doing the above with gcc, I also did the same with Segger and Keil to no avail.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;P.S. To give you some context on what I&amp;rsquo;m trying to achieve, I&amp;rsquo;m trying to send raw 9-axis IMU data (Ax, Ay, Az, Mx, My, Mz, Gx, Gy, Gz) to the existing Nordic phone application via BLE. To do so, I&amp;rsquo;m assuming I have to write custom firmware functions because I don&amp;rsquo;t think there&amp;rsquo;s a way to retrieve the raw 9-axis points with the existing code. I&amp;#39;ve not had much experience with firmware, so I would appreciate a step by step instruction guide on how to this.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Thank you in advance.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing Existing FW</title><link>https://devzone.nordicsemi.com/thread/261973?ContentTypeID=1</link><pubDate>Tue, 28 Jul 2020 12:42:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3234a74b-709c-4985-be28-343b0bceb00c</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;The Thingy:52 FW does not actually support Segger. The project file that is available in the Thingy:52 SDK is actually broken, see &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/44348/how-to-get-started-nrf52-thingy-in-segger"&gt;this ticket&lt;/a&gt; and &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/27311/thingy-sdk-compile-error-using-segger-embedded-studio-within-windows-10"&gt;this ticket&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I suggest trying to edit the source code using Keil, and then building and flashing with Keil.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you still cannot get it to work, could you please provide some more details about how you are changing the source code, which source code you are using, etc.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>