<?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のトピックRe: M52233demo board + interniche</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/M52233demo-board-interniche/m-p/138197#M2023</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Kremer,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks for the response.&amp;nbsp; Yes.&amp;nbsp; I think init happens to uart0 &amp;amp; uart1 upon power up.&amp;nbsp; What is funny is that as long as there is no acitvity on uart0, I can do;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;uart_putc(1,'A');&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;all I want and it won't lock up.&amp;nbsp; But, it seems to lock when there are activities on both uart0 and uart1.&amp;nbsp; Somethimes, it works for a while before the lock.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I would do something like;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;printf("Test line......\n");&lt;/DIV&gt;&lt;DIV&gt;uart_putc(1,'A');&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;And I can see a few (maybe 5 - 10 lines) of Test line....on my HyperTerminal connected to uart0 before the program locks.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I keep checking, but, if you have more suggestions, I would appreciate it.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;StillStuck&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jun 2007 08:42:30 GMT</pubDate>
    <dc:creator>m52233demuser</dc:creator>
    <dc:date>2007-06-26T08:42:30Z</dc:date>
    <item>
      <title>M52233demo board + interniche</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/M52233demo-board-interniche/m-p/138195#M2021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;How do I send data to uart#1?&amp;nbsp; I know #0 is the console port, and it works fine.&amp;nbsp; But, when I send a byte to uart#1, say, &amp;nbsp;by doing&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;uart_putc(1,'A');&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;to&amp;nbsp;send an 'A', the system seems to&amp;nbsp;lock up, that is, &amp;nbsp;no console port reponse any more.&amp;nbsp; What am I doing wrong?&amp;nbsp; please help.&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;stuck&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 01:14:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/M52233demo-board-interniche/m-p/138195#M2021</guid>
      <dc:creator>m52233demuser</dc:creator>
      <dc:date>2007-06-26T01:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: M52233demo board + interniche</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/M52233demo-board-interniche/m-p/138196#M2022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Did you initialized the uart1?&lt;/DIV&gt;&lt;DIV&gt;If yes, a code snippet may point something more specific.&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>Tue, 26 Jun 2007 05:59:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/M52233demo-board-interniche/m-p/138196#M2022</guid>
      <dc:creator>Kremer</dc:creator>
      <dc:date>2007-06-26T05:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: M52233demo board + interniche</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/M52233demo-board-interniche/m-p/138197#M2023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Kremer,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks for the response.&amp;nbsp; Yes.&amp;nbsp; I think init happens to uart0 &amp;amp; uart1 upon power up.&amp;nbsp; What is funny is that as long as there is no acitvity on uart0, I can do;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;uart_putc(1,'A');&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;all I want and it won't lock up.&amp;nbsp; But, it seems to lock when there are activities on both uart0 and uart1.&amp;nbsp; Somethimes, it works for a while before the lock.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I would do something like;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;printf("Test line......\n");&lt;/DIV&gt;&lt;DIV&gt;uart_putc(1,'A');&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;And I can see a few (maybe 5 - 10 lines) of Test line....on my HyperTerminal connected to uart0 before the program locks.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I keep checking, but, if you have more suggestions, I would appreciate it.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;StillStuck&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 08:42:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/M52233demo-board-interniche/m-p/138197#M2023</guid>
      <dc:creator>m52233demuser</dc:creator>
      <dc:date>2007-06-26T08:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: M52233demo board + interniche</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/M52233demo-board-interniche/m-p/138198#M2024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;Are you using the Coldfire_Lite example or did you develop your own?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;Maybe printf is messing things up.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;Try this instead of using printf:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;static char test_string[15];&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;unsigned short i;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;strcpy(test_string,"Test Uart0\n");&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;for(i=0;i&amp;lt;strlen(test_string);i++)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; uart_putc(0,test_string[i];&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;uart_putc(1,'A');&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;If this works without lock, then printf is the villain.&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by Kremer on &lt;SPAN class="date_text"&gt;2007-06-26&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;05:35 PM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 23:34:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/M52233demo-board-interniche/m-p/138198#M2024</guid>
      <dc:creator>Kremer</dc:creator>
      <dc:date>2007-06-26T23:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: M52233demo board + interniche</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/M52233demo-board-interniche/m-p/138199#M2025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I am using Coldfire_Lite as is.&amp;nbsp; I tried your suggestion, but, it seems that the result is the same.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;What I do see while I am floundering around the ColdFire_Lite codes is that it seems uart ports are interrupt driven and both ports 0 and 1 are calling the same service routine uart_isr().&amp;nbsp; I was wondering if ports are stepping on each other while being serviced by the interrupt routine.&amp;nbsp; So, what I tried is to put some forced time delay between using port0 and port1, and it seems to work much better.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I think, I need to disable one port interrupt before using the other.&amp;nbsp; Does it sound reasonable?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you for your interest.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&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>Fri, 29 Jun 2007 02:29:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/M52233demo-board-interniche/m-p/138199#M2025</guid>
      <dc:creator>m52233demuser</dc:creator>
      <dc:date>2007-06-29T02:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: M52233demo board + interniche</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/M52233demo-board-interniche/m-p/138200#M2026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&amp;nbsp;This Coldfire_Lite example isn´t a perfect serial example.&amp;nbsp;On iuart.c, as you saw, they share the same isr for RX and TX, so when you print a string on uart 0 and try to print on the second the problem can&amp;nbsp;happen. Adding a delay as you did can help on printing short strings on fast serial speed, but it will reduce the system perfomance and can´t be enough for long strings. Also, take a look on&amp;nbsp;those uarts&amp;nbsp;interrupt priorities and levels (on uart_init routine). You can set them up to avoid those crashings you mentioned.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;But, there´s nothing like build your own application.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2007 03:01:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/M52233demo-board-interniche/m-p/138200#M2026</guid>
      <dc:creator>Kremer</dc:creator>
      <dc:date>2007-06-29T03:01:53Z</dc:date>
    </item>
  </channel>
</rss>

