<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://forums.garmin.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Getting Started with Connect IQ BLE Development</title><link>https://forums.garmin.com/developer/connect-iq/w/wiki/19/getting-started-with-connect-iq-ble-development</link><description>A growing set of useful information for the Connect IQ Developer Community.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><item><title>Getting Started with Connect IQ BLE Development</title><link>https://forums.garmin.com/developer/connect-iq/w/wiki/19/getting-started-with-connect-iq-ble-development</link><pubDate>Tue, 15 Oct 2024 17:02:07 GMT</pubDate><guid isPermaLink="false">a9571b57-dd57-479e-8763-8f8a603e40aa:4f4abd96-e5b5-46ee-bd10-d6de608751dd</guid><dc:creator>Ashley.Garmin</dc:creator><comments>https://forums.garmin.com/developer/connect-iq/w/wiki/19/getting-started-with-connect-iq-ble-development#comments</comments><description>Current Revision posted to Wiki by Ashley.Garmin on 10/15/2024 5:02:07 PM&lt;br /&gt;
&lt;p&gt;Starting with Connect IQ version 3.1.0, developers have the ability to communicate directly with devices via the Bluetooth Low Energy wireless communication protocol. This has opened up a whole new world of possibilities for what can be done with Connect IQ. For the uninitiated, the setup process to get started can seem quite daunting. The purpose of this setup guide is to help lighten the load to get developers off the ground as quickly as possible.&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="resources"&gt;Resources&lt;/h2&gt;
&lt;p&gt;When going through this guide, developers will want to keep a few things handy.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Connect IQ BLE API Documentation -&amp;nbsp;&lt;/strong&gt;Having the &lt;a href="https://developer.garmin.com/connect-iq/api-docs/Toybox/BluetoothLowEnergy.html"&gt;API Documentation&lt;/a&gt; close by will be critical (especially in the later steps of this document).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Nordic nRF52 DK -&amp;nbsp;&lt;/strong&gt;The Connect IQ team has built out the Connect IQ SDK tools to be compatible with the &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Kits/nRF52-DK"&gt;Nordic nRF52 DK&lt;/a&gt; Bluetooth 5 and Bluetooth mesh Development Kit for nRF52810.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Nordic Documentation Page -&amp;nbsp;&lt;/strong&gt;The &lt;a href="https://www.nordicsemi.com/DocLib?Product=nRF52832%20core%20documentation&amp;amp;tags=nRF52832%2CnRF52+DK"&gt;Nordic Documentation&lt;/a&gt; has links to all of the resources needed to use the nRF52 DK.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;!--mce:protected %3C%21--mce%3Aprotected%20%253C%2521--mce%253Aprotected%2520%25253C%252521--mce%25253Aprotected%252520%2525253C%25252521--mce%2525253Aprotected%25252520%252525253C%2525252521--mce%252525253Aprotected%2525252520%25252525253C%252525252521--%252525252520%252525252520%252525252520%252525252520and%252525252520nRF52832%252525252520SoCs%252525252520and%252525252520the%252525252520Nordic%252525252520%25252525255BnRF52840%252525252520Dongle%25252525255D%25252525255Bdongle%25252525255D.%252525252520--%25252525253E--%252525253E--%2525253E--%25253E--%253E--%3E--&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;nRF Connect For Desktop -&amp;nbsp;&lt;/strong&gt;The &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Connect-for-desktop"&gt;nRF Connect For Desktop&lt;/a&gt; application allows developers to flash new firmware to the board, monitor connections, etc. This software is necessary to program the board to work correctly with the Connect IQ simulator.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;An up-to-date Connect IQ SDK -&amp;nbsp;&lt;/strong&gt;To use the BLE APIs, developers should be working with the current version of the Connect IQ SDK.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Firmware for the nRF52 DK or nRF52840 Dongle -&amp;nbsp;&lt;/strong&gt;The memory layout of the&amp;nbsp;development board will need to be flashed to a different firmware for use with the Connect IQ SDK:&amp;nbsp;&lt;a href="https://developer.garmin.com/downloads/connect-iq/connectivity_2.0.1_115k2_with_s132_5.0.zip"&gt;nRF52 DK firmware&lt;/a&gt;&amp;nbsp;or &lt;a href="https://developer.garmin.com/downloads/connect-iq/connectivity_1.0.0_usb_with_s132_5.1.0.zip"&gt;nRF52840 Dongle firmware&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;!--mce:protected %3C%21--mce%3Aprotected%20%253C%2521--mce%253Aprotected%2520%25253C%252521--mce%25253Aprotected%252520%2525253C%25252521--mce%2525253Aprotected%25252520%252525253C%2525252521--mce%252525253Aprotected%2525252520%25252525253C%252525252521--*%252525252520%25252525255BnRF52840%252525252520Dongle%252525252520firmware%25252525255D%25252525255BDongle_firmware%25252525255D--%25252525253E--%252525253E--%2525253E--%25253E--%253E--%3E--&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="windows"&gt;Windows&lt;/h3&gt;
&lt;p&gt;The drivers and applications needed to communicate with the nRF52 DK are all included in the installation of &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Connect-for-desktop"&gt;nRF Connect for Desktop&lt;/a&gt; for the Windows platform. Once this application is installed along with the necessary drivers, the nRF52 DK should be found by the nRF Connect for Desktop application.&lt;/p&gt;
&lt;p&gt;At this point, proceed to the &lt;a href="#Using-Nordic-nRF-Connect"&gt;Using Nordic nRF Connect&lt;/a&gt; section.&lt;/p&gt;
&lt;h3 id="mac"&gt;Mac&lt;/h3&gt;
&lt;p&gt;When using macOS, developers will need to manually install the JLink/JTrace USB drivers to communicate with the nRF52 DK board. To do so, download and install the Segger JLink installer &lt;a href="https://www.segger.com/downloads/jlink/JLink_MacOSX_V622g.pkg"&gt;package 6.22g&lt;/a&gt; for Mac.&lt;/p&gt;
&lt;p&gt;Once this is completed, developers will need to install the &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Connect-for-desktop"&gt;nRF Connect for Desktop&lt;/a&gt; for Mac.&lt;/p&gt;
&lt;p&gt;At this point, proceed to the &lt;a href="#Using-Nordic-nRF-Connect"&gt;Using Nordic nRF Connect&lt;/a&gt; section.&lt;/p&gt;
&lt;h3 id="linux"&gt;Linux&lt;/h3&gt;
&lt;p&gt;When using Linux, developers will need to manually install the JLink/JTrace USB drivers to communicate with the nRF52 DK board. To do so, download and install using the appropriate Segger JLink installer for Linux:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;32-bit: &lt;a href="https://www.segger.com/downloads/jlink/JLink_Linux_V622g_i386.deb"&gt;JLink_6.22g - 32&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;64-bit: &lt;a href="https://www.segger.com/downloads/jlink/JLink_Linux_V622g_x86_64.deb"&gt;JLink_6.22g - 64&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Once this is completed developers will need to install the &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Connect-for-desktop"&gt;nRF Connect for Desktop&lt;/a&gt; for Linux.&lt;/p&gt;
&lt;p&gt;At this point, proceed to the &lt;a href="#Using-Nordic-nRF-Connect"&gt;Using Nordic nRF Connect&lt;/a&gt; section.&lt;/p&gt;
&lt;h3 id="usingnordicnrfconnect"&gt;Using Nordic nRF Connect&lt;/h3&gt;
&lt;p&gt;The nRF Connect Desktop application will need to be installed. Please see the above sections for the appropriate links.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Once installed, launch the application. Click &lt;em&gt;Add/remove apps&lt;/em&gt;&lt;/p&gt;
&lt;em&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-00-01/pastedimage1556206427467v2.png" /&gt;&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Install the &lt;em&gt;Programmer&lt;/em&gt; app.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Plug in the nRF52 board.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;Launch&lt;/em&gt; the &lt;em&gt;Programmer&lt;/em&gt; app.&lt;/p&gt;
&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-00-01/nRFConnectProgrammerLaunch.png" /&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Near the top left, click &lt;em&gt;Select device&lt;/em&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Select the correct device.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Click &lt;em&gt;Read&lt;/em&gt; to see the Memory Layout of the connected device.&lt;a class="footnote" id="fnref:12" title="see footnote" href="#fn:12"&gt;[12]&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Drag and drop or click &lt;em&gt;Add HEX file&lt;/em&gt; to prepare the desired Memory Layout with the proper &lt;code&gt;.hex&lt;/code&gt; file.&lt;/p&gt;
&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-00-01/nRFConnectPrepMemoryLayout.png" /&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Click &lt;em&gt;Erase &amp;amp; write&lt;/em&gt; to flash the new memory layout.&lt;/p&gt;
&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-00-01/nRFConnectWriteMemoryLayout.png" /&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id="findingthecomport"&gt;Finding The COM Port&lt;/h3&gt;
&lt;p&gt;Now that the board is properly communicating with the computer, it&amp;rsquo;s time to figure out which port it&amp;rsquo;s utilizing.&lt;/p&gt;
&lt;h4 id="windows"&gt;Windows&lt;/h4&gt;
&lt;p&gt;Open up Device Manager and find your device under &lt;code&gt;Ports&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;It will look something like this:&lt;/p&gt;
&lt;figure&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-00-01/nRFJLinkDevMgr.png" /&gt;&lt;/figure&gt;
&lt;p&gt;The communications port is listed in parentheses. In the example above the communications port is &lt;code&gt;COM4&lt;/code&gt;. Copy this to be used in a later step and proceed to &lt;a href="#setting-the-com-port"&gt;Setting the COM Port&lt;/a&gt;.&lt;/p&gt;
&lt;h4 id="mac"&gt;Mac&lt;/h4&gt;
&lt;p&gt;Open up a terminal and type:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ls /dev/tty.usbmodem*
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;then press &lt;code&gt;Tab&lt;/code&gt;. This should list out the port information in the format &lt;code&gt;/dev/tty.usbmodem&amp;lt;number&amp;gt;&lt;/code&gt;. Copy this to be used in a later step and proceed to &lt;a href="#setting-the-com-port"&gt;Setting the COM Port&lt;/a&gt;.&lt;/p&gt;
&lt;h4 id="linux"&gt;Linux&lt;/h4&gt;
&lt;p&gt;Open up a terminal and type:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ls /dev/ttyACM*
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;then press &lt;code&gt;Tab&lt;/code&gt;. This should list out the port information in the format &lt;code&gt;/dev/ttyACM&amp;lt;number&amp;gt;&lt;/code&gt;. Copy this to be used in a later step and proceed to &lt;a href="#setting-the-com-port"&gt;Setting the COM Port&lt;/a&gt;.&lt;/p&gt;
&lt;h4 id="settingthecomport"&gt;Setting the COM Port&lt;/h4&gt;
&lt;p&gt;At this point the nRF52 is properly communicating with the development environment and the com port information has been retrieved. The final step is to set the COM port in the Connect IQ Simulator.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Launch the simulator via Eclipse or command line tools.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Select &lt;em&gt;Settings&lt;/em&gt; &amp;gt; &lt;em&gt;BLE Settings&lt;/em&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In the dialog box, enter the COM port information from &lt;a href="#finding-the-com-port"&gt;Finding the COM Port&lt;/a&gt;.&lt;/p&gt;
&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-00-01/nRFSetComPortSim.png" /&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Click &lt;em&gt;OK&lt;/em&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;It&amp;rsquo;s possible that developers might encounter an error. This is likely due to a failure to set the COM Port for the Connect IQ simulator. If an error occurs, then developers have a few things they can check.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Double check the COM Port assignment:&lt;/strong&gt; Follow the steps for the correct environment to &lt;a href="#finding-the-com-port"&gt;find&lt;/a&gt; and confirm the COM Port.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Ensure there are no copy/paste errors:&lt;/strong&gt; Double check the information entered when &lt;a href="#setting-the-com-port"&gt;setting the COM Port&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;That&amp;rsquo;s it! If all goes well, then the Connect IQ Simulator will use the nRF52 DK board BLE chipset to communicate with nearby BLE devices per the Connect IQ Bluetooth Low Energy APIs. For more information on the APIs, please refer to the &lt;a href="https://developer.garmin.com/downloads/connect-iq/monkey-c/doc/Toybox.html"&gt;API documentation&lt;/a&gt; and sample applications included in the Connect IQ SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: BLE, Getting Started, CIQ, FAQ&lt;/div&gt;
</description></item><item><title>Getting Started with Connect IQ BLE Development</title><link>https://forums.garmin.com/developer/connect-iq/w/wiki/19/getting-started-with-connect-iq-ble-development/revision/1</link><pubDate>Fri, 25 Oct 2019 20:07:20 GMT</pubDate><guid isPermaLink="false">a9571b57-dd57-479e-8763-8f8a603e40aa:4f4abd96-e5b5-46ee-bd10-d6de608751dd</guid><dc:creator>Former Member</dc:creator><comments>https://forums.garmin.com/developer/connect-iq/w/wiki/19/getting-started-with-connect-iq-ble-development#comments</comments><description>Revision 1 posted to Wiki by Former Member on 10/25/2019 8:07:20 PM&lt;br /&gt;
&lt;p&gt;Starting with Connect IQ version 3.1.0, developers have the ability to communicate directly with devices via the Bluetooth Low Energy wireless communication protocol. This has opened up a whole new world of possibilities for what can be done with Connect IQ. For the uninitiated, the setup process to get started can seem quite daunting. The purpose of this setup guide is to help lighten the load to get developers off the ground as quickly as possible.&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="resources"&gt;Resources&lt;/h2&gt;
&lt;p&gt;When going through this guide, developers will want to keep a few things handy.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Connect IQ BLE API Documentation -&amp;nbsp;&lt;/strong&gt;Having the &lt;a href="https://developer.garmin.com/downloads/connect-iq/monkey-c/doc/Toybox.html"&gt;API Documentation&lt;/a&gt; close by will be critical (especially in the later steps of this document).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Nordic nRF52 DK -&amp;nbsp;&lt;/strong&gt;The Connect IQ team has built out the Connect IQ SDK tools to be compatible with the &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Kits/nRF52-DK"&gt;Nordic nRF52 DK&lt;/a&gt; Bluetooth 5 and Bluetooth mesh Development Kit for nRF52810.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Nordic Documentation Page -&amp;nbsp;&lt;/strong&gt;The &lt;a href="https://www.nordicsemi.com/DocLib?Product=nRF52832%20core%20documentation&amp;amp;tags=nRF52832%2CnRF52+DK"&gt;Nordic Documentation&lt;/a&gt; has links to all of the resources needed to use the nRF52 DK.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;!--mce:protected %3C%21--mce%3Aprotected%20%253C%2521--mce%253Aprotected%2520%25253C%252521--mce%25253Aprotected%252520%2525253C%25252521--mce%2525253Aprotected%25252520%252525253C%2525252521--mce%252525253Aprotected%2525252520%25252525253C%252525252521--%252525252520%252525252520%252525252520%252525252520and%252525252520nRF52832%252525252520SoCs%252525252520and%252525252520the%252525252520Nordic%252525252520%25252525255BnRF52840%252525252520Dongle%25252525255D%25252525255Bdongle%25252525255D.%252525252520--%25252525253E--%252525253E--%2525253E--%25253E--%253E--%3E--&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;nRF Connect For Desktop -&amp;nbsp;&lt;/strong&gt;The &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Connect-for-desktop"&gt;nRF Connect For Desktop&lt;/a&gt; application allows developers to flash new firmware to the board, monitor connections, etc. This software is necessary to program the board to work correctly with the Connect IQ simulator.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;An up-to-date Connect IQ SDK -&amp;nbsp;&lt;/strong&gt;To use the BLE APIs, developers should be working with the current version of the Connect IQ SDK.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Firmware for the nRF52 DK or nRF52840 Dongle -&amp;nbsp;&lt;/strong&gt;The memory layout of the&amp;nbsp;development board will need to be flashed to a different firmware for use with the Connect IQ SDK:&amp;nbsp;&lt;a href="https://developer.garmin.com/downloads/connect-iq/connectivity_2.0.1_115k2_with_s132_5.0.zip"&gt;nRF52 DK firmware&lt;/a&gt;&amp;nbsp;or &lt;a href="https://developer.garmin.com/downloads/connect-iq/connectivity_1.0.0_usb_with_s132_5.1.0.zip"&gt;nRF52840 Dongle firmware&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;!--mce:protected %3C%21--mce%3Aprotected%20%253C%2521--mce%253Aprotected%2520%25253C%252521--mce%25253Aprotected%252520%2525253C%25252521--mce%2525253Aprotected%25252520%252525253C%2525252521--mce%252525253Aprotected%2525252520%25252525253C%252525252521--*%252525252520%25252525255BnRF52840%252525252520Dongle%252525252520firmware%25252525255D%25252525255BDongle_firmware%25252525255D--%25252525253E--%252525253E--%2525253E--%25253E--%253E--%3E--&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="windows"&gt;Windows&lt;/h3&gt;
&lt;p&gt;The drivers and applications needed to communicate with the nRF52 DK are all included in the installation of &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Connect-for-desktop"&gt;nRF Connect for Desktop&lt;/a&gt; for the Windows platform. Once this application is installed along with the necessary drivers, the nRF52 DK should be found by the nRF Connect for Desktop application.&lt;/p&gt;
&lt;p&gt;At this point, proceed to the &lt;a href="#Using-Nordic-nRF-Connect"&gt;Using Nordic nRF Connect&lt;/a&gt; section.&lt;/p&gt;
&lt;h3 id="mac"&gt;Mac&lt;/h3&gt;
&lt;p&gt;When using macOS, developers will need to manually install the JLink/JTrace USB drivers to communicate with the nRF52 DK board. To do so, download and install the Segger JLink installer &lt;a href="https://www.segger.com/downloads/jlink/JLink_MacOSX_V622g.pkg"&gt;package 6.22g&lt;/a&gt; for Mac.&lt;/p&gt;
&lt;p&gt;Once this is completed, developers will need to install the &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Connect-for-desktop"&gt;nRF Connect for Desktop&lt;/a&gt; for Mac.&lt;/p&gt;
&lt;p&gt;At this point, proceed to the &lt;a href="#Using-Nordic-nRF-Connect"&gt;Using Nordic nRF Connect&lt;/a&gt; section.&lt;/p&gt;
&lt;h3 id="linux"&gt;Linux&lt;/h3&gt;
&lt;p&gt;When using Linux, developers will need to manually install the JLink/JTrace USB drivers to communicate with the nRF52 DK board. To do so, download and install using the appropriate Segger JLink installer for Linux:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;32-bit: &lt;a href="https://www.segger.com/downloads/jlink/JLink_Linux_V622g_i386.deb"&gt;JLink_6.22g - 32&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;64-bit: &lt;a href="https://www.segger.com/downloads/jlink/JLink_Linux_V622g_x86_64.deb"&gt;JLink_6.22g - 64&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Once this is completed developers will need to install the &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Connect-for-desktop"&gt;nRF Connect for Desktop&lt;/a&gt; for Linux.&lt;/p&gt;
&lt;p&gt;At this point, proceed to the &lt;a href="#Using-Nordic-nRF-Connect"&gt;Using Nordic nRF Connect&lt;/a&gt; section.&lt;/p&gt;
&lt;h3 id="usingnordicnrfconnect"&gt;Using Nordic nRF Connect&lt;/h3&gt;
&lt;p&gt;The nRF Connect Desktop application will need to be installed. Please see the above sections for the appropriate links.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Once installed, launch the application. Click &lt;em&gt;Add/remove apps&lt;/em&gt;&lt;/p&gt;
&lt;em&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-00-01/pastedimage1556206427467v2.png" /&gt;&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Install the &lt;em&gt;Programmer&lt;/em&gt; app.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Plug in the nRF52 board.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;Launch&lt;/em&gt; the &lt;em&gt;Programmer&lt;/em&gt; app.&lt;/p&gt;
&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-00-01/nRFConnectProgrammerLaunch.png" /&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Near the top left, click &lt;em&gt;Select device&lt;/em&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Select the correct device.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Click &lt;em&gt;Read&lt;/em&gt; to see the Memory Layout of the connected device.&lt;a class="footnote" id="fnref:12" title="see footnote" href="#fn:12"&gt;[12]&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Drag and drop or click &lt;em&gt;Add HEX file&lt;/em&gt; to prepare the desired Memory Layout with the proper &lt;code&gt;.hex&lt;/code&gt; file.&lt;/p&gt;
&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-00-01/nRFConnectPrepMemoryLayout.png" /&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Click &lt;em&gt;Erase &amp;amp; write&lt;/em&gt; to flash the new memory layout.&lt;/p&gt;
&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-00-01/nRFConnectWriteMemoryLayout.png" /&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id="findingthecomport"&gt;Finding The COM Port&lt;/h3&gt;
&lt;p&gt;Now that the board is properly communicating with the computer, it&amp;rsquo;s time to figure out which port it&amp;rsquo;s utilizing.&lt;/p&gt;
&lt;h4 id="windows"&gt;Windows&lt;/h4&gt;
&lt;p&gt;Open up Device Manager and find your device under &lt;code&gt;Ports&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;It will look something like this:&lt;/p&gt;
&lt;figure&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-00-01/nRFJLinkDevMgr.png" /&gt;&lt;/figure&gt;
&lt;p&gt;The communications port is listed in parentheses. In the example above the communications port is &lt;code&gt;COM4&lt;/code&gt;. Copy this to be used in a later step and proceed to &lt;a href="#setting-the-com-port"&gt;Setting the COM Port&lt;/a&gt;.&lt;/p&gt;
&lt;h4 id="mac"&gt;Mac&lt;/h4&gt;
&lt;p&gt;Open up a terminal and type:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ls /dev/tty.usbmodem*
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;then press &lt;code&gt;Tab&lt;/code&gt;. This should list out the port information in the format &lt;code&gt;/dev/tty.usbmodem&amp;lt;number&amp;gt;&lt;/code&gt;. Copy this to be used in a later step and proceed to &lt;a href="#setting-the-com-port"&gt;Setting the COM Port&lt;/a&gt;.&lt;/p&gt;
&lt;h4 id="linux"&gt;Linux&lt;/h4&gt;
&lt;p&gt;Open up a terminal and type:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ls /dev/ttyACM*
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;then press &lt;code&gt;Tab&lt;/code&gt;. This should list out the port information in the format &lt;code&gt;/dev/ttyACM&amp;lt;number&amp;gt;&lt;/code&gt;. Copy this to be used in a later step and proceed to &lt;a href="#setting-the-com-port"&gt;Setting the COM Port&lt;/a&gt;.&lt;/p&gt;
&lt;h4 id="settingthecomport"&gt;Setting the COM Port&lt;/h4&gt;
&lt;p&gt;At this point the nRF52 is properly communicating with the development environment and the com port information has been retrieved. The final step is to set the COM port in the Connect IQ Simulator.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Launch the simulator via Eclipse or command line tools.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Select &lt;em&gt;Settings&lt;/em&gt; &amp;gt; &lt;em&gt;BLE Settings&lt;/em&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In the dialog box, enter the COM port information from &lt;a href="#finding-the-com-port"&gt;Finding the COM Port&lt;/a&gt;.&lt;/p&gt;
&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-00-01/nRFSetComPortSim.png" /&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Click &lt;em&gt;OK&lt;/em&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;It&amp;rsquo;s possible that developers might encounter an error. This is likely due to a failure to set the COM Port for the Connect IQ simulator. If an error occurs, then developers have a few things they can check.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Double check the COM Port assignment:&lt;/strong&gt; Follow the steps for the correct environment to &lt;a href="#finding-the-com-port"&gt;find&lt;/a&gt; and confirm the COM Port.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Ensure there are no copy/paste errors:&lt;/strong&gt; Double check the information entered when &lt;a href="#setting-the-com-port"&gt;setting the COM Port&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;That&amp;rsquo;s it! If all goes well, then the Connect IQ Simulator will use the nRF52 DK board BLE chipset to communicate with nearby BLE devices per the Connect IQ Bluetooth Low Energy APIs. For more information on the APIs, please refer to the &lt;a href="https://developer.garmin.com/downloads/connect-iq/monkey-c/doc/Toybox.html"&gt;API documentation&lt;/a&gt; and sample applications included in the Connect IQ SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: BLE, Getting Started, CIQ, FAQ&lt;/div&gt;
</description></item></channel></rss>