<?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>Flash arduino code (hex file) to Custom board based on nRF52810</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93528/flash-arduino-code-hex-file-to-custom-board-based-on-nrf52810</link><description>I have written code based on Bluefruit nRF52 feather board in Arduino IDE. I need help to know is it possible for me to flash same code to my custom board based on nRF52810/ nRF52832. 
 Note : I&amp;#39;m not asking for code conversion from nRF52832 of Bluefruit</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 Jan 2023 13:28:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93528/flash-arduino-code-hex-file-to-custom-board-based-on-nrf52810" /><item><title>RE: Flash arduino code (hex file) to Custom board based on nRF52810</title><link>https://devzone.nordicsemi.com/thread/405490?ContentTypeID=1</link><pubDate>Wed, 18 Jan 2023 13:28:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a60adbda-5fb2-4941-bc4c-7d07a9f49558</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="KKaushik"]Could you please guide me&amp;nbsp;to&amp;nbsp;some examples to configure those GPIO pins to set HIGH or LOW?[/quote]
&lt;p&gt;If you just wish to use them as GPIOs then you can do so with the regular GPIO API in your application directly.&lt;br /&gt;If you would like to use them for a peripheral like the UART then you would have to modify the devicetree of your application so that they UART uses these pins instead of whichever pins you currently have assigned the UART.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash arduino code (hex file) to Custom board based on nRF52810</title><link>https://devzone.nordicsemi.com/thread/405486?ContentTypeID=1</link><pubDate>Wed, 18 Jan 2023 13:12:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdf0924b-7b25-4dc6-8876-cc684ee26697</guid><dc:creator>KKaushik</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/93528/flash-arduino-code-hex-file-to-custom-board-based-on-nrf52810/405481"]On the external board?[/quote]
&lt;p&gt;Yes, I&amp;#39;m talking about the custom PCB.&lt;/p&gt;
&lt;p&gt;I have connected male headers directly to the pins:&amp;nbsp;&lt;span&gt;P0.05 and P0.08 on the custom PCB.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you please guide me&amp;nbsp;to&amp;nbsp;some examples to configure those GPIO pins to set HIGH or LOW?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash arduino code (hex file) to Custom board based on nRF52810</title><link>https://devzone.nordicsemi.com/thread/405481?ContentTypeID=1</link><pubDate>Wed, 18 Jan 2023 13:06:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0608e431-6f73-4519-923d-88f956673228</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="KKaushik"]Now when I flash the code it doesn&amp;#39;t reset the code on nRF52840 DK. So I hope it uploads the code in custom PCB.[/quote]
&lt;p&gt;That&amp;#39;s good!&lt;br /&gt;If the debugger reports that the flashing was successful, and the DK program is not overwritten, then you know that the application was written to the external target.&lt;/p&gt;
[quote user="KKaushik"]But I haven&amp;#39;t given any testing led on the custom board. So is there a way to serial read from pins P0.5 &amp;amp; P0.8?[/quote]
&lt;p&gt;On the external board?&lt;br /&gt;P0.05 and P0.08 can be used as GPIOs, so this will depend on how you have routed the pins on your external board and how they are configured in your application.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash arduino code (hex file) to Custom board based on nRF52810</title><link>https://devzone.nordicsemi.com/thread/405448?ContentTypeID=1</link><pubDate>Wed, 18 Jan 2023 11:24:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7be2e91-447f-4f54-a512-873227e30fb8</guid><dc:creator>KKaushik</dc:creator><description>&lt;p&gt;Now when I flash the code it doesn&amp;#39;t reset the code on nRF52840 DK. So I hope it uploads the code in custom PCB.&lt;br /&gt;But I haven&amp;#39;t given any testing led on the custom board. So is there a way to serial read from pins P0.5 &amp;amp; P0.8?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash arduino code (hex file) to Custom board based on nRF52810</title><link>https://devzone.nordicsemi.com/thread/405081?ContentTypeID=1</link><pubDate>Mon, 16 Jan 2023 14:42:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e58d50b-d116-496a-8ed2-04c8b05974e3</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="KKaushik"]The image I attached earlier, shows the same pins connection as in the reference image you have shared.[/quote]
&lt;p&gt;It seems that you do not have the split from VDD to include VTG in your connections, and you do not have GND detect connected either, which is likely why your are unable to program the target.&lt;br /&gt;Please connect these so that your connections match the image I shared earlier exactly.&lt;/p&gt;
[quote user="KKaushik"]I have flashed the code with VS code, not the Programmer software. So I want to know, do I have to use only Programmer software for custom board flashing?[/quote]
&lt;p&gt;No, you can use any programmer as the programmer will tell the debugger how to flash it, and the debugger will decide which target it should flashed based on the availability of the SWD interface.&lt;br /&gt;&lt;br /&gt;Please remedy the connections, and let me know if you are able to program the target as expected.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash arduino code (hex file) to Custom board based on nRF52810</title><link>https://devzone.nordicsemi.com/thread/404711?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2023 07:36:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f28c4bbf-d479-4ccf-905f-e4024c809e4b</guid><dc:creator>KKaushik</dc:creator><description>&lt;p&gt;Yes, I have my schematic reviewed here only before production.&lt;/p&gt;
&lt;p&gt;Here are the private ticket IDs :&amp;nbsp;&lt;/p&gt;
&lt;ul class="attribute-list"&gt;
&lt;li class="attribute-item date"&gt;&lt;span class="attribute-value"&gt;Case ID: 297698&lt;/span&gt;&lt;/li&gt;
&lt;li class="attribute-item date"&gt;&lt;span class="attribute-value"&gt;Case ID: 299051&lt;/span&gt;&lt;span class="attribute-value"&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span class="attribute-value"&gt;The image I attached earlier, shows the same pins connection as in the reference image you have shared.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="attribute-value"&gt;I have flashed the code with VS code, not the Programmer software. So I want to know, do I have to use only Programmer software for custom board flashing?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash arduino code (hex file) to Custom board based on nRF52810</title><link>https://devzone.nordicsemi.com/thread/404702?ContentTypeID=1</link><pubDate>Fri, 13 Jan 2023 07:27:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee2dcb81-bd5e-459d-8231-b6fe6cc9ba08</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Yes, if the Blinky application on the DK got overwritten it means that the DK was the target of the programming, not the custom board.&lt;br /&gt;&lt;br /&gt;Please make sure that you have all the same connection in your setup as detailed in the image shared earlier.&lt;br /&gt;Have you gotten a schematic review done on your custom board prior to its production? If you create a ticket here on DevZone with the schematics we can review your integration of the nRF onto your board, to see that everything looks alright.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash arduino code (hex file) to Custom board based on nRF52810</title><link>https://devzone.nordicsemi.com/thread/404651?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2023 20:03:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e1412df-33ba-47d4-9789-28b0d06ac1dd</guid><dc:creator>KKaushik</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have followed the same steps and flash programmer with blinky first. Then tried to program the Custom board with the programmer. But the programmer code got changed as per the new code.&lt;/p&gt;
&lt;p&gt;So does that mean the code didn&amp;#39;t flash in the custom board?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash arduino code (hex file) to Custom board based on nRF52810</title><link>https://devzone.nordicsemi.com/thread/404584?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2023 14:13:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:568925dc-859c-4096-995e-12685ffb8bfd</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;Please see the attached image to see how you can use your DKs onboard debugger to program an external target.&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/4135.ext_5F00_52DK.png" /&gt;&lt;br /&gt;&lt;br /&gt;I also recommend programming the DK with the Blinky application, or similar, so that you can easily see that the correct target was programmed (since the DKs leds will just cycle indefinitely).&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash arduino code (hex file) to Custom board based on nRF52810</title><link>https://devzone.nordicsemi.com/thread/404549?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2023 12:36:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5af7544-1d65-4f36-a3d3-cf94e95841ad</guid><dc:creator>KKaushik</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have got my custom PCB and nRF52840_DK. I&amp;#39;m trying to program the custom board, flashing through VSCode Blinky. But it only changes the code in the nRF52DK, not in the custom board.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1673526915326v1.jpeg" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash arduino code (hex file) to Custom board based on nRF52810</title><link>https://devzone.nordicsemi.com/thread/393861?ContentTypeID=1</link><pubDate>Thu, 03 Nov 2022 12:21:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b10dc25f-6549-449e-8ad6-54c0dfcc45c2</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;Please see &lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf52832_dk/UG/dk/hw_debug_out.html"&gt;the Debug Out&lt;/a&gt;&amp;nbsp;section of the nRF52 DK documentation for a thorough explanation of how to use the nRF52 DK to program your custom board / external SoC.&lt;br /&gt;Your connections to your external board should look like this:&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/3441.ext_5F00_52DK.png" /&gt;&lt;br /&gt;A convenience tip: I would recommend that you program your nRF52 DK with a blinky application (or something similar) so that when you use it to program your external SoC you can be sure that the programming target actually was the external SoC (because the Blinky application will be unaffected by your programming of the external SoC).&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>