<?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>S12 / MagniV MicrocontrollersのトピックRe: Warning message received while trying to allocate variable at specified address</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Warning-message-received-while-trying-to-allocate-variable-at/m-p/160891#M5060</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Addresses specified after the @ modifier are always logical addresses.&lt;/DIV&gt;&lt;DIV&gt;You cannot specify a global address here.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jun 2008 20:42:39 GMT</pubDate>
    <dc:creator>CrasyCat</dc:creator>
    <dc:date>2008-06-02T20:42:39Z</dc:date>
    <item>
      <title>Warning message received while trying to allocate variable at specified address</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Warning-message-received-while-trying-to-allocate-variable-at/m-p/160886#M5055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi all,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I&amp;nbsp;received a warning&amp;nbsp;while trying to allocate a variable at this address :&lt;/DIV&gt;&lt;DIV&gt;"failed to convert address 0xBEA01 of IllegalAddress because of Flash area (C000..FFFF) is not paged"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;my code goes like this:&lt;/DIV&gt;&lt;DIV&gt;---&amp;gt; unsigned long IllegalAddress @780801;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;where did 0xBEA01 came from?&lt;/DIV&gt;&lt;DIV&gt;what i want to happen is move a value to that address in a push of a button.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;thanks,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 16:11:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Warning-message-received-while-trying-to-allocate-variable-at/m-p/160886#M5055</guid>
      <dc:creator>Xbot</dc:creator>
      <dc:date>2008-06-02T16:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Warning message received while trying to allocate variable at specified address</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Warning-message-received-while-trying-to-allocate-variable-at/m-p/160887#M5056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;DIV&gt;hi&lt;/DIV&gt;&lt;DIV&gt;0xBEA01 is the hex value of the address (780801)you have mentioned. it may not be a valid address of the micro which you are using&lt;/DIV&gt;&lt;DIV&gt;Regards&lt;/DIV&gt;&lt;DIV&gt;Ang&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 16:43:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Warning-message-received-while-trying-to-allocate-variable-at/m-p/160887#M5056</guid>
      <dc:creator>ang</dc:creator>
      <dc:date>2008-06-02T16:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Warning message received while trying to allocate variable at specified address</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Warning-message-received-while-trying-to-allocate-variable-at/m-p/160888#M5057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;hahaha my bad... still i got a warning tho. Is my declaration correct?&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 16:50:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Warning-message-received-while-trying-to-allocate-variable-at/m-p/160888#M5057</guid>
      <dc:creator>Xbot</dc:creator>
      <dc:date>2008-06-02T16:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Warning message received while trying to allocate variable at specified address</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Warning-message-received-while-trying-to-allocate-variable-at/m-p/160889#M5058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;i think the declaration is correct. but the address may be wrong.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 16:54:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Warning-message-received-while-trying-to-allocate-variable-at/m-p/160889#M5058</guid>
      <dc:creator>ang</dc:creator>
      <dc:date>2008-06-02T16:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Warning message received while trying to allocate variable at specified address</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Warning-message-received-while-trying-to-allocate-variable-at/m-p/160890#M5059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;any other suggestions?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;i just want to point to a memory address so i can simulate an access violation interrupt.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 19:18:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Warning-message-received-while-trying-to-allocate-variable-at/m-p/160890#M5059</guid>
      <dc:creator>Xbot</dc:creator>
      <dc:date>2008-06-02T19:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Warning message received while trying to allocate variable at specified address</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Warning-message-received-while-trying-to-allocate-variable-at/m-p/160891#M5060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Addresses specified after the @ modifier are always logical addresses.&lt;/DIV&gt;&lt;DIV&gt;You cannot specify a global address here.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 20:42:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Warning-message-received-while-trying-to-allocate-variable-at/m-p/160891#M5060</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2008-06-02T20:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Warning message received while trying to allocate variable at specified address</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Warning-message-received-while-trying-to-allocate-variable-at/m-p/160892#M5061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;ok, so how do i instead point to an address say the flash area?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;My code&amp;nbsp;will point to an address(maybe write a value in it) to simulate an access violation in a press of a button.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;for(;&lt;IMG alt=":smileywink:" class="emoticon emoticon-smileywink" id="smileywink" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif" title="Smiley Wink" /&gt;{&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!(PORTB&amp;amp;0x10)){&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // PUSH PTB4 button&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;*far&amp;nbsp;farptr = 0x780000;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;my accessviolation ISR here:&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 20:08:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Warning-message-received-while-trying-to-allocate-variable-at/m-p/160892#M5061</guid>
      <dc:creator>Xbot</dc:creator>
      <dc:date>2008-06-03T20:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Warning message received while trying to allocate variable at specified address</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Warning-message-received-while-trying-to-allocate-variable-at/m-p/160893#M5062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Well, I don't know if if CW will set up the page registers correctly, but the syntax would be:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;*((far char*) 0x780000) = 0;&lt;BR /&gt;&lt;BR /&gt;This would work on a normal flat address space (i.e 32 bit) machine.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 20:14:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Warning-message-received-while-trying-to-allocate-variable-at/m-p/160893#M5062</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2008-06-03T20:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Warning message received while trying to allocate variable at specified address</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Warning-message-received-while-trying-to-allocate-variable-at/m-p/160894#M5063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello Jim,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Tried you code. I cant seem to verify if location 780000 had been cleared.&amp;nbsp;From your syntax was it clearing address 780000?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;any other suggestions from&amp;nbsp;my problem?&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 20:33:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Warning-message-received-while-trying-to-allocate-variable-at/m-p/160894#M5063</guid>
      <dc:creator>Xbot</dc:creator>
      <dc:date>2008-06-03T20:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Warning message received while trying to allocate variable at specified address</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Warning-message-received-while-trying-to-allocate-variable-at/m-p/160895#M5064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I tried&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; *(( char *far) 0x780000) = 0x0;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;and it did clear&amp;nbsp;global address&amp;nbsp;0x780000.&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;To look at global address 0x780000 in memory window:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; - Click with the right mouse button inside of the Memory window&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; - In&amp;nbsp;the drop down menu select Address&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; -&amp;nbsp; In the edit box enter 780000'G&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;This should display memory starting at address 0x780000 in global address space.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 16:06:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Warning-message-received-while-trying-to-allocate-variable-at/m-p/160895#M5064</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2008-06-06T16:06:05Z</dc:date>
    </item>
  </channel>
</rss>

