<?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>ColdFire/68K Microcontrollers and Processorsのトピック5213 problems...debugging and printf</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/5213-problems-debugging-and-printf/m-p/126082#M289</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working on my senior project, and have asked this of the tech support at freescale...they told me to re-write everything from scratch..and read all of the technical data sheets for codewarrior. my problems are that I can no longer debug this project over the BDM cable, in sram. I try using the 'console debug' target, but when i try to run the debugger, i get a bus error when it tries to call uart_init(). Also, i cannot use the printf function (it just doesn't do anything...skips over it?), and i know that it does in some of the files i have downloaded from freescale (this is for the M5213EVB, with some peripherals added on). i doubt i will get help here, because I have asked this question before, but i'll give it a shot. I have attached my project files, and hope to hear back from someone soon!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Aug 2006 09:58:28 GMT</pubDate>
    <dc:creator>airswit</dc:creator>
    <dc:date>2006-08-09T09:58:28Z</dc:date>
    <item>
      <title>5213 problems...debugging and printf</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/5213-problems-debugging-and-printf/m-p/126082#M289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working on my senior project, and have asked this of the tech support at freescale...they told me to re-write everything from scratch..and read all of the technical data sheets for codewarrior. my problems are that I can no longer debug this project over the BDM cable, in sram. I try using the 'console debug' target, but when i try to run the debugger, i get a bus error when it tries to call uart_init(). Also, i cannot use the printf function (it just doesn't do anything...skips over it?), and i know that it does in some of the files i have downloaded from freescale (this is for the M5213EVB, with some peripherals added on). i doubt i will get help here, because I have asked this question before, but i'll give it a shot. I have attached my project files, and hope to hear back from someone soon!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2006 09:58:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/5213-problems-debugging-and-printf/m-p/126082#M289</guid>
      <dc:creator>airswit</dc:creator>
      <dc:date>2006-08-09T09:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: 5213 problems...debugging and printf</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/5213-problems-debugging-and-printf/m-p/126083#M290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;You should let the initialization of ram and vectors complete befor using them:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;void&lt;BR /&gt;mcf5213_init(void)&lt;BR /&gt;{&lt;BR /&gt;/********************************************************************/&lt;BR /&gt;/*&amp;nbsp; RAMBAR &amp;amp; FLASHBAR already initialized in asm_startmeup&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;BR /&gt;/********************************************************************/&lt;BR /&gt;&amp;nbsp;extern char __DATA_ROM[];&lt;BR /&gt;&amp;nbsp;extern char __DATA_RAM[];&lt;BR /&gt;&amp;nbsp;extern char __DATA_END[];&lt;BR /&gt;&amp;nbsp;extern char __BSS_START[];&lt;BR /&gt;&amp;nbsp;extern char __BSS_END[];&lt;BR /&gt;&amp;nbsp;extern uint32 VECTOR_TABLE[];&lt;BR /&gt;&amp;nbsp;extern uint32 __VECTOR_RAM[];&lt;BR /&gt;&amp;nbsp;register uint32 n;&lt;BR /&gt;&amp;nbsp;register uint8 *dp, *sp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;/* Copy the vector table to RAM */&lt;BR /&gt;&amp;nbsp;if (__VECTOR_RAM != VECTOR_TABLE)&lt;BR /&gt;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;for (n = 0; n &amp;lt; 256; n++)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;__VECTOR_RAM[n] = VECTOR_TABLE[n];&lt;BR /&gt;&amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mcf5xxx_wr_vbr((uint32)__VECTOR_RAM);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;/*&lt;BR /&gt;&amp;nbsp; * Move initialized data from ROM to RAM.&lt;BR /&gt;&amp;nbsp; */&lt;BR /&gt;&amp;nbsp;if (__DATA_ROM != __DATA_RAM)&lt;BR /&gt;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;dp = (uint8 *)__DATA_RAM;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;sp = (uint8 *)__DATA_ROM;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;n = __DATA_END - __DATA_RAM;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;while (n--)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;*dp++ = *sp++;&lt;BR /&gt;&amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;/*&lt;BR /&gt;&amp;nbsp; * Zero uninitialized data&lt;BR /&gt;&amp;nbsp; */&lt;BR /&gt;&amp;nbsp;if (__BSS_START != __BSS_END)&lt;BR /&gt;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;sp = (uint8 *)__BSS_START;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;n = __BSS_END - __BSS_START;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;while (n--)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;*sp++ = 0;&lt;BR /&gt;&amp;nbsp;}&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;U&gt;&amp;nbsp;mcf5213_wtm_init();&lt;BR /&gt;&amp;nbsp;mcf5213_pll_init();&lt;BR /&gt;&amp;nbsp;mcf5213_uart_init();&lt;BR /&gt;&amp;nbsp;mcf5213_allow_interrupts();&lt;BR /&gt;&lt;/U&gt;&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;}&lt;BR /&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2006 22:38:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/5213-problems-debugging-and-printf/m-p/126083#M290</guid>
      <dc:creator>DrSeuss</dc:creator>
      <dc:date>2006-08-21T22:38:38Z</dc:date>
    </item>
  </channel>
</rss>

