<?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>XM122 XB122 prototyping</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92046/xm122-xb122-prototyping</link><description>Hi new to this, so excuse the elementary question 
 Can I put custom software on a XM122 using the XB122 dev kit? This is the only hardware I have, is nRFUtil my only option to push software to the XM122? Seems like the other tools need different dev</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 12 Oct 2022 06:31:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92046/xm122-xb122-prototyping" /><item><title>RE: XM122 XB122 prototyping</title><link>https://devzone.nordicsemi.com/thread/390352?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2022 06:31:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ca1f526-90a6-43d7-8c6a-7102bb2ddfcc</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi Andreas,&lt;/p&gt;
&lt;p&gt;Nice to hear that you were able to solve your problem, good job!&lt;/p&gt;
[quote user="AndreasLiebenberg"]I do now have a next problem[/quote]
&lt;p&gt;Could you create a new ticket for this new problem?&lt;br /&gt;It would help us keep DevZone tidy, and easier for other users to find solutions later.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XM122 XB122 prototyping</title><link>https://devzone.nordicsemi.com/thread/390331?ContentTypeID=1</link><pubDate>Tue, 11 Oct 2022 20:32:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6df4159-4154-4365-b24e-1686993b940c</guid><dc:creator>AndreasLiebenberg</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p dir="ltr"&gt;Thanks nRF52840DK did the trick. I used the 10pin Cable connected to Debug Out on the nRF52840 DK and the SWD/JTAG on the XB122. To solve the power supply I shorted the SB47 on the nRF52840 DK which gave the XB122 power through the debug interface and prevents me from updating the nRF52840 DK itself. I could deploy the bootloader using commands&amp;quot;:&lt;br /&gt;nrfjprog -f nrf52 --erasepage 0xFE000-0x100000&lt;br /&gt;nrfjprog -f nrf52 --program production_sw.hex --sectorerase --verify&lt;br /&gt;nrfjprog -f nrf52 --reset&lt;/p&gt;
&lt;p dir="ltr"&gt;And the could load the supplied&amp;nbsp;S140_nRF52.6.1.1_Softdevice.hex&lt;/p&gt;
&lt;p dir="ltr"&gt;After that I could reload old samples and device is functioning normal.&lt;/p&gt;
&lt;p dir="ltr"&gt;This put me back on deploying my own App.&amp;nbsp; I followed your advice and used the command&lt;/p&gt;
&lt;p dir="ltr"&gt;nrfutil pkg generate --hw-version 52 --application-version 1 --application acc_bluetooth_beacon.hex --softdevice s140_nrf52_6.1.1_softdevice.hex --sd-req 0xB6 --sd-id 0xB6 app_dfu_package.zip&lt;/p&gt;
&lt;p dir="ltr"&gt;which included the --softdevice setting.&amp;nbsp; This managed to deploy and I can redeploy, so the alignment and combination of the .hex files seems fine.&amp;nbsp; Thanks!&lt;/p&gt;
&lt;p dir="ltr"&gt;I do now have a next problem, the sample now fails in the&amp;nbsp;create_envelope_service() function.&lt;/p&gt;
&lt;p dir="ltr"&gt;service_handle = acc_service_create(envelope_configuration); returns a NULL handle, all up to this point looked fine...&lt;/p&gt;
&lt;p dir="ltr"&gt;The errors in the debug window shows:&lt;/p&gt;
&lt;p dir="ltr"&gt;&amp;quot;&amp;lt;error&amp;gt; app: sensor_protocol:Timeout waiting for event on sensor 1&lt;br /&gt;&amp;lt;error&amp;gt; app: cpd_cbank_and_vana_calibration:Failed to get result for vana setting=0&lt;br /&gt;&amp;lt;error&amp;gt; app: cpd_cbank_and_vana_calibration:Get Vana result failed&lt;br /&gt;&amp;lt;error&amp;gt; app: sensor_manager:Calibration failure for sensor 1&lt;br /&gt;&amp;lt;info&amp;gt; app: Could not create envelope service&amp;quot;&lt;/p&gt;
&lt;p dir="ltr"&gt;Any idea where to start looking for this next problem?&lt;/p&gt;
&lt;p dir="ltr"&gt;Thanks&lt;/p&gt;
&lt;p dir="ltr"&gt;Cheers&lt;/p&gt;
&lt;p dir="ltr"&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XM122 XB122 prototyping</title><link>https://devzone.nordicsemi.com/thread/389205?ContentTypeID=1</link><pubDate>Tue, 04 Oct 2022 12:30:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5db3144-5a4b-4a39-ad82-2f1e277a3b7a</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi Andreas,&lt;/p&gt;
&lt;p&gt;Yes, if it looks like the bootloader is broken, a debugger is the only option.&lt;/p&gt;
&lt;p&gt;You can use a J-Link as you say.&lt;/p&gt;
&lt;p&gt;Another alternative is to use any of our nRF Developement Kits, as they come with a debugger on board, and are able to program external chips.&lt;br /&gt;For example the &lt;a href="https://www.nordicsemi.com/Products/Development-hardware/nRF52840-DK"&gt;nRF52840DK&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XM122 XB122 prototyping</title><link>https://devzone.nordicsemi.com/thread/389192?ContentTypeID=1</link><pubDate>Tue, 04 Oct 2022 11:55:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8450a58a-8ac6-4609-ac05-16dd9e7b1ee6</guid><dc:creator>AndreasLiebenberg</dc:creator><description>&lt;p&gt;Thanks Sigurd,&lt;/p&gt;
&lt;p&gt;I will look into this in more detail.&amp;nbsp; No, unfortunately I cannot DFU Serial anymore, it cannot connect to COM5, probably caused by the same issue.&amp;nbsp; As I understand J-link is now my only option?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XM122 XB122 prototyping</title><link>https://devzone.nordicsemi.com/thread/389177?ContentTypeID=1</link><pubDate>Tue, 04 Oct 2022 11:08:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:581cdcca-4ab8-4815-815f-12984110cc0c</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi Andreas,&lt;/p&gt;
&lt;p&gt;Likely, your bootloader has support for BLE integrated.&lt;/p&gt;
&lt;p&gt;But I think I have figured out what have gone wrong here.&lt;br /&gt;From &amp;quot;nrfutil pkg generate --help&amp;quot;:&lt;/p&gt;
&lt;p&gt;&amp;quot;--softdevice TEXT The SoftDevice firmware file.&amp;quot;&lt;/p&gt;
&lt;p&gt;So to add a softdevice to the image, you must tag it as a soft-device.&lt;/p&gt;
&lt;p&gt;You meged it into the application with:&lt;/p&gt;
[quote user="AndreasLiebenberg"]mergehex -m merged.hex s140_nrf52_6.1.1_softdevice.hex -o merged_output.hex[/quote]
&lt;p&gt;Because of this, nrfutil does not know that this is a softdevice, and may have written it to the wrong place in flash.&lt;br /&gt;Therefore, the bootloader can no longer access the softdevice to do BLE.&lt;/p&gt;
&lt;p&gt;However, as you said, you can do dfu over serial, right?&lt;/p&gt;
[quote user="AndreasLiebenberg"]nrfutil dfu serial -pkg bluetooth_demo_app_xm122.zip -p COM5[/quote]
&lt;p&gt;In this case, try to generate a new zip file for DFU using the --softdevice. See&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/guides/short-range-guides/b/getting-started/posts/nrf52840-dongle-programming-tutorial"&gt;nRF52840 Dongle Programming Tutorial&lt;/a&gt;&amp;nbsp; for how to use nrfutil properly.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XM122 XB122 prototyping</title><link>https://devzone.nordicsemi.com/thread/389001?ContentTypeID=1</link><pubDate>Mon, 03 Oct 2022 13:08:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:553f3cf2-d2a9-4c1e-aed9-25400426e69f</guid><dc:creator>AndreasLiebenberg</dc:creator><description>&lt;p&gt;Zip Uploaded.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XM122 XB122 prototyping</title><link>https://devzone.nordicsemi.com/thread/389000?ContentTypeID=1</link><pubDate>Mon, 03 Oct 2022 13:08:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb647336-b1fe-400e-a095-582bc6dff5a7</guid><dc:creator>AndreasLiebenberg</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1602.app_5F00_dfu_5F00_package.zip"&gt;devzone.nordicsemi.com/.../1602.app_5F00_dfu_5F00_package.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XM122 XB122 prototyping</title><link>https://devzone.nordicsemi.com/thread/388981?ContentTypeID=1</link><pubDate>Mon, 03 Oct 2022 11:58:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f69db351-072e-4701-b5f8-347200ee154e</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you send the last zip file you uploaded to the device before it stopped working?&lt;/p&gt;
&lt;p&gt;Last time you uploaded firmware to the device, did you use serial(cable) or Bluetooth(mobile)?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XM122 XB122 prototyping</title><link>https://devzone.nordicsemi.com/thread/388974?ContentTypeID=1</link><pubDate>Mon, 03 Oct 2022 11:21:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:309f86de-3454-4af5-9f2d-826e7628103a</guid><dc:creator>AndreasLiebenberg</dc:creator><description>&lt;p&gt;Oops, I managed the same, I also pressed Verify instead of reply, hope you can see this reply and reopen.&lt;/p&gt;
&lt;p&gt;I am not 100% sure, but I did use my Android phone and nRF Util to DFU the device, so I assume the bootloader has BLE capabilities.&amp;nbsp; But I have tried that again, and currently cannot see the device in nRF Util on my Andoid, hence I assume it has been overwritten with my last DFU&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XM122 XB122 prototyping</title><link>https://devzone.nordicsemi.com/thread/388971?ContentTypeID=1</link><pubDate>Mon, 03 Oct 2022 11:12:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f1e3bb3-185a-4fbf-b0ed-a0f02cb96b93</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi Andreas,&lt;/p&gt;
&lt;p&gt;If you have not used a J-Link yet, I think the bootloader should still be present on the device, since the bootloader should not be able to overwrite itself.&lt;/p&gt;
&lt;p&gt;To do DFU over Bluetooth Low Energy (LE), as the tutorial explains, you need to have Bluetooth LE supported when in DFU mode.&lt;/p&gt;
&lt;p&gt;Do you know if the last firmware you uploaded to the device has support for sending firmware over Bluetooth LE? (Also known as Firmware Over the Air (FOTA)&lt;/p&gt;
&lt;p&gt;Do you know if the Bootloader has support for Bluetooth LE&amp;nbsp; (Not in the application, but in the bootloader?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XM122 XB122 prototyping</title><link>https://devzone.nordicsemi.com/thread/388960?ContentTypeID=1</link><pubDate>Mon, 03 Oct 2022 10:52:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3e559d7-acb3-4f73-be83-58a8cbb5d942</guid><dc:creator>AndreasLiebenberg</dc:creator><description>&lt;p&gt;No, I do not have a J-Link, I was hoping there might be another solution...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XM122 XB122 prototyping</title><link>https://devzone.nordicsemi.com/thread/388954?ContentTypeID=1</link><pubDate>Mon, 03 Oct 2022 10:37:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7415714-9968-4751-bd38-c5bb49abe02b</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi Andreas,&lt;/p&gt;
&lt;p&gt;Sorry for the notifications, but I managed to misclick on your answer and &amp;quot;Mark as Solution&amp;quot;.&lt;/p&gt;
[quote user="AndreasLiebenberg"]This also worked and I could see distance measurements on my phone as the demo should do.[/quote]
&lt;p&gt;Ah, so it worked first, good to know!&lt;/p&gt;
&lt;p&gt;Just to be sure: Have you ever connected a J-Link debugger or other debugger to your XM/XB122?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XM122 XB122 prototyping</title><link>https://devzone.nordicsemi.com/thread/388826?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2022 15:46:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:477324ac-910c-46b1-adca-4df93810a9c3</guid><dc:creator>AndreasLiebenberg</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;Thanks, here the answers:&lt;/p&gt;
&lt;p&gt;I take your point on the XM122 User guide and Acconeer, but am I missing something? Are all the steps not referring to your tools?&amp;nbsp; It starts with &amp;quot;&lt;span&gt;Download and install &amp;ldquo;nRF5x Command Line Tools&amp;rdquo; from www.nordicsemi.com&lt;/span&gt;&amp;quot; I must say, it is confusing who&amp;#39;s tools is who&amp;#39;s and who to talk to.&amp;nbsp; Thanks for the patience!&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;did follow&amp;nbsp;a tutorial &lt;a href="https://www.youtube.com/watch?v=JaVWA4c8-2I"&gt;https://www.youtube.com/watch?v=JaVWA4c8-2I&lt;/a&gt; (not sure if it is the one you are referring to), which instructed me on how to put the bootloader on the device.&amp;nbsp; This DFU was done successfully.&amp;nbsp; I did not generate the package with HRM (I do not know what HRM is).&amp;nbsp; I downloaded a file&amp;nbsp;acc_module_server_dfu_package.zip and deployed that with the command &amp;quot;nrfutil dfu serial -pkg acc_module_server_dfu_package.zip -p COM5&amp;quot;&lt;/p&gt;
&lt;p&gt;This worked.&amp;nbsp; I deployed a second .zip &amp;quot;nrfutil dfu serial -pkg bluetooth_demo_app_xm122.zip -p COM5&amp;quot;&lt;/p&gt;
&lt;p&gt;This also worked and I could see distance measurements on my phone as the demo should do.&lt;/p&gt;
&lt;p&gt;Regarding the last part of restoring the bootloader.&amp;nbsp; Their instructions on how I loaded the original with nrfutil does not work again, it just says no response from COM5.&amp;nbsp; So, I suspect XM/XB122 it is in a vegetable state, I need a &amp;quot;Factory Reset&amp;quot; and a J-Link debugger is the only option?&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks again&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XM122 XB122 prototyping</title><link>https://devzone.nordicsemi.com/thread/388590?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 13:37:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:628db227-ed21-4d22-9df0-3d85d44fe471</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi Andreas:&lt;/p&gt;
[quote user="AndreasLiebenberg"]The instructions&amp;nbsp;from&amp;nbsp;the&amp;nbsp;XM122 Module Software User Guide says:[/quote]
&lt;p&gt;If you have questions to the XM122 guides, contact Acconeer.&lt;/p&gt;
[quote user="Sigurd Hellesvik"]Just to be clear, you have already followed the tutorial and generated the package with hrm and performed a DFU successfully? [/quote]
&lt;p&gt;I did not get the answer to this. Have you ever been able to do DFU on your device?&lt;/p&gt;
[quote user="AndreasLiebenberg"]&lt;p&gt;1) Do I need a J-Link device, is this now the only way to communicate with the XB122?&lt;/p&gt;
&lt;p&gt;2) If so, which is the smallest/cheapest version that will get the job done?&lt;/p&gt;
&lt;p&gt;3) If not, what is the alternative way?&lt;/p&gt;[/quote]
&lt;p&gt;There are two ways to program a device: Using a Debugger or a Bootloader.&lt;/p&gt;
&lt;p&gt;Here is the top result when I search for &amp;quot;bootloader vs debugger&amp;quot;: &lt;a href="https://www.playembedded.org/blog/difference-bootloader-debugger/"&gt;https://www.playembedded.org/blog/difference-bootloader-debugger/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I suspect the XB122 came preprogrammed with a bootloader.&lt;br /&gt;If you programmed it using a debugger, you might have overwritten the bootloader.&lt;br /&gt;In this case you need to program an application with a bootloader to the chip using a debugger.&lt;/p&gt;
&lt;p&gt;With a bootloader, you no longer need a debugger to program the chip.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XM122 XB122 prototyping</title><link>https://devzone.nordicsemi.com/thread/388518?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 10:21:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5349f211-53e3-452f-8c2f-f54c1e13a661</guid><dc:creator>AndreasLiebenberg</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;I have read so much and downloaded so much and tried so many things, I decided I will redo my first basic steps to confirm the actual versions before I answer in detail, but now I see after my last DFU I cannot see the device to do a DFU again.&amp;nbsp; I assume I must now first restore the bootloader.&amp;nbsp; The instructions&amp;nbsp;from&amp;nbsp;the&amp;nbsp;XM122 Module Software User Guide says:&lt;/p&gt;
&lt;p&gt;&amp;quot;2.4 Restore Bootloader&lt;/p&gt;
&lt;p&gt;A backup copy of the bootloader is delivered as part of the &amp;ldquo;production sw.hex&amp;rdquo; file, which also includes Nordic&amp;rsquo;s softdevice (containing their Bluetooth stack). Bootloader and softdevice has been merged into a single hex file, because as of version 15.3.0 of the Nordic SDK they cannot be flashed separately. To restore an XM122 device to its factory condition, do the following using a J-Link: 1. Download and install &amp;ldquo;nRF5x Command Line Tools&amp;rdquo; from www.nordicsemi.com 2. Download and install &amp;ldquo;J-Link Software and Documentation Pack&amp;rdquo; from www.segger.com nrfjprog -f nrf52 -- erasepage 0 xFE000 -0 x100000 nrfjprog -f nrf52 -- program production_sw . hex -- sectorerase -- verify nrfjprog -f nrf52 -- reset &amp;quot;&lt;/p&gt;
&lt;p&gt;My 3 questions now are:&lt;/p&gt;
&lt;p&gt;1) Do I need a J-Link device, is this now the only way to communicate with the XB122?&lt;/p&gt;
&lt;p&gt;2) If so, which is the smallest/cheapest version that will get the job done?&lt;/p&gt;
&lt;p&gt;3) If not, what is the alternative way?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XM122 XB122 prototyping</title><link>https://devzone.nordicsemi.com/thread/388397?ContentTypeID=1</link><pubDate>Wed, 28 Sep 2022 14:14:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cab50b97-1a24-476e-929a-c14f7a10e287</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Which Python application and distance demo are you referring too?&lt;/p&gt;
&lt;p&gt;Just to be clear, you have already followed the tutorial and generated the package with hrm and performed a DFU successfully? &lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XM122 XB122 prototyping</title><link>https://devzone.nordicsemi.com/thread/388172?ContentTypeID=1</link><pubDate>Tue, 27 Sep 2022 14:07:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c30ef766-cdfc-4a5b-85b7-8fe4b823c202</guid><dc:creator>AndreasLiebenberg</dc:creator><description>&lt;p&gt;Hi Jared,&lt;/p&gt;
&lt;p&gt;Already did that, I flashed the DFU with the standard DFU package and looked at the explorer data via Python App.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I then also put the Distance Demo on and can see that running from an Android App.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So the device is working, and how I update seems to be working.&lt;/p&gt;
&lt;p&gt;What I am trying to do is to create my own package to update.&amp;nbsp; I have not modified the sample other than the two items mentioned (Version fix on the RAM vs RAM1) and adding .hex as additional output to the linker.&lt;/p&gt;
&lt;p&gt;The demo App is almost exactly what I need, just distance info in the BLE advertising header.&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XM122 XB122 prototyping</title><link>https://devzone.nordicsemi.com/thread/388148?ContentTypeID=1</link><pubDate>Tue, 27 Sep 2022 12:55:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a170e66-64f7-47b2-85a1-49fdd33f19d5</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;Let&amp;#39;s simplify this a bit by starting with an easier example.&lt;/p&gt;
&lt;p&gt;Can you try to do a DFU with your device and phone by following all the steps until D in &lt;a href="https://devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/getting-started-with-nordics-secure-dfu-bootloader"&gt;this &lt;/a&gt;tutorial.&amp;nbsp;If this works then we could conclude that your HW is probably ok.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XM122 XB122 prototyping</title><link>https://devzone.nordicsemi.com/thread/388116?ContentTypeID=1</link><pubDate>Tue, 27 Sep 2022 11:29:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed11f5b4-827a-4956-a3da-06d8aed6c18c</guid><dc:creator>AndreasLiebenberg</dc:creator><description>&lt;p&gt;Hi Jared,&lt;/p&gt;
&lt;p&gt;Thanks for the prompt reply, I made some progress, but stuck again.&amp;nbsp; After lots of reading and downloading, I have now picked all the tools to be used, and all steps working, except the actual DFU flashing (which now also works, but BLE not advertising).&lt;/p&gt;
&lt;p&gt;Toolset:&lt;/p&gt;
&lt;p&gt;SEGGER Embedded Studio for ARM Release 6.34a Build 2022083102.51023&amp;nbsp;Windows x64&lt;/p&gt;
&lt;p&gt;Python 3.7&lt;/p&gt;
&lt;p&gt;nrfutil - latest version 6.1.6&lt;/p&gt;
&lt;p&gt;mergehex - latest version 10.17.3&lt;/p&gt;
&lt;p&gt;nRF5_SDK_15.3.0_59ac345&lt;/p&gt;
&lt;p&gt;Sample App&amp;nbsp;acconeer_xm122_v2_11_0.zip&lt;/p&gt;
&lt;p&gt;Sample project&amp;nbsp;segger_embedded_studio.emProject&lt;/p&gt;
&lt;p&gt;The project compiles after fixing the issue as explained in&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/67698/undefined-reference-to-__ram1_segment_end__"&gt;undefined reference to `__RAM1_segment_end__&amp;#39;&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I changed the link settings to add a .hex file as output, also seems successful&lt;/p&gt;
&lt;p&gt;I thengenerated the settings.hex with:&lt;/p&gt;
&lt;p&gt;nrfutil settings generate --family NRF52 --application acc_bluetooth_beacon.hex --application-version 1 --bootloader-version 2 --bl-settings-version 1 settings.hex&lt;/p&gt;
&lt;p&gt;Then merged settings with app with:&lt;/p&gt;
&lt;p&gt;mergehex -m acc_bluetooth_beacon.hex settings.hex -o merged.hex&lt;/p&gt;
&lt;p&gt;Then added what seems to be the appropriate softdevice with:&lt;/p&gt;
&lt;p&gt;mergehex -m merged.hex s140_nrf52_6.1.1_softdevice.hex -o merged_output.hex&lt;/p&gt;
&lt;p&gt;Then generated the deployment package with:&lt;/p&gt;
&lt;p&gt;nrfutil pkg generate --hw-version 52 --application-version 1 --application merged_output.hex --sd-req 0xB6 --sd-id 0xB6 app_dfu_package.zip&lt;/p&gt;
&lt;p&gt;All seems fine.&amp;nbsp; But when I try to deploy package to XM122 via XB122 and nRF Toolbox DFU app, the process fails after Bootloader Enabled - ok&lt;/p&gt;
&lt;p&gt;Initializing DFU - fail&lt;/p&gt;
&lt;p&gt;Ok, now for the catch, I was repeating these steps as I was typing and this time it worked, no fail on DFU Init.&amp;nbsp; BUT when I reset the XB-/XM122 I do not see any BLE advertisements as expected, I do not even see the device.&lt;/p&gt;
&lt;p&gt;Any advice on how to debug this will be appreciated.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XM122 XB122 prototyping</title><link>https://devzone.nordicsemi.com/thread/386798?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2022 09:33:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b064405a-0b86-47e8-9366-28fdce5ac199</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
[quote user=""]Can I put custom software on a XM122 using the XB122 dev kit?[/quote]
&lt;p&gt;This is an external third party module, but as far as I can see it has a nRF52840 which has a SWD debug interface that can be used to flash fw. I&amp;#39;m not sure if the devkit you&amp;#39;re referring to has an on board debugger that can be used to flash external boards (&lt;a href="https://developer.acconeer.com/download/xb122-product-brief-pdf/"&gt;It doesn&amp;#39;t look like it&lt;/a&gt;). Either way, you could use a stand alone J-link debugger from SEGGER to flash the XM122 as long the SWD interface has been routed out.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;regards&lt;br /&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>