<?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>topic Re: Undefined irq functions (5213EVB) in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Undefined-irq-functions-5213EVB/m-p/132015#M1049</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;hmm.&amp;nbsp; I buiilt the 5213EVb example, and it worked fine.&amp;nbsp; Recognized everything.&amp;nbsp; I copied in my own code, and now my code is working.&amp;nbsp; Must have been something with the stationary I built the project from initially.&amp;nbsp; It's happened a couple of times though.&amp;nbsp; Perhaps the wizard does something that building it straight from the stationary does not?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Either way, thanks.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Apr 2006 03:48:43 GMT</pubDate>
    <dc:creator>Cheshyr</dc:creator>
    <dc:date>2006-04-13T03:48:43Z</dc:date>
    <item>
      <title>Undefined irq functions (5213EVB)</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Undefined-irq-functions-5213EVB/m-p/132010#M1044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've been fighting with this for a while, and I'm running out of ideas. I keep receiving the following errors:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;---&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Link Error : Undefined : "mcf5xxx_irq_enable"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Referenced from "main" in main.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Link Error : Undefined : "mcf5xxx_set_handler"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Referenced from "main" in main.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Link failed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;---&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I first started by setting up the PWM, and I've got that working. Then, to test intterupt capability, I wanted to capture the PWM high-times on the GPT port. I've failed to get the interrupts to enable properly. Is there something I'm missing? Below is the code, trimmed to show the important stuff.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;---&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#include "common.h"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#include&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;__interrupt__ void gpt_ch0_irq(void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;old0 = new0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;new0 = MCF_GPT_GPTC0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PWM0Data = new0 - old0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;__interrupt__ void gpt_ch1_irq(void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;old1= new1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;new1 = MCF_GPT_GPTC1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PWM1Data = new1 - old1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;void main()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MCF_GPIO_PTDPAR = 0x0F; // Enable port TD to PWM output&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MCF_GPIO_DDRTD = 0x0F; // Set port TD to 'output'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GPTInit(); // Init GPT module&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ICMInit(); // Init Interrupt Control Module&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PWMInit(); // Init PWM module&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;mcf5xxx_set_handler(64 + 44, gpt_ch0_irq);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mcf5xxx_set_handler(64 + 45, gpt_ch1_irq);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mcf5xxx_irq_enable(); // Enable Interrupts&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;while(1){}; // Run&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;---&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've included the rest of my code in the attached zip. It's not the cleanest code, but it's been hacked at for the last month, so...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;P&gt;Message Edited by Cheshyr on &lt;SPAN class="date_text"&gt;04-10-2006&lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;02:50 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Message Edited by Cheshyr on &lt;SPAN class="date_text"&gt;04-10-2006&lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;02:50 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2006 02:48:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Undefined-irq-functions-5213EVB/m-p/132010#M1044</guid>
      <dc:creator>Cheshyr</dc:creator>
      <dc:date>2006-04-11T02:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined irq functions (5213EVB)</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Undefined-irq-functions-5213EVB/m-p/132011#M1045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I am having similar problems. The thing that may be hanging you up is the fact that you usually have to set a bit in order to clear the interrupt flag, while in the ISR (more specifically: set the C0F/C1F bit, respectively...check out page 12-14 in the RM). Also, I had to setup the IMRL registers (I am trying to use the PIT, but not working correctly yet). The problem I have is that it will interrupt once, but then no more..check out my thread on PIT. but ya, start with what I have said, hopefully you will have more success then me!&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2006 11:44:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Undefined-irq-functions-5213EVB/m-p/132011#M1045</guid>
      <dc:creator>airswit</dc:creator>
      <dc:date>2006-04-11T11:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined irq functions (5213EVB)</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Undefined-irq-functions-5213EVB/m-p/132012#M1046</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;In fact you need to add an implementation of the functions mcf5xxx_irq_enable &amp;amp; mcf5xxx_set_handler to your application.&amp;nbsp; The file mcf5xxx.c contains an example of implementation for these functions.&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, 11 Apr 2006 15:19:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Undefined-irq-functions-5213EVB/m-p/132012#M1046</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2006-04-11T15:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined irq functions (5213EVB)</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Undefined-irq-functions-5213EVB/m-p/132013#M1047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Well, you'll notice I include common.h, which includes mcf5xxx.h.&amp;nbsp; Also, mcf5xxx.c is already listed in my project under support files.&amp;nbsp; Do these files not suffice; I need to write my own?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks.&amp;nbsp; :smileyhappy:&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2006 20:00:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Undefined-irq-functions-5213EVB/m-p/132013#M1047</guid>
      <dc:creator>Cheshyr</dc:creator>
      <dc:date>2006-04-11T20:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined irq functions (5213EVB)</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Undefined-irq-functions-5213EVB/m-p/132014#M1048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;It looks like mcf5xxx.c isn't being included in the project.&amp;nbsp; If you are using CodeWarrior, make sure that this file is in your current target (bullet in the column with an arrow pointing to a target at the top).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The example projects from the software examples on the web do make use of these functions.&amp;nbsp; Are you able to compile and link those examples?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;-mn&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2006 22:46:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Undefined-irq-functions-5213EVB/m-p/132014#M1048</guid>
      <dc:creator>mnorman</dc:creator>
      <dc:date>2006-04-11T22:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined irq functions (5213EVB)</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Undefined-irq-functions-5213EVB/m-p/132015#M1049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;hmm.&amp;nbsp; I buiilt the 5213EVb example, and it worked fine.&amp;nbsp; Recognized everything.&amp;nbsp; I copied in my own code, and now my code is working.&amp;nbsp; Must have been something with the stationary I built the project from initially.&amp;nbsp; It's happened a couple of times though.&amp;nbsp; Perhaps the wizard does something that building it straight from the stationary does not?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Either way, thanks.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2006 03:48:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Undefined-irq-functions-5213EVB/m-p/132015#M1049</guid>
      <dc:creator>Cheshyr</dc:creator>
      <dc:date>2006-04-13T03:48:43Z</dc:date>
    </item>
  </channel>
</rss>

