<?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 and openthread codintegration</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102134/xm122-and-openthread-codintegration</link><description>Hi, all .. 
 I have two separate applications which are working in their respective SDKs and I want to merge them into a single application/SDK .. 
 My first application is an OpenThread subscriber example which is working properly in its SDK which is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 31 Jul 2023 07:32:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102134/xm122-and-openthread-codintegration" /><item><title>RE: XM122 and openthread codintegration</title><link>https://devzone.nordicsemi.com/thread/438903?ContentTypeID=1</link><pubDate>Mon, 31 Jul 2023 07:32:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52f7ef4e-25a4-4b55-871b-fcd309ab0d8a</guid><dc:creator>obaidashraf</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/marte.m"&gt;Marte Myrvold&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thankyou very much for the detailed insight.&lt;/p&gt;
&lt;p&gt;I have resolved the errors and my OpenThread application is now working with XM122 and XM122&amp;#39;s API calls seems to be producing expected outcomes.&lt;/p&gt;
&lt;p&gt;There were some errors mainly in my sdk_config.h and flash_placements.xml file. After resolving the errors and adding only required code sections (from XM122&amp;#39;s example into OpenThread&amp;#39;s example), I was able to compile the code and execute an initial run on the hardware.&lt;/p&gt;
&lt;p&gt;Thanks again.&lt;/p&gt;
&lt;p&gt;P.S: Thanks&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/waqarrashid33"&gt;waqarrashid33&lt;/a&gt;&amp;nbsp; for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XM122 and openthread codintegration</title><link>https://devzone.nordicsemi.com/thread/438899?ContentTypeID=1</link><pubDate>Mon, 31 Jul 2023 07:28:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2da95fd-20bf-4c9a-b992-7bbead09757e</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;multiple definition of `RTC2_IRQHandler&amp;#39;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Are you using RTC2 for something in your application? RTC2 is used by the 802.15.4 radio driver and the OpenThread stack. Peripherals that are used by the 802.15.4 driver or the OpenThread stack cannot be used directly in the application for something else. See &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_tz_v4.2.0/thread_zigbee__intro.html?cp=9_3_1_0_1_0#thread_zigbee_hardware_requirements_thread"&gt;Thread peripheral requirements&lt;/a&gt; for a list of peripherals that are used.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;multiple definition of `UARTE0_UART0_IRQHandler&amp;#39;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The same is true for UART0.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;`.spim3_tx_buffer&amp;#39; will not fit in region `UNPLACED_SECTIONS&amp;#39;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;You need to add the spim3_tx_buffer section in your flash_placement.xml. See the response from Vidar here for an example: &amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/46916/nrf_queue-will-not-fit-in-region-unplaced_sections-on-nrf52810/185436"&gt;RE: `.nrf_queue&amp;#39; will not fit in region `UNPLACED_SECTIONS&amp;#39; on NRF52810&lt;/a&gt; , and this guide from SEGGER:&amp;nbsp;&lt;a href="https://studio.segger.com/index.htm?https://studio.segger.com/ide_section_placement.htm"&gt;Linking and section placement&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You also have several &amp;#39;undefined reference&amp;#39; errors. For these you need to make sure you have enabled the related configurations in sdk_config.h by setting them to 1, and that you have added the source files and include directories to your SEGGER project.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XM122 and openthread codintegration</title><link>https://devzone.nordicsemi.com/thread/438563?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2023 14:17:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d2daa45-435f-44ac-9acb-e050ae753027</guid><dc:creator>obaidashraf</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/marte.m"&gt;Marte Myrvold&lt;/a&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/waqarrashid33"&gt;waqarrashid33&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have been trying to compile the application by adding XM122&amp;#39;s main.c file in OpenThread&amp;#39;s subcriber example&amp;#39;s main.c .. Actually what I did is that I commented-out whole code of Subscriber&amp;#39;s example and pasted XM122&amp;#39;s code.&lt;/p&gt;
&lt;p&gt;After solving multiple errors, below are the errors which I am getting now and I am not sure why I am getting such errors.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;4&amp;gt; Generating linker script ‘thread_mqtt_sn_client_subscriber_pca10056.ld’
4&amp;gt; Linking thread_mqtt_sn_client_subscriber_pca10056.elf
4&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 7.20/gcc/arm-none-eabi/bin/ld: ../../../../../../external/openthread/lib/nrf52840/gcc/libopenthread-nrf52840-sdk.a(alarm.c.o): in function `RTC2_IRQHandler&amp;#39;:
4&amp;gt; C:\bamboo\xml-data\build-dir\KNG-OL54-BOLO\sdk\sdk\nrf5\external\openthread\project\nrf52840\plat_nrf52840\sdk-nosd\armgcc/../../../../openthread/examples/platforms/nrf528xx/src/alarm.c:667: multiple definition of `RTC2_IRQHandler&amp;#39;; Output/Debug/Obj/thread_mqtt_sn_client_subscriber_pca10056/nrfx_rtc.o:C:\Obaid\Practices\nrf\new\nrf5_sdk_for_thread_and_zigbee_v4.2.0_af27f76\modules\nrfx\drivers\src/nrfx_rtc.c:343: first defined here
4&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 7.20/gcc/arm-none-eabi/bin/ld: ../../../../../../external/openthread/lib/nrf52840/gcc/libopenthread-nrf52840-transport.a(uart.c.o): in function `UARTE0_UART0_IRQHandler&amp;#39;:
4&amp;gt; C:\bamboo\xml-data\build-dir\KNG-OL54-BOLO\sdk\sdk\nrf5\external\openthread\project\nrf52840\plat_nrf52840\uart\armgcc/../../../../openthread/examples/platforms/nrf528xx/src/transport/uart.c:287: multiple definition of `UARTE0_UART0_IRQHandler&amp;#39;; Output/Debug/Obj/thread_mqtt_sn_client_subscriber_pca10056/nrfx_prs.o:C:\Obaid\Practices\nrf\new\nrf5_sdk_for_thread_and_zigbee_v4.2.0_af27f76\modules\nrfx\drivers\src\prs/nrfx_prs.c:81: first defined here
4&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 7.20/gcc/arm-none-eabi/bin/ld: C:/Obaid/Practices/nrf/new/nrf5_sdk_for_thread_and_zigbee_v4.2.0_af27f76/examples/thread/mqttsn_client_subscriber_xm122/pca10056/blank/ses/Output/Debug/Exe/thread_mqtt_sn_client_subscriber_pca10056.elf section `.spim3_tx_buffer&amp;#39; will not fit in region `UNPLACED_SECTIONS&amp;#39;
4&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 7.20/gcc/arm-none-eabi/bin/ld: region `UNPLACED_SECTIONS&amp;#39; overflowed by 8192 bytes
4&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 7.20/gcc/arm-none-eabi/bin/ld: Output/Debug/Obj/thread_mqtt_sn_client_subscriber_pca10056/nrf_sdh.o:C:\Obaid\Practices\nrf\new\nrf5_sdk_for_thread_and_zigbee_v4.2.0_af27f76\components\softdevice\common/nrf_sdh.c:83: undefined reference to `__start_sdh_req_observers&amp;#39;
4&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 7.20/gcc/arm-none-eabi/bin/ld: Output/Debug/Obj/thread_mqtt_sn_client_subscriber_pca10056/nrf_sdh.o:(.rodata.sdh_req_observers+0x4): undefined reference to `__stop_sdh_req_observers&amp;#39;
4&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 7.20/gcc/arm-none-eabi/bin/ld: Output/Debug/Obj/thread_mqtt_sn_client_subscriber_pca10056/nrf_sdh.o:C:\Obaid\Practices\nrf\new\nrf5_sdk_for_thread_and_zigbee_v4.2.0_af27f76\components\softdevice\common/nrf_sdh.c:86: undefined reference to `__start_sdh_state_observers&amp;#39;
4&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 7.20/gcc/arm-none-eabi/bin/ld: Output/Debug/Obj/thread_mqtt_sn_client_subscriber_pca10056/nrf_sdh.o:(.rodata.sdh_state_observers+0x4): undefined reference to `__stop_sdh_state_observers&amp;#39;
4&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 7.20/gcc/arm-none-eabi/bin/ld: Output/Debug/Obj/thread_mqtt_sn_client_subscriber_pca10056/nrf_sdh.o:C:\Obaid\Practices\nrf\new\nrf5_sdk_for_thread_and_zigbee_v4.2.0_af27f76\components\softdevice\common/nrf_sdh.c:89: undefined reference to `__start_sdh_stack_observers&amp;#39;
4&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 7.20/gcc/arm-none-eabi/bin/ld: Output/Debug/Obj/thread_mqtt_sn_client_subscriber_pca10056/nrf_sdh.o:(.rodata.sdh_stack_observers+0x4): undefined reference to `__stop_sdh_stack_observers&amp;#39;
4&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 7.20/gcc/arm-none-eabi/bin/ld: C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 7.20/lib/libc_v7em_fpv4_sp_d16_hard_t_le_eabi_balanced.a(fileops.o): in function `putchar&amp;#39;:
4&amp;gt; fileops.c:(.text.libc.putchar+0x0): undefined reference to `stdout&amp;#39;
4&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 7.20/gcc/arm-none-eabi/bin/ld: fileops.c:(.text.libc.putchar+0x4): undefined reference to `stdout&amp;#39;
4&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 7.20/gcc/arm-none-eabi/bin/ld: C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 7.20/lib/libc_v7em_fpv4_sp_d16_hard_t_le_eabi_balanced.a(fileops.o): in function `puts&amp;#39;:
4&amp;gt; fileops.c:(.text.libc.puts+0x2): undefined reference to `stdout&amp;#39;
4&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 7.20/gcc/arm-none-eabi/bin/ld: fileops.c:(.text.libc.puts+0x6): undefined reference to `stdout&amp;#39;
4&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 7.20/gcc/arm-none-eabi/bin/ld: fileops.c:(.text.libc.puts+0x18): undefined reference to `__SEGGER_RTL_X_file_write&amp;#39;
4&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 7.20/gcc/arm-none-eabi/bin/ld: C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 7.20/lib/libc_v7em_fpv4_sp_d16_hard_t_le_eabi_balanced.a(fileops.o): in function `fwrite&amp;#39;:
4&amp;gt; fileops.c:(.text.libc.fwrite+0xc): undefined reference to `__SEGGER_RTL_X_file_stat&amp;#39;
4&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 7.20/gcc/arm-none-eabi/bin/ld: fileops.c:(.text.libc.fwrite+0x24): undefined reference to `__SEGGER_RTL_X_file_write&amp;#39;
4&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 7.20/gcc/arm-none-eabi/bin/ld: C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 7.20/lib/libc_v7em_fpv4_sp_d16_hard_t_le_eabi_balanced.a(prinops.o): in function `vfprintf_l&amp;#39;:
4&amp;gt; prinops.c:(.text.libc.vfprintf_l+0x12): undefined reference to `__SEGGER_RTL_X_file_bufsize&amp;#39;
4&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 7.20/gcc/arm-none-eabi/bin/ld: C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 7.20/lib/libc_v7em_fpv4_sp_d16_hard_t_le_eabi_balanced.a(prinops.o): in function `printf&amp;#39;:
4&amp;gt; prinops.c:(.text.libc.printf+0xe): undefined reference to `stdout&amp;#39;
4&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 7.20/gcc/arm-none-eabi/bin/ld: prinops.c:(.text.libc.printf+0x12): undefined reference to `stdout&amp;#39;
4&amp;gt; Build failed
Build failed&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XM122 and openthread codintegration</title><link>https://devzone.nordicsemi.com/thread/438131?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2023 18:20:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d40eff08-8ed1-4cad-b9d4-848146e233c8</guid><dc:creator>obaidashraf</dc:creator><description>&lt;p&gt;Ok .. I get it .. Let me try this approach .. I will update you ..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XM122 and openthread codintegration</title><link>https://devzone.nordicsemi.com/thread/437994?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2023 07:33:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98e8d681-f520-4109-8bb3-c580c848497e</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You should use the nRF5 SDK for Thread and Zigbee as your starting point and add XM122 functionality to the OpenThread example, not the other way around.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XM122 and openthread codintegration</title><link>https://devzone.nordicsemi.com/thread/437948?ContentTypeID=1</link><pubDate>Mon, 24 Jul 2023 18:12:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:142687dc-e4f7-46b5-9e5e-a7055f2ff529</guid><dc:creator>obaidashraf</dc:creator><description>&lt;p&gt;That&amp;#39;s how I started with. I started with SDK 15.3 and add XM122 example and compiled it .. It compiled correctly. I then added OpenThread libraries and desired folders in the SDK and compiled OpenThread subscriber application in it as a separate example and it also worked.&lt;/p&gt;
&lt;p&gt;Now I started adding OpenThread functionality in the XM122 example and I am getting errors. What I did is that I commented-out whole XM122&amp;#39;s main.c and copied OpenThread&amp;#39;s subscriber&amp;#39;s main.c in it. It started showing a number of errors.&lt;/p&gt;
&lt;p&gt;Is it the correct way? and is it how you and &lt;a href="https://devzone.nordicsemi.com/members/waqarrashid33"&gt;waqarrashid33&lt;/a&gt;&amp;nbsp; are suggesting?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XM122 and openthread codintegration</title><link>https://devzone.nordicsemi.com/thread/437839?ContentTypeID=1</link><pubDate>Mon, 24 Jul 2023 11:16:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fd5a9c6-7b57-4ffc-beee-08eee367218e</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;As &lt;a href="https://devzone.nordicsemi.com/members/waqarrashid33"&gt;waqarrashid33&lt;/a&gt; says, you should start with the OpenThread subscriber example and add the XM122 based application to that. The nRF5 SDK for Thread and Zigbee v4.2.0 has software components from nRF5 SDK v16.0.0. Therefore, if you are adding an application from nRF5 SDK to one in the Thread and Zigbee SDK, you might not need to add any additional libraries or files from the SDK.&lt;/p&gt;
&lt;p&gt;Please be aware that for new development we recommend using nRF Connect SDK instead of nRF5 SDK. See &amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/nrf-connect-sdk-and-nrf5-sdk-statement"&gt;nRF Connect SDK and nRF5 SDK statement&lt;/a&gt;&amp;nbsp; and &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/debunking-misconceptions-a-technical-analysis-of-nrf5-sdk-and-nrf-connect-sdk"&gt;Debunking misconceptions: A technical analysis of nRF5 SDK and nRF Connect SDK&lt;/a&gt; for more information and comparisons.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XM122 and openthread codintegration</title><link>https://devzone.nordicsemi.com/thread/437754?ContentTypeID=1</link><pubDate>Sat, 22 Jul 2023 18:07:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bea5ff80-e79c-4226-bec3-9bc02af9a783</guid><dc:creator>waqarrashid33</dc:creator><description>&lt;p&gt;I would suggest to first run the subscriber example application on the XM122 and then expand it with the acconeer sdk.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>