<?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>Other NXP ProductsのトピックRe: How to read and write RAM in MPC5634M mcu.</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/How-to-read-and-write-RAM-in-MPC5634M-mcu/m-p/212643#M2414</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In C it should be very easy. First look at the data sheet and find the memory map. From that you will get your start and end address. Then you just create a pointer, set the pointer to point to the start address and then increment it until you get to the end address. It should be something similar in ASM...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code in C:&lt;/P&gt;&lt;PRE&gt;uint32_t *address = (uint32_t *)RAM_START_ADDRESS_FROM_DATASHEET;uint32_t *end_address = (uint32_t *)RAM_END_ADDRESS_FROM_DATASHEET;uint32_t data = 0;while (address &amp;lt; end_address){    // Read data from RAM    data = *address;        // your code goes here        // Increment to next element in RAM    start_address++;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Mar 2012 04:08:54 GMT</pubDate>
    <dc:creator>DjuroDrljaca</dc:creator>
    <dc:date>2012-03-06T04:08:54Z</dc:date>
    <item>
      <title>How to read and write RAM in MPC5634M mcu.</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/How-to-read-and-write-RAM-in-MPC5634M-mcu/m-p/212642#M2413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am new to MPC5634 mcu. Please share some example code to read and write RAM in MPC5634M. Also tell me that how I can find the start and end address. I want to do a RAM test. so please give your examples in both C language and asm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;venkatesh.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 15:06:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/How-to-read-and-write-RAM-in-MPC5634M-mcu/m-p/212642#M2413</guid>
      <dc:creator>venkatesanmuthu</dc:creator>
      <dc:date>2012-03-05T15:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to read and write RAM in MPC5634M mcu.</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/How-to-read-and-write-RAM-in-MPC5634M-mcu/m-p/212643#M2414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In C it should be very easy. First look at the data sheet and find the memory map. From that you will get your start and end address. Then you just create a pointer, set the pointer to point to the start address and then increment it until you get to the end address. It should be something similar in ASM...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code in C:&lt;/P&gt;&lt;PRE&gt;uint32_t *address = (uint32_t *)RAM_START_ADDRESS_FROM_DATASHEET;uint32_t *end_address = (uint32_t *)RAM_END_ADDRESS_FROM_DATASHEET;uint32_t data = 0;while (address &amp;lt; end_address){    // Read data from RAM    data = *address;        // your code goes here        // Increment to next element in RAM    start_address++;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 04:08:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/How-to-read-and-write-RAM-in-MPC5634M-mcu/m-p/212643#M2414</guid>
      <dc:creator>DjuroDrljaca</dc:creator>
      <dc:date>2012-03-06T04:08:54Z</dc:date>
    </item>
  </channel>
</rss>

