<?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>DK programs from SES but not nRF Connect</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106650/dk-programs-from-ses-but-not-nrf-connect</link><description>I developed my code using SES and was connecting, erasing, and programming the DK using the target-&amp;gt;download filename. Everything was working until it came time to place the code on the custom PCB. Using Segger only ever resulted in programming the DK</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 Dec 2023 07:48:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106650/dk-programs-from-ses-but-not-nrf-connect" /><item><title>RE: DK programs from SES but not nRF Connect</title><link>https://devzone.nordicsemi.com/thread/461520?ContentTypeID=1</link><pubDate>Fri, 22 Dec 2023 07:48:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b514dc7e-c87e-40f2-89e6-29b43189e859</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I&amp;#39;m glad to hear you found the problem. Thanks for updating the thread with your findings.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DK programs from SES but not nRF Connect</title><link>https://devzone.nordicsemi.com/thread/461515?ContentTypeID=1</link><pubDate>Fri, 22 Dec 2023 05:12:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b3d5b54-de0a-41c3-8daa-9ccf7675a575</guid><dc:creator>trackerfx</dc:creator><description>&lt;p&gt;Success!&lt;/p&gt;
&lt;p&gt;Removing those symbols and enabling the NRF_LOG_BACKEND_RTT got me on the right track. Turns out the code was getting stuck in the port event handler. The main issue was that we are using pin 6 as an input. Pin 6 is, by default, assigned to the UART TX. It was hard to find; I use the CMSIS Configurator and the UART pin assignment is not listed. I found the pin assignment in 2 places in the sdk_config.h file. Once I re-assigned the UART TX to another pin everything started working as expected.&lt;/p&gt;
&lt;p&gt;Thanks for all your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DK programs from SES but not nRF Connect</title><link>https://devzone.nordicsemi.com/thread/461056?ContentTypeID=1</link><pubDate>Tue, 19 Dec 2023 12:51:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8004e24a-829a-40d8-8c4c-3963bdf3317a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Since you are running the code on an actual 810, you should remove the following symbols:&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/pastedimage1702989847822v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Same as descbrided here:&amp;nbsp;&lt;a title="Transferring the project to nRF52810 hardware" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/nrf52810_user_guide.html?cp=9_1_5_0_3#ug_52810_project"&gt;Transferring the project to nRF52810 hardware&lt;/a&gt;.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
[quote user="trackerfx"]Unfortunately, something is still not right. We&amp;#39;re advertising for&amp;nbsp;about 20 seconds, sometimes less, before dropping off. I can begin the connection process anywhere in this timeframe but it will always fail and immediately drop off, requiring a reset of the board. Not having debug info is maddening.[/quote]
&lt;p&gt;If you haven&amp;#39;t done it already, I recommend enabling debug logging to see if it may reveal more details about why it is crashing. You can do so by setting NRF_LOG_ENABLED == 1 and NRF_LOG_BACKEND_RTT_ENABLED == 1 in sdk_config.h. You may also want to add &amp;#39;DEBUG&amp;#39; to the list of pre-processor symbols for more verbose crash logs. The log should be displayed in the debug terminal when you start a debug session in Embedded Studio.&lt;/p&gt;
&lt;p&gt;The issue is not necessarily related to the porting from 52840 to the nRF52810, but could be due to some other differences when going from a DK to a custom board that we&amp;#39;ve overlooked.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DK programs from SES but not nRF Connect</title><link>https://devzone.nordicsemi.com/thread/460926?ContentTypeID=1</link><pubDate>Mon, 18 Dec 2023 23:02:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85b3be22-beff-45c7-a5b3-543d68d76db8</guid><dc:creator>trackerfx</dc:creator><description>&lt;p&gt;Thanks for including those screenshots. Mine looks like that:&lt;/p&gt;
&lt;p&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/Screenshot_5F00_20231218_5F00_163959_5F00_Splashtop-Personal.jpg" /&gt;&lt;/p&gt;
&lt;p&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/Screenshot_5F00_20231218_5F00_163843_5F00_Splashtop-Personal.jpg" /&gt;&lt;/p&gt;
&lt;p&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/Screenshot_5F00_20231218_5F00_163812_5F00_Splashtop-Personal.jpg" /&gt;&lt;/p&gt;
&lt;p&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/Screenshot_5F00_20231218_5F00_163518_5F00_Splashtop-Personal.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;It seems we match.&amp;nbsp;So strange.&lt;/p&gt;
&lt;p&gt;Everything I&amp;#39;ve read says the 810 should be able to handle this project. The project uses the WDT, FLASH memory, 3 app timers, pin interrupts, and is set up as a BLE peripheral device. There&amp;#39;s not much else to it. Unfortunately, this is my first time developing on the 840 just to port over to the 810. I had one other project that was to use the 810 but the limited pinout and lack of dedicated USB pins made us switch to the 840 very early. Building off of the ble_app_template example for this project made it easy, or so I thought. I just don&amp;#39;t see what difference between the chips I&amp;#39;m not accounting for.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DK programs from SES but not nRF Connect</title><link>https://devzone.nordicsemi.com/thread/460907?ContentTypeID=1</link><pubDate>Mon, 18 Dec 2023 17:23:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b10a83ba-ab7d-483a-abb3-5c7b6eaab2d3</guid><dc:creator>trackerfx</dc:creator><description>&lt;p&gt;My apologies, I should have been clearer. I&amp;#39;m just now discovering that the S112 softdevice will indeed run on the 840. Until now, I had been switching between S112 and S140 depending on the chip I was programming. Now I&amp;#39;m just using S112 for both chips and only the 810 RAM and FLASH placement settings. I&amp;#39;ve been programming the custom board with the 10040e output from my build. This seems to satisfy the requirements for the startup file, system file, and linker script. I&amp;#39;ll look into 4 and 5 and report back.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DK programs from SES but not nRF Connect</title><link>https://devzone.nordicsemi.com/thread/460744?ContentTypeID=1</link><pubDate>Mon, 18 Dec 2023 09:02:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3c2d44d-e12d-4b92-ae78-24ba6fc856aa</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I assumed you were using the nRF52840 on your custom board as well, not the nRF52810. Porting a 52840 based project to the nRF52810 requires additional steps:&lt;/p&gt;
&lt;p&gt;1. Adjust the FLASH and RAM sections in your linker script to match the 52810 variant.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2.&amp;nbsp;Switch to a Softdevice variant that is qualified for the chip:&amp;nbsp;&lt;a title="SDKs and SoftDevices" href="https://infocenter.nordicsemi.com/topic/comp_matrix_nrf52810/COMP/nrf52810/nRF52810_ic_rev_sdk_sd_comp_matrix.html?cp=5_5_3_2"&gt;SDKs and SoftDevices&lt;/a&gt;. This involves changing the Softdevice include paths and the application&amp;#39;s start address in FLASH.&lt;/p&gt;
&lt;p&gt;3. Change startup files (rename ses_startup_nrf52840.s&amp;nbsp; to&amp;nbsp;&lt;span&gt;ses_startup_nrf52810.s and&amp;nbsp;system_nrf52840.c to system_nrf52810.c&lt;/span&gt;)&lt;/p&gt;
&lt;p&gt;4. Update preprocessor flags to match the chip variant.&lt;/p&gt;
&lt;p&gt;5. Disable HW floating point support in the CPU.&lt;/p&gt;
&lt;p&gt;I recommend using one of the &amp;#39;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/nrf52810_user_guide.html"&gt;pca10040e&lt;/a&gt;&amp;#39; projects as a reference. For instance, take a look at the ble_app_uart/pca10040e/s112/ses project.&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/pastedimage1702889920554v1.png" alt=" " /&gt;&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/pastedimage1702889942053v2.png" alt=" " /&gt;&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/pastedimage1702889959868v3.png" alt=" " /&gt;&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/pastedimage1702890001090v4.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DK programs from SES but not nRF Connect</title><link>https://devzone.nordicsemi.com/thread/460674?ContentTypeID=1</link><pubDate>Sun, 17 Dec 2023 17:15:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0f22f50-bed1-462f-a895-3d3676bfbba9</guid><dc:creator>trackerfx</dc:creator><description>&lt;p&gt;I dug a little deeper and found that the nRF52810 RAM section only goes up to 0x20006000. With that in mind and with some edits to the max MTU size I got the RAM placement to RAM_START=0x20001A50 which according to my math comes out to RAM_SIZE=0x45B0 for the 810. The DK still works fine with these parameters and now the custom PCB is blinking an LED and advertising.&lt;/p&gt;
&lt;p&gt;Huzzah! Progress!&lt;/p&gt;
&lt;p&gt;Unfortunately, something is still not right. We&amp;#39;re advertising for&amp;nbsp;about 20 seconds, sometimes less, before dropping off. I can begin the connection process anywhere in this timeframe but it will always fail and immediately drop off, requiring a reset of the board. Not having debug info is maddening.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DK programs from SES but not nRF Connect</title><link>https://devzone.nordicsemi.com/thread/460647?ContentTypeID=1</link><pubDate>Sat, 16 Dec 2023 03:15:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4019c08e-d4a1-4878-834f-bd7bba1a5a20</guid><dc:creator>trackerfx</dc:creator><description>&lt;p&gt;So, you&amp;#39;re right about the debug option and it did turn out that there was a slight difference with the RAM placement in the project options with the debug version as opposed to the release version. Now that it&amp;#39;s fixed, I can successfully program the DK board with either method. Still the same result with the custom PCB. It doesn&amp;#39;t seem to be operating at all, no LED, no BLE, etc. I checked that the crystals are both there. I have a jumper across the selection pin and VCC as you suggested and can read back the data after programming and it identifies the connected nRF52810 and the presence of a softdevice after programming. I also tried programming the blinky example and the template example and in both cases the LED&amp;#39;s operate and I can connect to it with the nRF Connect Bluetooth app. I don&amp;#39;t think it&amp;#39;s a hardware issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This brings me back to RAM placement; according to the datasheets it appears that the RAM section in question starts at the same address (&lt;span&gt;0x20000000&lt;/span&gt;) for both chips. Is&amp;nbsp;RAM_START=0x20002598 RAM_SIZE=0x3DA68 a problem for the 810? Those were the stated address and size that were suggested by the application when I was working with the 840. Are there any differences between the 840 and 810 that need to be accounted for other than the softdevice? I do write 12 bytes of data to the last page in flash, 0xFF for the 840 and 0x2F for the 810. I must be missing something.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DK programs from SES but not nRF Connect</title><link>https://devzone.nordicsemi.com/thread/460556?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2023 13:18:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e6d72d8-b69f-4d22-8b32-39ac72d41009</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;don&amp;#39;t see&amp;nbsp;any issues with the programming steps you have outlined. Does your board design include the optional DCDC inductors and the 32KHz crystal like the DK does? If not, have you configured the firmware so that it does not rely on these components? That is, have you selected the internal RC as the clock source and not enabled the DCDC regulator (Note: the DCDC regulator is not enabled by default in the nRF5 SDK)?&lt;/p&gt;
[quote user=""]When I add the softdevice and app, the custom board didn&amp;#39;t respond. When I switched back to the S140 and DK board, programming with the Connect programmer resulted in strange behavior: button presses executing functions not assigned to them, missing nrf_log_info prints, etc. Apparently I&amp;#39;m doing something wrong.[/quote]
&lt;p&gt;There&amp;#39;s a hardware switch on the DK board that determines whether the SWD lines are routed to the onboard 52840 or to the debug out pins. Therefore, it should not make a difference whether you use the Programmer app or SES for programming. To ensure&amp;nbsp;you don&amp;#39;t mistakenly program the&amp;nbsp;onboard chip, you can place a jumper on the pins shown below. With this configuration, you will get a programming error if the external board is not detected.&amp;nbsp;&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/pastedimage1702645335478v1.png" alt=" " /&gt;&lt;/p&gt;
[quote user=""]When I switched back to the S140 and DK board, programming with the Connect programmer resulted in strange behavior: button presses executing functions not assigned to them, missing nrf_log_info prints, etc. Apparently I&amp;#39;m doing something wrong.[/quote][quote user=""]...\nRF5_SDK_17.1.0_ddde560\nRF5_SDK_17.1.0_ddde560\projects\Padlock\BLE_smartPadlock\pca10056\s140\ses\Output\Release\Exe\[/quote]
&lt;p&gt;It was&amp;nbsp;a bit difficult to&amp;nbsp;see from your screenshot due to the low resolution, but it appears that you are building the project with the &amp;#39;Debug&amp;#39; configuration. As a result, the generated hex file will be located in \Output\&lt;strong&gt;Debug&lt;/strong&gt;\Exe, not in \Output\Release\Exe.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>