<?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のトピックhow to define starting point in the project?</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/how-to-define-starting-point-in-the-project/m-p/132995#M1196</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I am using CodeWarrior for ColdFire version 6.4.&lt;/DIV&gt;&lt;DIV&gt;My target is MCF5307.&lt;/DIV&gt;&lt;DIV&gt;The project was before created using DIAB compiler.&lt;/DIV&gt;&lt;DIV&gt;It has an entry point:&lt;/DIV&gt;&lt;DIV&gt;PSECT&lt;/DIV&gt;&lt;DIV&gt;XDEF&amp;nbsp;start&lt;/DIV&gt;&lt;DIV&gt;ALIGN&amp;nbsp;4&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;; Boot code section definition: 4 byte alignment, read-only data, &amp;amp; executable code&lt;BR /&gt;.section ".text",4 ;rx&lt;/DIV&gt;&lt;DIV&gt;start:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nop&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nop&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nop&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nop&lt;/DIV&gt;&lt;DIV&gt;; initialize a5 to sdata (provided by linker)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; move.l&amp;nbsp;#__SDA_BASE_,a5&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;; initialize the stack pointer&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; move.l&amp;nbsp; #__SRAM_END, a7&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; jsr _initRegisters&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; jump to the function that will initialize the remaining registers&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;; we will never reach this point as initRegisters never returns!&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; jsr&amp;nbsp;_main&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have a problem building project in CW for "start" initialization is not recognized.&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;Is there any alternative to start point initialization in CW?&lt;/DIV&gt;&lt;DIV&gt;PSECT&lt;/DIV&gt;&lt;DIV&gt;XDEF&amp;nbsp;start&lt;/DIV&gt;&lt;DIV&gt;ALIGN&amp;nbsp;4&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I tried using .global statement with start: and the substituded three lines above with one:&lt;/DIV&gt;&lt;DIV&gt;.global start&lt;/DIV&gt;&lt;DIV&gt;However, when running in debugger I get: "__start" is not recognized error.&lt;/DIV&gt;&lt;DIV&gt;Please help.&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;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 May 2007 00:54:19 GMT</pubDate>
    <dc:creator>Veter</dc:creator>
    <dc:date>2007-05-08T00:54:19Z</dc:date>
    <item>
      <title>how to define starting point in the project?</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/how-to-define-starting-point-in-the-project/m-p/132995#M1196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I am using CodeWarrior for ColdFire version 6.4.&lt;/DIV&gt;&lt;DIV&gt;My target is MCF5307.&lt;/DIV&gt;&lt;DIV&gt;The project was before created using DIAB compiler.&lt;/DIV&gt;&lt;DIV&gt;It has an entry point:&lt;/DIV&gt;&lt;DIV&gt;PSECT&lt;/DIV&gt;&lt;DIV&gt;XDEF&amp;nbsp;start&lt;/DIV&gt;&lt;DIV&gt;ALIGN&amp;nbsp;4&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;; Boot code section definition: 4 byte alignment, read-only data, &amp;amp; executable code&lt;BR /&gt;.section ".text",4 ;rx&lt;/DIV&gt;&lt;DIV&gt;start:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nop&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nop&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nop&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nop&lt;/DIV&gt;&lt;DIV&gt;; initialize a5 to sdata (provided by linker)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; move.l&amp;nbsp;#__SDA_BASE_,a5&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;; initialize the stack pointer&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; move.l&amp;nbsp; #__SRAM_END, a7&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; jsr _initRegisters&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; jump to the function that will initialize the remaining registers&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;; we will never reach this point as initRegisters never returns!&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; jsr&amp;nbsp;_main&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have a problem building project in CW for "start" initialization is not recognized.&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;Is there any alternative to start point initialization in CW?&lt;/DIV&gt;&lt;DIV&gt;PSECT&lt;/DIV&gt;&lt;DIV&gt;XDEF&amp;nbsp;start&lt;/DIV&gt;&lt;DIV&gt;ALIGN&amp;nbsp;4&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I tried using .global statement with start: and the substituded three lines above with one:&lt;/DIV&gt;&lt;DIV&gt;.global start&lt;/DIV&gt;&lt;DIV&gt;However, when running in debugger I get: "__start" is not recognized error.&lt;/DIV&gt;&lt;DIV&gt;Please help.&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;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 00:54:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/how-to-define-starting-point-in-the-project/m-p/132995#M1196</guid>
      <dc:creator>Veter</dc:creator>
      <dc:date>2007-05-08T00:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to define starting point in the project?</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/how-to-define-starting-point-in-the-project/m-p/132996#M1197</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;Did you specify your entry point is start?&lt;/DIV&gt;&lt;DIV&gt;Per default the linker will use __start as application entry point. You need to tell him you are using another function as entry point.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;This needs to be specified in the Target settings "Coldfire Linker" panel.&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>Tue, 08 May 2007 13:01:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/how-to-define-starting-point-in-the-project/m-p/132996#M1197</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2007-05-08T13:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to define starting point in the project?</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/how-to-define-starting-point-in-the-project/m-p/132997#M1198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I did specified that my entry point is start.&lt;/DIV&gt;&lt;DIV&gt;The problem is that in file "startup.s" the starting point initialized with syntax for DIAB compiler. I am looking for&amp;nbsp;alternative in CW for ColdFire. Please see attached "startup.s" file.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you for your help!&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2007 19:14:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/how-to-define-starting-point-in-the-project/m-p/132997#M1198</guid>
      <dc:creator>Veter</dc:creator>
      <dc:date>2007-06-11T19:14:38Z</dc:date>
    </item>
  </channel>
</rss>

