<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: my mcu is &amp;quot;mk10dx256&amp;quot;,How to use 32-byte VBAT register. in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/my-mcu-is-quot-mk10dx256-quot-How-to-use-32-byte-VBAT-register/m-p/250980#M7085</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, the J12 jumper is at 2&amp;amp;3 position, so the Vbat supply pin is tied to battery and VCC.&lt;BR /&gt;The Disassembly shows me this for your source line:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00009ae4:&amp;nbsp;&amp;nbsp; movw r1,#0x5678&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00009ae8:&amp;nbsp;&amp;nbsp; movt r1,#0x1234&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00009aec:&amp;nbsp;&amp;nbsp; movw r0,#0xe000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00009af0:&amp;nbsp;&amp;nbsp; movt r0,#0x4003&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00009af4:&amp;nbsp;&amp;nbsp; str r1,[r0,#0]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i try to view the VBAT register files in debug mode with CodeWarrior, it comes always an alert "The debugger lost communication on connection..."&lt;BR /&gt;If this source line is executed in debug mode in CodeWarrior, CodeWarrior stops responding. Then i need to kill the program or in a while apears above mentioned alert.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am going to try it with an empty MQX project to see what happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: Problem solved. I had to enable RTC Access Control bit in SIM_SCGC6. Fistly it doesn't work, but after a second try it worked.&lt;BR /&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Nov 2013 18:52:44 GMT</pubDate>
    <dc:creator>big_steve</dc:creator>
    <dc:date>2013-11-11T18:52:44Z</dc:date>
    <item>
      <title>my mcu is "mk10dx256",How to use 32-byte VBAT register.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/my-mcu-is-quot-mk10dx256-quot-How-to-use-32-byte-VBAT-register/m-p/250974#M7079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My mcu is "mk10dx256", The chip is powered down except for the VBAT supply. The RTC and the 32-byte VBAT register file for customer-critical data remain powered.&lt;/P&gt;&lt;P&gt;How to use 32-byte VBAT register.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 02:50:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/my-mcu-is-quot-mk10dx256-quot-How-to-use-32-byte-VBAT-register/m-p/250974#M7079</guid>
      <dc:creator>jikehe</dc:creator>
      <dc:date>2013-11-01T02:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: my mcu is "mk10dx256",How to use 32-byte VBAT register.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/my-mcu-is-quot-mk10dx256-quot-How-to-use-32-byte-VBAT-register/m-p/250975#M7080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The VBAT register file is located at 0x4003_E000, so in your code, when MCU VDD powered, you can write directly to this address to store data. After MCU power off, it keeps data with VBAT powered. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system register file located at 0x4004_1000 is powered by MCU VDD and retains its data even at VLLS1 mode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 03:00:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/my-mcu-is-quot-mk10dx256-quot-How-to-use-32-byte-VBAT-register/m-p/250975#M7080</guid>
      <dc:creator>cutworth</dc:creator>
      <dc:date>2013-11-01T03:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: my mcu is "mk10dx256",How to use 32-byte VBAT register.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/my-mcu-is-quot-mk10dx256-quot-How-to-use-32-byte-VBAT-register/m-p/250976#M7081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to write data at 0x4003_E000&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 05:18:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/my-mcu-is-quot-mk10dx256-quot-How-to-use-32-byte-VBAT-register/m-p/250976#M7081</guid>
      <dc:creator>jikehe</dc:creator>
      <dc:date>2013-11-01T05:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: my mcu is "mk10dx256",How to use 32-byte VBAT register.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/my-mcu-is-quot-mk10dx256-quot-How-to-use-32-byte-VBAT-register/m-p/250977#M7082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The exact syntax to place a variable at an absolute address is compiler-specific, BUT you might find the header-file for your uC already contains a 'hook' for you.&amp;nbsp; The MK20D10.h I use in IAR has the macro RFVBAT_REG(index) pre-defined to point to this hardware as 8 32bit locations with:&lt;/P&gt;&lt;P&gt;#define RFVBAT_BASE_PTR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((RFVBAT_MemMapPtr)0x4003E000u)&lt;/P&gt;&lt;P&gt;and a matching RFSYS_REG(index) pointed at:&lt;/P&gt;&lt;P&gt;#define RFSYS_BASE_PTR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((RFSYS_MemMapPtr)0x40041000u)&lt;/P&gt;&lt;P&gt;Just make sure the 'clocks' are turned on, as with any peripheral register set!&amp;nbsp; That being said, it looks like 'current' Kinetis has the system regfile permanently enabled (SIM_SCGC5 D1=1), and the RTC clock (SIM_SCGC6) is NOT(?) required to access the VBAT register file, but IS required to get RTC_SR 'TIF' which might tell you if the VBAT registers are also invalid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 12:29:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/my-mcu-is-quot-mk10dx256-quot-How-to-use-32-byte-VBAT-register/m-p/250977#M7082</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2013-11-01T12:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: my mcu is "mk10dx256",How to use 32-byte VBAT register.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/my-mcu-is-quot-mk10dx256-quot-How-to-use-32-byte-VBAT-register/m-p/250978#M7083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I set all bits in SIM_SCGC5 register to 1 but i can't still execute read or write operation on VBAT register file. The program always breaks at write operation. What could be the problem? What needs to be done to get VBAT register file to work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to store a LCD calibration structure to VBAT registers mentioned in this topic: &lt;A href="https://community.nxp.com/message/340332"&gt;Re: Avoid the calibration screen on each tensioning?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My configuration is:&lt;BR /&gt;eGui&lt;/P&gt;&lt;P&gt;MQX 4.0&lt;BR /&gt;CodeWarrior 10.3&lt;BR /&gt;TWR-K40X256, TWR-LCD and TWR-SER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 16:53:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/my-mcu-is-quot-mk10dx256-quot-How-to-use-32-byte-VBAT-register/m-p/250978#M7083</guid>
      <dc:creator>big_steve</dc:creator>
      <dc:date>2013-11-08T16:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: my mcu is "mk10dx256",How to use 32-byte VBAT register.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/my-mcu-is-quot-mk10dx256-quot-How-to-use-32-byte-VBAT-register/m-p/250979#M7084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You aren't showing me much of what you tried, exactly.&amp;nbsp; For my 'test case' on an MK20, I simply placed this source line (w/o any CLK enables):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RFVBAT_REG(0) = 0x12345678;&lt;/P&gt;&lt;P&gt;which nets these object-file lines:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x40fc: 0x481c&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDR.N&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R0, ??DataTable4_1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; RFVBAT_RFVBAT_REG0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x40fe: 0x491d&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDR.N&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R1, ??DataTable4_2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; 0x12345678 (305419896)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x4100: 0x6001&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R1, [R0]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which nets this result in the debugger 'memory' window, starting at 0x4003e000&lt;/P&gt;&lt;P&gt;78 56 34 12 00 00 00 00 00 00 00 00 00 00 00 00&lt;/P&gt;&lt;P&gt;00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which stays until I pull the battery.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe we need to consider some more 'basic' questions, like is your Vbat supply pin tied to a battery &amp;amp; VCC (J12 to 2&amp;amp;3)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 19:20:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/my-mcu-is-quot-mk10dx256-quot-How-to-use-32-byte-VBAT-register/m-p/250979#M7084</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2013-11-08T19:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: my mcu is "mk10dx256",How to use 32-byte VBAT register.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/my-mcu-is-quot-mk10dx256-quot-How-to-use-32-byte-VBAT-register/m-p/250980#M7085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, the J12 jumper is at 2&amp;amp;3 position, so the Vbat supply pin is tied to battery and VCC.&lt;BR /&gt;The Disassembly shows me this for your source line:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00009ae4:&amp;nbsp;&amp;nbsp; movw r1,#0x5678&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00009ae8:&amp;nbsp;&amp;nbsp; movt r1,#0x1234&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00009aec:&amp;nbsp;&amp;nbsp; movw r0,#0xe000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00009af0:&amp;nbsp;&amp;nbsp; movt r0,#0x4003&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00009af4:&amp;nbsp;&amp;nbsp; str r1,[r0,#0]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i try to view the VBAT register files in debug mode with CodeWarrior, it comes always an alert "The debugger lost communication on connection..."&lt;BR /&gt;If this source line is executed in debug mode in CodeWarrior, CodeWarrior stops responding. Then i need to kill the program or in a while apears above mentioned alert.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am going to try it with an empty MQX project to see what happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: Problem solved. I had to enable RTC Access Control bit in SIM_SCGC6. Fistly it doesn't work, but after a second try it worked.&lt;BR /&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 18:52:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/my-mcu-is-quot-mk10dx256-quot-How-to-use-32-byte-VBAT-register/m-p/250980#M7085</guid>
      <dc:creator>big_steve</dc:creator>
      <dc:date>2013-11-11T18:52:44Z</dc:date>
    </item>
  </channel>
</rss>

