<?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>why data can not be wrote into the registers of nRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20528/why-data-can-not-be-wrote-into-the-registers-of-nrf52840</link><description>hello,
nordic&amp;#39;s engineers, need your help. 
 (1) the first problem : can not set VDD output to 3.3V
 From nRF52840_Product_Specification_v0.5, it says:
 High voltage mode is entered when the supply voltage is only connected 
 
 to the VDDH pin and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Mar 2017 03:36:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20528/why-data-can-not-be-wrote-into-the-registers-of-nrf52840" /><item><title>RE: why data can not be wrote into the registers of nRF52840</title><link>https://devzone.nordicsemi.com/thread/80035?ContentTypeID=1</link><pubDate>Tue, 21 Mar 2017 03:36:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:357d3fdc-0237-4f7e-9923-1740cfb99b6b</guid><dc:creator>nicholasldf</dc:creator><description>&lt;p&gt;thank you, butch,
have fixed the problem of VDD, it can output 3.3V now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: why data can not be wrote into the registers of nRF52840</title><link>https://devzone.nordicsemi.com/thread/80038?ContentTypeID=1</link><pubDate>Tue, 21 Mar 2017 03:35:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9278645d-3889-4ac7-aee7-d930d67d1703</guid><dc:creator>nicholasldf</dc:creator><description>&lt;p&gt;OK,  I have fixed the problem that &amp;quot;how to set VDD output 3.3V&amp;quot;,  thanks  to  the &amp;quot;UICR Config Example.&amp;quot;&lt;/p&gt;
&lt;p&gt;need to add  a file uicr_config.h to keil project,  and add the following two line code to it, finally include it in the file main.c&lt;/p&gt;
&lt;p&gt;const uint32_t UICR_ADDR_EXTSUPPLY &lt;strong&gt;attribute&lt;/strong&gt;((at(0x10001300))) &lt;strong&gt;attribute&lt;/strong&gt;((used)) = 0xFFFFFFFF;//Enabled&lt;/p&gt;
&lt;p&gt;const uint32_t UICR_ADDR_REGOUT0   &lt;strong&gt;attribute&lt;/strong&gt;((at(0x10001304))) &lt;strong&gt;attribute&lt;/strong&gt;((used)) = 0xFFFFFFF5;//3.3V&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;for tx power, this is a good answer&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/38565/cant-set-tx-power-level-using-sd_ble_gap_tx_power_settx_power-in-s130/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The NRF_RADIO register is a restricted resource when you are running a SoftDevice (and I assume you do?). Hence, you can neither read from it nor write to it. The SD blocks the radio as well as some other hardware registers to prevent users to inadvertently change critical parameters during transmissions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: why data can not be wrote into the registers of nRF52840</title><link>https://devzone.nordicsemi.com/thread/80033?ContentTypeID=1</link><pubDate>Tue, 21 Mar 2017 02:30:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d939949-da5b-4720-8d7b-e95315633844</guid><dc:creator>nicholasldf</dc:creator><description>&lt;p&gt;thank you, butch.&lt;/p&gt;
&lt;p&gt;(1)  for UICR, page 22 of &amp;lt;S132_SoftDevice_Specification_v3.1.pdf&amp;gt; says:&lt;/p&gt;
&lt;p&gt;Access to UICR is Restricted when SoftDevice enabled.&lt;/p&gt;
&lt;p&gt;(2)  for tx power:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/699/how-to-determine-tx-power-level-value/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There isn&amp;#39;t any way to get the current TX power level from the stack, so if you need it you have to keep track of it in your application, based on your calls to sd_ble_gap_tx_power_set().&lt;/p&gt;
&lt;p&gt;from this post , nordic&amp;#39;s engineers says there is no way to read tx-power,  because sd_ble_gap_tx_power_get() function is not exist.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/1740/constant-tx-radio-power-mode/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The softdevice will not adjust TX power automatically while running. You can set the TX power level used by calling the function sd_ble_gap_tx_power_set(), or get the current level with the corresponding sd_ble_gap_tx_power_get() function. These functions can be called at any time as long as the softdevice is enabled.&lt;/p&gt;
&lt;p&gt;from this post ,  nordic&amp;#39;s engineers says  softdevice will not adjust TX power automatically.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: why data can not be wrote into the registers of nRF52840</title><link>https://devzone.nordicsemi.com/thread/80032?ContentTypeID=1</link><pubDate>Mon, 20 Mar 2017 14:27:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f986faba-abeb-4ed6-b205-fe37cbfbd663</guid><dc:creator>butch</dc:creator><description>&lt;p&gt;I think you should read the Nordic documents about writing NV memory, and if you have problems, ask another question.   Re tx power, my guess would be that the SoftDevice keeps its own memo about what tx power you have asked for, and sets the radio register TXPOWER dynamically, i.e. on the fly, and restores it to the default after every radio operation.  Maybe there is a &amp;#39;getter&amp;#39; function in the SD API that you can call to inquire what tx power is set.  In other words, ask the SD instead of reading the radio register directly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: why data can not be wrote into the registers of nRF52840</title><link>https://devzone.nordicsemi.com/thread/80037?ContentTypeID=1</link><pubDate>Mon, 20 Mar 2017 02:29:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cba3131a-5f88-4e46-9756-d04b4bc99fa6</guid><dc:creator>nicholasldf</dc:creator><description>&lt;p&gt;butch  and   Turbo J ,  thank you.&lt;/p&gt;
&lt;p&gt;if UICR are non-volatile, so how to modify its registers ?
also, why  sd_ble_gap_tx_power_set(8)  don&amp;#39;t  take effect?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: why data can not be wrote into the registers of nRF52840</title><link>https://devzone.nordicsemi.com/thread/80036?ContentTypeID=1</link><pubDate>Sun, 19 Mar 2017 21:20:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9885da6a-7075-4495-af28-4986e56527ef</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Yes, UICR is NVM and must be treated similar to flash.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: why data can not be wrote into the registers of nRF52840</title><link>https://devzone.nordicsemi.com/thread/80034?ContentTypeID=1</link><pubDate>Fri, 17 Mar 2017 15:23:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ce0334c-82cb-4813-b6f8-691edbc84d81</guid><dc:creator>butch</dc:creator><description>&lt;p&gt;Are the UICR registers non-volatile, i.e. FLASH i.e. a simple assignment does not work?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>