<?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>direction_finding_connectionless_tx - MPU problem/stack</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113840/direction_finding_connectionless_tx---mpu-problem-stack</link><description>I get error about MPU error stack size while trying to run the example from ncs v2.7.0 on nrf52833dk 
 I was able to build correctly and I see in the log file that it gets error on MPU for some problems with the cache 
 I have not made any changes to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Aug 2024 08:00:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113840/direction_finding_connectionless_tx---mpu-problem-stack" /><item><title>RE: direction_finding_connectionless_tx - MPU problem/stack</title><link>https://devzone.nordicsemi.com/thread/499310?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2024 08:00:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47d128b9-4961-43cc-bf99-0bea5e5f01f3</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Avi&lt;/p&gt;
&lt;p&gt;I think the synchronization and CTE might not be able to finish that quick, so every 2 seconds might be tight, but switching between them might be possible. Note that you will also need to have room for your application with the two advertising sets on the nRF52833, so you need to test if the application can fit on the RAM and Flash memory that the nRF52833, but it should be possible to switch between the two, yes. Check out the&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/mpsl/timeslot/README.html"&gt; MPSL timeslots&lt;/a&gt; for how NCS handles such things.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: direction_finding_connectionless_tx - MPU problem/stack</title><link>https://devzone.nordicsemi.com/thread/499040?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2024 12:07:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5134a259-3ab4-4e9a-a4eb-d63c222e534b</guid><dc:creator>Avi</dc:creator><description>&lt;p&gt;I understand.&lt;/p&gt;
&lt;p&gt;Will it be possible to switch transmissions?&lt;/p&gt;
&lt;p&gt;i.e. every 2 odd seconds AOA (1,3,5,7 ...)&lt;/p&gt;
&lt;p&gt;and every 2 even seconds, BLE5 long range (0, 2,4,6...)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: direction_finding_connectionless_tx - MPU problem/stack</title><link>https://devzone.nordicsemi.com/thread/499033?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2024 12:00:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:445502c9-edbe-4a11-bf13-eae38910f332</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Glad to hear you were able to figure that out.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m afraid using Coded PHY (long range) and AOA will not be possible as the continuous tone extension sent during AOA is not compatible with the repeat of transmissions done in Coded PHY (long range).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: direction_finding_connectionless_tx - MPU problem/stack</title><link>https://devzone.nordicsemi.com/thread/498736?ContentTypeID=1</link><pubDate>Sun, 18 Aug 2024 20:15:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efb06fa4-e275-49eb-8bed-6776a6ab3e69</guid><dc:creator>Avi</dc:creator><description>&lt;p&gt;Thanks, I was able to get the correction of the code from UBLOX, indeed it was a specific data that had to be sent.&lt;/p&gt;
&lt;p&gt;Another related question, is it possible to combine a BLE5 long range with the transmission of the Eddystone/AOA?&lt;/p&gt;
&lt;p&gt;Can you show an example based on the original code of NCS?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: direction_finding_connectionless_tx - MPU problem/stack</title><link>https://devzone.nordicsemi.com/thread/498480?ContentTypeID=1</link><pubDate>Thu, 15 Aug 2024 14:03:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5047206-429c-46bd-aa17-41a7682588c1</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Avi&lt;/p&gt;
&lt;p&gt;Okay. I see this is only the source code for the tag, and not the scanner/antenna array, where I assume the filter would be. Please contact U-Blox to make sure there is no filter like this. You can try changing the device name to the same as in the U-Blox tag code with&amp;nbsp;&lt;strong&gt;CONFIG_BT_DEVICE_NAME=&amp;quot;u-blox C209 DF Tag&amp;quot;&amp;nbsp;&lt;/strong&gt;to see if there&amp;#39;s maybe some check on the central side only scanning for devices named DF tags.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There is no Eddystone transmission in the NCS sample, so this must be something U-blox has added. This UUID could also be what the central is filtering.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;static uint8_t uuid[EDDYSTONE_INSTANCE_ID_LEN];&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: direction_finding_connectionless_tx - MPU problem/stack</title><link>https://devzone.nordicsemi.com/thread/498235?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2024 10:17:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f53aaf2-6b73-4123-b3e5-3df7eac64ff0</guid><dc:creator>Avi</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I am using the same nrf52833 device for both the UBLOX code and the code from Nordic. So it is not a &amp;quot;UBLOX device&amp;quot;.&lt;/p&gt;
&lt;p&gt;As for the UBLOX code, I am not aware of any filter.&lt;/p&gt;
&lt;p&gt;The UBLOX code is provided at:&amp;nbsp;&lt;a id="" href="https://github.com/u-blox/c209-aoa-tag"&gt;https://github.com/u-blox/c209-aoa-tag&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It is a connectionless transmission&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In UBLOX code, I get also a eddystone transmission. Is it also part of the Nordic code?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Avi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: direction_finding_connectionless_tx - MPU problem/stack</title><link>https://devzone.nordicsemi.com/thread/498231?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2024 10:12:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb4bc920-6344-43b6-835c-6d64e79b9871</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;My guess for why you don&amp;#39;t see it on the UBlox antenna is that there is some filter on the receiver side set to only pick up and accept transmissions from UBlox devices, so you need to find out what filters it is using. UBlox should probably know what these are. Also, do the UBlox code also work in a connectionless setup and don&amp;#39;t connect to the device?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: direction_finding_connectionless_tx - MPU problem/stack</title><link>https://devzone.nordicsemi.com/thread/498040?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2024 12:26:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb68326b-96d3-4481-bdef-955148f70df2</guid><dc:creator>Avi</dc:creator><description>&lt;p&gt;After increasing the stack size, it started to run:&lt;/p&gt;
&lt;p&gt;Update CTE params...success&lt;br /&gt;Periodic advertising params set...success&lt;br /&gt;Enable CTE...success&lt;br /&gt;Periodic advertising enable...success&lt;br /&gt;Extended advertising enable...success&lt;br /&gt;Get extended advertising address...success&lt;br /&gt;Started extended*** Booting nRF Connect SDK v2.7.0-5cb85570ca43 ***&lt;br /&gt;*** Using Zephyr OS v3.6.99-100befc70c74 ***&lt;br /&gt;Starting Direction Finding periodic advertising Beacon Demo&lt;br /&gt;Bluetooth initialization...[00:00:00.257,324] &amp;lt;inf&amp;gt; bt_hci_core: HW Platform: Nordic Semiconductor (0x0002)&lt;br /&gt;[00:00:00.257,354] &amp;lt;inf&amp;gt; bt_hci_core: HW Variant: nRF52x (0x0002)&lt;br /&gt;[00:00:00.257,385] &amp;lt;inf&amp;gt; bt_hci_core: Firmware: Standard Bluetooth controller (0x00) Version 3.6 Build 99&lt;br /&gt;[00:00:00.257,995] &amp;lt;inf&amp;gt; bt_hci_core: Identity: C0:12:9B:D4:B8:63 (random)&lt;br /&gt;[00:00:00.258,026] &amp;lt;inf&amp;gt; bt_hci_core: HCI: version 5.4 (0x0d) revision 0x0000, manufacturer 0x0059&lt;br /&gt;[00:00:00.258,056] &amp;lt;inf&amp;gt; bt_hci_core: LMP: version 5.4 (0x0d) subver 0xffff&lt;br /&gt;success&lt;br /&gt;Advertising set create...success&lt;br /&gt;Update CTE params...success&lt;br /&gt;Periodic advertising params set...success&lt;br /&gt;Enable CTE...success&lt;br /&gt;Periodic advertising enable...success&lt;br /&gt;Extended advertising enable...success&lt;br /&gt;Get extended advertising address...success&lt;br /&gt;Started extended advertising as C0:12:9B:D4:B8:63 (random)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here is my prj.conf:&lt;/p&gt;
&lt;p&gt;CONFIG_BT=y&lt;br /&gt;CONFIG_BT_DEVICE_NAME=&amp;quot;DF Connectionless Beacon App&amp;quot;&lt;/p&gt;
&lt;p&gt;CONFIG_BT_EXT_ADV=y&lt;br /&gt;CONFIG_BT_PER_ADV=y&lt;br /&gt;CONFIG_BT_BROADCASTER=y&lt;/p&gt;
&lt;p&gt;# Enable Direction Finding Feature including AoA and AoD&lt;br /&gt;CONFIG_BT_DF=y&lt;br /&gt;CONFIG_BT_DF_CONNECTIONLESS_CTE_TX=y&lt;br /&gt;CONFIG_LOG=y&lt;br /&gt;CONFIG_LOG_BACKEND_RTT=y&lt;/p&gt;
&lt;p&gt;CONFIG_MAIN_STACK_SIZE=8192&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But I dont see any reception by the AOA antenna made by UBLOX (B10). I can receive tags with UBLOX code which are programmed into the same nrf52833dk&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;UBLOX told me that I can use Nordic tx tag with the code from the ncs - as I am doing now. But there is no recpetion&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What can be the reason?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: direction_finding_connectionless_tx - MPU problem/stack</title><link>https://devzone.nordicsemi.com/thread/498023?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2024 12:08:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0553be85-e405-4ea9-a4b5-c486898f6556</guid><dc:creator>Avi</dc:creator><description>&lt;p&gt;00&amp;gt; [00:00:00.249,267] &amp;lt;dbg&amp;gt; mpu: region_init: [2] 0x20003740 0x150b000a&lt;br /&gt;00&amp;gt; [00:00:00.249,298] &amp;lt;dbg&amp;gt; bt_hci_core: hci_tx_thread: Started&lt;br /&gt;00&amp;gt; [00:00:00.249,298] &amp;lt;dbg&amp;gt; bt_hci_core: hci_tx_thread: Calling k_poll with 1 events&lt;br /&gt;00&amp;gt; [00:00:00.249,328] &amp;lt;dbg&amp;gt; mpu: mpu_configure_region: Configure MPU region at index 0x2&lt;br /&gt;00&amp;gt; [00:00:00.249,328] &amp;lt;dbg&amp;gt; mpu: region_allocate_and_init: Program MPU region at index 0x2&lt;br /&gt;00&amp;gt; [00:00:00.249,359] &amp;lt;dbg&amp;gt; mpu: region_init: [2] 0x20004e80 0x150b000a&lt;br /&gt;00&amp;gt; [00:00:00.249,420] &amp;lt;dbg&amp;gt; os: setup_thread_stack: stack 0x20003a80 for thread 0x20000988: obj_size=1280 buf_start=0x20003ac0 buf_size 1216 stack_ptr=0x20003f80&lt;br /&gt;00&amp;gt; [00:00:00.249,450] &amp;lt;dbg&amp;gt; mpu: mpu_configure_region: Configure MPU region at index 0x2&lt;br /&gt;00&amp;gt; [00:00:00.249,450] &amp;lt;dbg&amp;gt; mpu: region_allocate_and_init: Program MPU region at index 0x2&lt;br /&gt;00&amp;gt; [00:00:00.249,481] &amp;lt;dbg&amp;gt; mpu: region_init: [2] 0x20003a80 0x150b000a&lt;br /&gt;00&amp;gt; [00:00:00.249,511] &amp;lt;dbg&amp;gt; mpu: mpu_configure_region: Configure MPU region at index 0x2&lt;br /&gt;00&amp;gt; [00:00:00.249,542] &amp;lt;dbg&amp;gt; mpu: region_allocate_and_init: Program MPU region at index 0x2&lt;br /&gt;00&amp;gt; [00:00:00.249,542] &amp;lt;dbg&amp;gt; mpu: region_init: [2] 0x20004e80 0x150b000a&lt;br /&gt;00&amp;gt; [00:00:00.249,633] &amp;lt;dbg&amp;gt; mpu: mpu_configure_region: Configure MPU region at index 0x2&lt;br /&gt;00&amp;gt; [00:00:00.249,664] &amp;lt;dbg&amp;gt; mpu: region_allocate_and_init: Program MPU region at index 0x2&lt;br /&gt;00&amp;gt; [00:00:00.249,664] &amp;lt;dbg&amp;gt; mpu: region_init: [2] 0x20003400 0x150b000a&lt;br /&gt;00&amp;gt; [00:00:00.248,962] &amp;lt;dbg&amp;gt; mpu: region_init: [2] 0x20006ec0 0x150b000a&lt;br /&gt;00&amp;gt; [00:00:00.249,786] &amp;lt;err&amp;gt; os: ***** MPU FAULT *****&lt;br /&gt;00&amp;gt; [00:00:00.249,816] &amp;lt;err&amp;gt; os: Stacking error (context area might be not valid)&lt;br /&gt;00&amp;gt; [00:00:00.249,816] &amp;lt;err&amp;gt; os: Data Access Violation&lt;br /&gt;00&amp;gt; &lt;br /&gt;00&amp;gt; [00:00:00.249,816] &amp;lt;err&amp;gt; os: MMFAR Address: 0x20003438&lt;br /&gt;00&amp;gt; [00:00:00.249,847] &amp;lt;err&amp;gt; os: r0/a1: 0x95de2e74 r1/a2: 0x9ede1e6b r2/a3: 0xc21aabe9&lt;br /&gt;00&amp;gt; [00:00:00.249,877] &amp;lt;err&amp;gt; os: r3/a4: 0x0902ecd0 r12/ip: 0xff37f464 r14/lr: 0x2953c887&lt;br /&gt;00&amp;gt; [00:00:00.249,877] &amp;lt;err&amp;gt; os: xpsr: 0x21000000&lt;br /&gt;00&amp;gt; [00:00:00.249,908] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x00014c98&lt;br /&gt;00&amp;gt; [00:00:00.249,938] &amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 2: Stack overflow on CPU 0&lt;br /&gt;00&amp;gt; [00:00:00.249,969] &amp;lt;err&amp;gt; os: Current thread: 0x20000448 (unknown)&lt;br /&gt;00&amp;gt; [00:00:01.373,321] &amp;lt;err&amp;gt; os: Halting system&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: direction_finding_connectionless_tx - MPU problem/stack</title><link>https://devzone.nordicsemi.com/thread/498008?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2024 11:08:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8be402e6-c5cc-424d-9682-df51f0e38076</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Please provide some details on the error you&amp;#39;re seeing. Can you upload the logging file so we can take a look at exactly what this MPU error says and what the stack size error says.&lt;/p&gt;
&lt;p&gt;Most likely what is wrong is that you need to increase the&amp;nbsp;&lt;strong&gt;CONFIG_MAIN_STACK_SIZE&lt;/strong&gt; or&amp;nbsp;&lt;span&gt;&lt;strong&gt;CONFIG_BT_RX_STACK_SIZE&lt;/strong&gt; in your prj.conf file.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>