<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:clearspace="http://www.jivesoftware.com/xmlns/clearspace/rss" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Community: Message List</title>
    <link>http://line6.com/support/index.jspa?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Wed, 21 Nov 2012 17:04:08 GMT</pubDate>
    <generator>Jive SBS 4.5.7.0 (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2012-11-21T17:04:08Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Building MCU code in Codewarrior v10.2</title>
      <link>http://line6.com/support/message/400613?tstart=0#400613</link>
      <description>&lt;!-- [DocumentBodyStart:fe423531-a307-478d-be43-f1b7df08d0d3] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hi Folks, &lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;This is my first post. I'm a UK based software engineer with an interest in music DSP so I thought I purchase this kit through a US based friend. So far it's been a really steep learning curve but I wanted to upload my experience of trying to build the MCU code (microcontroller only) on a PC running windows XP and see if anybody else had any tales of their experience they'd like to share. At the moment Freescale offer a special edition of Codewarrior for MCUs - v10.2. It's a bit ropey but after weeks of faffing about here's my instructions for getting the build to work:&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;1. Download and install Codewarrior 10.2 (special edition - free)&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;2. Create an empty workspace on the same drive as the installation, e.g. C:\ToneCore &lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;3. Copy 'MCU sample code' to a directory under the workspace directory and rename MCU_sample_code. This avoids any problems with include paths. &lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;4. Import the project following the instructions outlined here:&amp;#160; &lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;&lt;a class="jive-link-external-small" href="http://www.freescale.com/infocenter/index.jsp?topic=%2Fcom.freescale.doc.CodeWarriorProjectImporter.QuickStart%2Fdoc%2FProject_Importer_Guide.CodeWarrior_Development_Studio.html" target="_blank"&gt;http://www.freescale.com/infocenter/index.jsp?topic=%2Fcom.freescale.doc.CodeWarriorProjectImporter.QuickStart%2Fdoc%2FProject_Importer_Guide.CodeWarrior_Development_Studio.html&lt;/a&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;where the MCP file is 'TCDDK User Template Rev 1.mcp'. &lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;5. When you get to the 'Access Paths' part of the import, add an extra entry: {Compiler}\lib\HC08c\device and set 'Recursive' to true.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;6. Click next, there should be only one entry: User_Template_Project.map. Else, search for the missing folders and go back to 5 to add the paths.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;7. Continue to Finish, selecting the remaining defaul options.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;8. At this stage, you can try a build - Project -&amp;gt; Clean... (selecting 'Start a build immediately'). You may be lucky and everything works fine.&amp;#160; &lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;9. If, like me, you weren't, right-click the project in Project Panel, select 'Edit Linked Resource Locations' and select 'Linked Resources' tab.&lt;/p&gt;&lt;p&gt;&amp;#160;&amp;#160; Likely, you'll see a list of Invalid Locations. Click 'Path Variables' and edit CW_IMPORTER_ProjectDir, replacing ${PARENT_LOC} with the actual path.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;10. At this stage, you may get as far as 'No rule to make target...' referring to a path containing virtual/virtual.&lt;/p&gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160; Open Properties, select 'C/C++ Build -&amp;gt; Settings' and select 'S08 Linker -&amp;gt; Input'. &lt;/p&gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160; Edit the Parameter File entry before 'MCU sample code\...' to your correct location. &lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;11. Rerun the build. We now get a bunch of linker errors mostly referring to main.c and IO_Map_c.obj. &lt;/p&gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160; This is because something called ProcessorExpert generates another copy of the same code. &lt;/p&gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160; Under the 'User Modules', delete the TCDDK_User_Template_Rev_1.c file (or whatever generated file contains an empty main function) and &lt;/p&gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160; under 'Generated Code' delete IO_Map.c.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;12. Rerun the build. Hopefully this time it all worked and you have a nice new MCU_sample_code.abs.s19 file to download through the TCDDK GUI.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;I'd be interested to hear from anyone who's found this useful. &lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Best wishes&lt;/p&gt;&lt;p&gt;DTFee&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:fe423531-a307-478d-be43-f1b7df08d0d3] --&gt;</description>
      <pubDate>Wed, 21 Nov 2012 15:42:13 GMT</pubDate>
      <author>support@line6.com</author>
      <guid>http://line6.com/support/message/400613?tstart=0#400613</guid>
      <dc:date>2012-11-21T15:42:13Z</dc:date>
      <clearspace:dateToText>6 months, 1 day ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

