<?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: Exception Vector Name  Address Error - MCF52235EVB in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Exception-Vector-Name-Address-Error-MCF52235EVB/m-p/147737#M3523</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Hey Rich, I just tried using a different "canned" linker file for Flash that had a bigger stack and by God, worked like a charm.&amp;nbsp; You are the man, thanks for pointing me in the right direction.&amp;nbsp; You, Mark and that Crasy Cat are a wonderful asset to this board.&amp;nbsp; Thanks again.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;cmag&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by cmag on &lt;SPAN class="date_text"&gt;2008-04-17&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;12:42 AM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Apr 2008 06:20:57 GMT</pubDate>
    <dc:creator>cmag</dc:creator>
    <dc:date>2008-04-17T06:20:57Z</dc:date>
    <item>
      <title>Exception Vector Name  Address Error - MCF52235EVB</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Exception-Vector-Name-Address-Error-MCF52235EVB/m-p/147733#M3519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Howdy again.&amp;nbsp; I haven't posted in a few hours so I thought I'd bring up my latest problem. &lt;A href="http://freescale.i.lithium.com/i/smilies/16x16_smiley-very-happy.gif"&gt;&lt;IMG alt=":smileyvery-happy:" class="emoticon emoticon-smileyvery-happy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-very-happy.gif" title="Smiley Very Happy" /&gt;&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I'm getting the ol Exception Vector Name : Address Error, but only when I'm trying to debug from flash.&amp;nbsp; I know the first question is "do I have it loaded in flash" : yes I do.&amp;nbsp; It even runs for a little bit but then dies after a couple of seconds.&amp;nbsp; I'm afraid I may be encroaching on the RAM limits, but I'm not really sure how to know.&amp;nbsp;&amp;nbsp; In code warrior at the bottom of the list of all of the compiled and linked files,&amp;nbsp; the total of my code appears to be 18K.&amp;nbsp; I don't know if that's a valid way of telling anything at all though.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;My linker file has ROM set at address 0 and has allotted 256K, and my RAM has been allotted at 32K.&amp;nbsp; I didn't really think my program was that big, but I don't know.&amp;nbsp; Could anyone help?&amp;nbsp;&amp;nbsp; I know this was pretty vague, but I don't really know what info would help.&amp;nbsp; I've included my mem map if that should help.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks as always,&lt;/DIV&gt;&lt;DIV&gt;cmag&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 22:55:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Exception-Vector-Name-Address-Error-MCF52235EVB/m-p/147733#M3519</guid>
      <dc:creator>cmag</dc:creator>
      <dc:date>2008-04-16T22:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Exception Vector Name  Address Error - MCF52235EVB</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Exception-Vector-Name-Address-Error-MCF52235EVB/m-p/147734#M3520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Is it possible you're running off the end of your stack?&amp;nbsp; You might try making it bigger, or you might look at it after you crash and see if the end of it (just above 0x20000CA0) is untouched.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;When you say "it runs for a little bit", does it crash before or after interrupts are enabled?&amp;nbsp; That's the other place you can get lots of variability, not to mention stack usage...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;From your xmap file, it appears you have about 3k of static data, 2k of stack, and the rest of your 32k allocated to your heap (are you using your heap?)...&amp;nbsp; Does that sound right?&amp;nbsp; Your code size looks like 22k?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;You seem to imply you don't crash when running from RAM?&amp;nbsp; I assume you have the same stack size in your RAM and FLASH lcf files?&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>Thu, 17 Apr 2008 03:21:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Exception-Vector-Name-Address-Error-MCF52235EVB/m-p/147734#M3520</guid>
      <dc:creator>RichTestardi</dc:creator>
      <dc:date>2008-04-17T03:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Exception Vector Name  Address Error - MCF52235EVB</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Exception-Vector-Name-Address-Error-MCF52235EVB/m-p/147735#M3521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thanks for the reply Rich.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I could be running off the end of my heap, to be honest I'm not smart enough with this stuff to know.&amp;nbsp; In fact, I don't know if I'm using heap.&amp;nbsp; I took a class in this several years ago and you've probably forgotten more than I ever knew.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;For some reason today it seems to be working though I haven't done anything.&amp;nbsp; I know that it's just temporary and I expect it to crash again at any moment.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If you don't mind, could you possibly take a quick look at my linker files and see if there is anything that is obviously wrong or that you would advise for or against, a best practices if you will?&amp;nbsp; It works in RAM perfectly 100% of the time without question, but that obviously doesn't buy me a lot.&amp;nbsp; I know just enough to know that there's a lot I don't know and getting lost in the documentation isn't as helpful as someone that speaks English.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks for helping the newbies, this forum has been immensely helpful.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;cmag&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2008 04:34:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Exception-Vector-Name-Address-Error-MCF52235EVB/m-p/147735#M3521</guid>
      <dc:creator>cmag</dc:creator>
      <dc:date>2008-04-17T04:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Exception Vector Name  Address Error - MCF52235EVB</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Exception-Vector-Name-Address-Error-MCF52235EVB/m-p/147736#M3522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Huh, well it's possible my error could be coming from somewhere else?&amp;nbsp; It turns out that my error occurs in a function in one of my header files.&amp;nbsp;&amp;nbsp;From main(), I'm passing a pointer to an array (defined above main()) into a function in one of my header files.&amp;nbsp; That function is doing a memset to clear out the array.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;BTW, I looked at the memory in the place that you specified and it appears to have stuff in it.&amp;nbsp; You said this was just above the heap.&amp;nbsp; What does that mean as far as the program is concerned.&amp;nbsp; I attached an image of what I saw.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;cmag&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2008 05:58:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Exception-Vector-Name-Address-Error-MCF52235EVB/m-p/147736#M3522</guid>
      <dc:creator>cmag</dc:creator>
      <dc:date>2008-04-17T05:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Exception Vector Name  Address Error - MCF52235EVB</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Exception-Vector-Name-Address-Error-MCF52235EVB/m-p/147737#M3523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Hey Rich, I just tried using a different "canned" linker file for Flash that had a bigger stack and by God, worked like a charm.&amp;nbsp; You are the man, thanks for pointing me in the right direction.&amp;nbsp; You, Mark and that Crasy Cat are a wonderful asset to this board.&amp;nbsp; Thanks again.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;cmag&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by cmag on &lt;SPAN class="date_text"&gt;2008-04-17&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;12:42 AM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2008 06:20:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Exception-Vector-Name-Address-Error-MCF52235EVB/m-p/147737#M3523</guid>
      <dc:creator>cmag</dc:creator>
      <dc:date>2008-04-17T06:20:57Z</dc:date>
    </item>
  </channel>
</rss>

