<?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>Write MAC to OTP over RTT</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114977/write-mac-to-otp-over-rtt</link><description>I have a custom board with the nRF9160 and nRF7200 connected. 
 I was able to build the radio_test sample to check if everything is working, and for now, it seems to be fine. Here are the PHY stats: 
 Next, I tried to program the MAC using this command</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 30 Sep 2024 14:00:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114977/write-mac-to-otp-over-rtt" /><item><title>RE: Write MAC to OTP over RTT</title><link>https://devzone.nordicsemi.com/thread/504383?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2024 14:00:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8debd71f-e4b0-45ff-9df0-86a7812ddbd5</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The registers are one-time programmable, so they can&amp;#39;t be written to more than once. You can try writing this address to the second MAC address register.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write MAC to OTP over RTT</title><link>https://devzone.nordicsemi.com/thread/504325?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2024 10:31:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b727279-6e24-4458-8ee3-a8f9575b911d</guid><dc:creator>Roman Veselskyi</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/vibe"&gt;Vidar Berg&lt;/a&gt;&amp;nbsp;thanks,&lt;br /&gt;&lt;br /&gt;I have 1 more question regarding the MAC write operation.&lt;br /&gt;&lt;br /&gt;I tried to use the next MAC&amp;nbsp;f2:01:d5:50:6f:52&lt;br /&gt;&lt;br /&gt;This is the command I send over RTT&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;#160;wifi_radio_ficr_prog otp_write_params 0x120 0x50d501f2 0x526f&lt;/pre&gt;&lt;br /&gt;But when I read values, I see that it shows another MAC&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;MAC0.ADDRESS = f0:01:d4:00:4e:02&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;rtt:~$ rtt:~$ wifi_radio_ficr_prog otp_write_params 0x120 0x50d501f2 0x526f
OTP Region is open for R/W

Finished Writing OTP params
rtt:~$ [00:22:05.303,131] &amp;lt;inf&amp;gt; otp_prog: mac addr 0 : Reg1 (0x120) = 0x50d501f2
rtt:~$ [00:22:05.303,741] &amp;lt;inf&amp;gt; otp_prog: mac addr 0 : Reg2 (0x124) = 0x526f
rtt:~$ [00:22:05.304,077] &amp;lt;inf&amp;gt; otp_prog: Written MAC address 0
rtt:~$ [00:22:05.304,077] &amp;lt;inf&amp;gt; otp_prog: Written REGION_DEFAULTS (0x154) : 0xfffffffd
rtt:~$ rtt:~$ wifi_radio_ficr_prog otp_read_params
OTP Region is open for R/W

...

MAC0.ADDRESS0 = 0x00d401f0
MAC0.ADDRESS1 = 0x0000024e
MAC0.ADDRESS = f0:01:d4:00:4e:02

MAC1.ADDRESS0 = 0xffffffff
MAC1.ADDRESS1 = 0xffffffff
MAC1.ADDRESS = ff:ff:ff:ff:ff:ff

CALIB.XO = 0xff
REGION_DEFAULTS = 0xfffffffd

rtt:~$ &lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write MAC to OTP over RTT</title><link>https://devzone.nordicsemi.com/thread/504274?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2024 06:27:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fca2186d-7227-44d7-9d87-4b7ae42c923d</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Roman Veselskyi"]As I understand there&amp;#39;s a way to set MAC from the firmware and not from the OTP as now I have only 0s there and it will not work.[/quote]
&lt;p&gt;There is the CONFIG_WIFI_FIXED_MAC_ADDRESS Kconfig symbol that you can use to override the MAC address stored in OTP. However, this is intended only for testing purposes.&lt;/p&gt;
&lt;p&gt;Only passive scanning is used for Wi-Fi locationing, so the MAC address will not be transmitted.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write MAC to OTP over RTT</title><link>https://devzone.nordicsemi.com/thread/504133?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2024 09:22:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f73cef72-cd90-457e-838d-a91a71ac344d</guid><dc:creator>Roman Veselskyi</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/vibe"&gt;Vidar Berg&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Thanks, I already figure out that I did send command in the wrong order.&amp;nbsp;Fortunately, I ordered 3 boards and blocked only one of them. &lt;br /&gt;&lt;br /&gt;As I understand there&amp;#39;s a way to set MAC from the firmware and not from the OTP as now I have only 0s there and it will not work. By the way we will use&amp;nbsp;&lt;span&gt;nRF7200 only for scan and WIFI location does it also require the MAC address?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I am using SDK 2.6.1&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Write MAC to OTP over RTT</title><link>https://devzone.nordicsemi.com/thread/503776?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2024 13:30:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7e51d34-2fbb-4d00-ad92-4d23645eda77</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The arguments should be passed like this: &amp;#39;wifi_radio_ficr_prog otp_write_params 0x120 0x23f4a7f8 0x06ce&amp;#39;, without &amp;#39;arg1=&amp;#39; and &amp;#39;arg2=&amp;#39;. I see that the protection bits were set after you ran the &amp;#39;wifi_radio_ficr_prog otp_write_params 0x100 arg=0x50FA50FA&amp;#39; command, which unfortunately means the FICR can no longer be updated. Do you have another board you can test this on? Also, which SDK version are you on?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>