<?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のトピックProgram runs in UART Debug mode but does not run in Internal ROM mode in CW 6.3 for M52223EVB</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Program-runs-in-UART-Debug-mode-but-does-not-run-in-Internal-ROM/m-p/206542#M9829</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 2; font-family: Verdana;"&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I've posted a similar qustion in this forum, but I did not get a helpfull answer so far, so I post my entire code hoping someone might be able to help me.&lt;BR /&gt;&lt;BR /&gt;This program initializes M52223EVB board; configures a bluetooth module's baudrate, which is connected to UART0,&lt;/SPAN&gt; &lt;SPAN style=": ; font-size: 2; font-family: Verdana;"&gt;and connects it to a desired bluetooth receiver; then c&lt;/SPAN&gt;&lt;SPAN style=": ; font-size: 2; font-family: Verdana;"&gt;onfigures a gps module which is connected to UART1 and tries to send GPS's data through bluetooth module to the bluetooth receiver.&lt;BR /&gt;&lt;BR /&gt;NOTE: I have changed WriteUARTN() and ReadUARTN(). But it does not effect this problem as I have tested this already.&lt;BR /&gt;&lt;BR /&gt;Problem:&lt;BR /&gt;This process works perfectly in UART debug mode, which means I can see the GPS data on a terminal emulator that receives bluetooth receiver's input. but the terminal emulator does not show any data from GPS when I use Internal ROM mode and burn the compiled file into the flashROM.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;&lt;BR /&gt;P.S. As you might see, I'm using for-loops for delays....I tried to initialize DMA timers to use cpu_pause() function for delays, but I could not succeed. I would appreciate if someone help me to find an efficient delay system too.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.freescale.com%2Ffiles%2Fcommunity_files%2FCFCOMM%2Fmsg4176_main2.c" rel="nofollow" target="_blank"&gt;main2.c&lt;/A&gt;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by t.dowe on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-09-04&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;02:37 PM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Mar 2008 02:12:10 GMT</pubDate>
    <dc:creator>kevy</dc:creator>
    <dc:date>2008-03-27T02:12:10Z</dc:date>
    <item>
      <title>Program runs in UART Debug mode but does not run in Internal ROM mode in CW 6.3 for M52223EVB</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Program-runs-in-UART-Debug-mode-but-does-not-run-in-Internal-ROM/m-p/206542#M9829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 2; font-family: Verdana;"&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I've posted a similar qustion in this forum, but I did not get a helpfull answer so far, so I post my entire code hoping someone might be able to help me.&lt;BR /&gt;&lt;BR /&gt;This program initializes M52223EVB board; configures a bluetooth module's baudrate, which is connected to UART0,&lt;/SPAN&gt; &lt;SPAN style=": ; font-size: 2; font-family: Verdana;"&gt;and connects it to a desired bluetooth receiver; then c&lt;/SPAN&gt;&lt;SPAN style=": ; font-size: 2; font-family: Verdana;"&gt;onfigures a gps module which is connected to UART1 and tries to send GPS's data through bluetooth module to the bluetooth receiver.&lt;BR /&gt;&lt;BR /&gt;NOTE: I have changed WriteUARTN() and ReadUARTN(). But it does not effect this problem as I have tested this already.&lt;BR /&gt;&lt;BR /&gt;Problem:&lt;BR /&gt;This process works perfectly in UART debug mode, which means I can see the GPS data on a terminal emulator that receives bluetooth receiver's input. but the terminal emulator does not show any data from GPS when I use Internal ROM mode and burn the compiled file into the flashROM.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;&lt;BR /&gt;P.S. As you might see, I'm using for-loops for delays....I tried to initialize DMA timers to use cpu_pause() function for delays, but I could not succeed. I would appreciate if someone help me to find an efficient delay system too.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.freescale.com%2Ffiles%2Fcommunity_files%2FCFCOMM%2Fmsg4176_main2.c" rel="nofollow" target="_blank"&gt;main2.c&lt;/A&gt;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by t.dowe on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-09-04&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;02:37 PM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 02:12:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Program-runs-in-UART-Debug-mode-but-does-not-run-in-Internal-ROM/m-p/206542#M9829</guid>
      <dc:creator>kevy</dc:creator>
      <dc:date>2008-03-27T02:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Program runs in UART Debug mode but does not run in Internal ROM mode in CW 6.3 for M52223EVB</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Program-runs-in-UART-Debug-mode-but-does-not-run-in-Internal-ROM/m-p/206543#M9830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Kevy&lt;BR /&gt;&lt;BR /&gt;If the program runs with one project configuration but not with another it is probably a difficulty with this configuration and not with the code itself (although it may be that the interrupt vertors have not been correctly set up when running from FLASH (?) - assuming you are using interrupts).&lt;BR /&gt;&lt;BR /&gt;You could look at the uTasker project (it is completely free for non-commercial use - inlcuding support - and will allow you to realise a project like this with the uTakser simulator rather than having to work on the target). The UART interface will allow you to simply work in most modes you may want (DMA, flow-control, etc..). It will allow you to control the program flow much simpler with its OS support. You will also have no problems with configurations since the project is set up for all types.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Mark&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.uTasker.com" rel="nofollow" target="_blank"&gt;www.uTasker.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 03:16:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Program-runs-in-UART-Debug-mode-but-does-not-run-in-Internal-ROM/m-p/206543#M9830</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2008-03-27T03:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Program runs in UART Debug mode but does not run in Internal ROM mode in CW 6.3 for M52223EVB</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Program-runs-in-UART-Debug-mode-but-does-not-run-in-Internal-ROM/m-p/206544#M9831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Mark,&lt;BR /&gt;&lt;BR /&gt;Thank you for your comments. I downloaded and installed VS 6.0 and tried to run uTask Simulator; but it gave me bunch of errors, despite what uTask document says that it will compile without errors and warnings! I don't have enough time to work on fixing errors and learning how to use uTask simulator, and I don't think I would need it afterwards. So, I'd rather look for a solution that helps me fix Internal ROM issue.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2008 03:16:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Program-runs-in-UART-Debug-mode-but-does-not-run-in-Internal-ROM/m-p/206544#M9831</guid>
      <dc:creator>kevy</dc:creator>
      <dc:date>2008-03-28T03:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Program runs in UART Debug mode but does not run in Internal ROM mode in CW 6.3 for M52223EVB</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Program-runs-in-UART-Debug-mode-but-does-not-run-in-Internal-ROM/m-p/206545#M9832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Kevy&lt;BR /&gt;&lt;BR /&gt;The uTasker + SP6 will compile without any warning in this environment. It will also compiler with Codewarrior and GCC and run in RAM or ROM mode on a target. If it doesn't compile, there must be an explanation for this. You are registered as a student user so you get full support to solve any problems - either direct email, on the uTasker foum or here. Therefore I think it is certainly easier to solve this because it will then allow you to do everything that you want - it includes the solutions to your present ROM problems too, allow simulating your work and also running it on the target.&lt;BR /&gt;&lt;BR /&gt;At the moment I don't know what the exact problem is but I have tried the following.&lt;BR /&gt;&lt;BR /&gt;1. I understand that you are using the &lt;B&gt;&lt;I&gt;M52223EVB&lt;/I&gt;&lt;/B&gt; (as I mentioned, the project is set up for the M5223X so needs a slight configuration change). In VisualStudio (and in CodeWarrior) you need to add the pre-processor define #_M5222X (in config.h the M52223EVB is already selected for this set up).&lt;BR /&gt;2. When I test the project with this setting there is a linking error because this is a USB based chip but we haven't released the USB support fo it yet. To solve this you can add the following define in config.h&lt;BR /&gt;#define DEVICE_WITHOUT_USB&lt;BR /&gt;This will remove all USB references. This then compiles for me. It also runs in the simulator.&lt;BR /&gt;3. The simulator doesn't actually display the M52223 chip (the package is not released yet for this type) but it can be corrected by adding the following bmps to the folder \Hardware\M5223X\GUI\&lt;BR /&gt;&lt;A href="http://www.uTasker.com/software/V1.3/m522Xx.zip" rel="nofollow" target="_blank"&gt;http://www.uTasker.com/software/V1.3/m522Xx.zip&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;We have M52223EVB and M52221DEMO boards here as reference so if you do experience any difficulties we are able to quickly sort this out.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Mark&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2008 04:40:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Program-runs-in-UART-Debug-mode-but-does-not-run-in-Internal-ROM/m-p/206545#M9832</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2008-03-28T04:40:25Z</dc:date>
    </item>
  </channel>
</rss>

