This message contains an entire topic ported from the WildRice - Coldfire forum. Freescale has received the approval from the WildRice administrator on seeding the Freescale forum with messages. The original message and all replies are in this single message. We have seeded this new forum with selected information that we expect will be of value as you search for answers to your questions. Freescale assumes no responsibility whatsoever with respect to Posted Material. For additional information, please see the Terms of Use - Message Boards and Community Forums. Thank You and Enjoy the Forum!
Dec 28, 2005, 9:42 AMPost #1 of 12 (114 views)
Copy Shortcut
[ColdFire] Interrupt conflict Can't Post
--------------------------------------------------------------------------------
Hello,
I am using both the I2C and the GP timer interrupts in my application.
They're set to have different priority levels but when both are turned
on, it seems that one stops working. Each of them don't have problems
working individually. Any catches in the interrupt controller module or
else where. Here are the initialization codes for both the I2C and Timer
void TimerInit(void)
{
//enable TOF interrupt
MCF5282_INTC0_IMRH = MCF5282_INTC0_IMRH & 0xFFFFFDFF;
MCF5282_INTC0_IMRL = MCF5282_INTC0_IMRL & 0xFFFFFFFE;
MCF5282_INTC0_ICR41 = 0x10;
//Enable TOI interrupt
MCF5282_GPTA_GPTSCR2 |= MCF5282_GPT_GPTSCR2_TOI;
//enable GPT
//MCF5282_GPTA_GPTSCR1 = 0x00;
MCF5282_GPTA_GPTSCR1 |= MCF5282_GPT_GPTSCR1_GPTEN;
//MCF5282_GPTA_GPTSCR2 = 0;
//enable Fast flag clearing
//MCF5282_GPTA_GPTSCR1 |= MCF5282_GPT_GPTSCR1_TFFCA;
}
int8 i2cInit(void) {
/* Initialize PASP0 and PASP1 to I2C functions */
MCF5282_GPIO_PASPAR |= 0x0F;
/* Enable I2C interrupt */
MCF5282_INTC0_IMRL = MCF5282_INTC0_IMRL & 0xFFFDFFFE;
/* Set to Level 1, Priority 5 */
MCF5282_INTC0_ICR17 = 0x15;
/* Set transmission frequency 0x15 = ~100kHz */
MCF5282_I2C_I2FDR = 0x15;
MCF5282_I2C_I2ADR = iPORT;
/* Enable I2C module */
MCF5282_I2C_I2CR = 0xC0;
return 0;
}
Thanks,
Sam.
Stanton
New User
Jan 3, 2006, 1:06 PM
Post #2 of 12 (106 views)
Copy Shortcut
Re: [Listserv] [ColdFire] Interrupt conflict [In reply to] Can't Post
--------------------------------------------------------------------------------
We are having a similar issue with the GPT and UARTs. The one that is the high level/priority interfers with the low priority (adds significant latency). The 1ms PIT seams to be the event that kicks off the 'hung' interrupt. We are looking at ACK methods to see if they are the issue. PIT/AtoD/UART seem to work fine until the GPT is added into the mix.
Stan
DSeymour1
New User
Jan 7, 2006, 9:46 AM
Post #3 of 12 (101 views)
Copy Shortcut
Re: [Listserv] [ColdFire] Interrupt conflict [In reply to] Can't Post
--------------------------------------------------------------------------------
Hi Sam,
Both of your interrupts have the same IL of 2 but different IP values. That is good that the combined ICR's are differnent but having the same IL means that whichever interrupt source occurs first wins. Once the interrupt is recieved by the core, the SR will update to the new IL and then block all other interrupt request at and below that level.
I think you want to change your I2C ICR to 0x0D which gives you IL=1 and IP=5. Therefore leaving the ICR41 at 0x10 will let your GPT IL=2. Not sure from a system point of view which interrupt source you want to have higher but easy enough to switch their values.
Regards,
David
Feb 16, 2006, 1:34 PM
Post #4 of 12 (41 views)
Copy Shortcut
[ColdFire] USB host on MCF54x5EVB, Linux2.6.10: Does it work? [In reply to] Can't Post
--------------------------------------------------------------------------------
Hello,
Any body ever made the USB on MCF5485EVB or MCF5475EVB work?
I tried the Linux BSP 2.6.10 on MCF5485EVB, didn't work: system hung quickly after boot.
I tried the same on a MCF5475EVB, this time it looks better. Sometimes it worked for a pretty long while, sometimes right after boot, but eventually system hungs.
For all situations, when USB was disabled, everything worked fine.
Any suggestions?
Regards,
David
Feb 16, 2006, 11:43 PM
Post #5 of 12 (41 views)
Copy Shortcut
Re: [ColdFire] USB host on MCF54x5EVB, Linux2.6.10: Does it work? [In reply to] Can't Post
--------------------------------------------------------------------------------
Hello,
I have been told by my repr that USB is only DEVICE on MCF547x/MCF548x.
Nicolas Pinault
David Tao a écrit :
> Hello,
>
> Any body ever made the USB on MCF5485EVB or MCF5475EVB work?
>
> I tried the Linux BSP 2.6.10 on MCF5485EVB, didn't work: system hung quickly after boot.
>
> I tried the same on a MCF5475EVB, this time it looks better. Sometimes it worked for a pretty long while, sometimes right after boot, but eventually system hungs.
>
> For all situations, when USB was disabled, everything worked fine.
>
> Any suggestions?
>
> Regards,
> David
Feb 17, 2006, 12:11 AM
Post #6 of 12 (40 views)
Copy Shortcut
Re: [ColdFire] USB host on MCF54x5EVB, Linux2.6.10: Does it work? (fwd) [In reply to] Can't Post
--------------------------------------------------------------------------------
Same problem here. I was using the LogicPD BSP instead (based on 2.4.26)
on an M5485EVB, but no luck anyways. Seems the problem is due to some PCI
quirks. On the Logic forum, they said they were working on a version with
full PCI support; however, this was, if I remember well, at least 6 months
ago...
I unfortunately don't have time to investigate the problem (still trying
to get the DMA working...) but I will eventually need the USB host
support. I actually hoped the 2.6 support was working. Bad news.
Luca Burelli
P.S. The M5485CFE (at least) contains a PCI USB host controller, that's
for sure. Now, if they are so sure it doesn't work to actually deny that
there is one onboard, then we're in deep trouble...
On Fri, 17 Feb 2006, Nicolas Pinault wrote:
> Hello,
>
> I have been told by my repr that USB is only DEVICE on MCF547x/MCF548x.
>
> Nicolas Pinault
>
>
> David Tao a écrit :
> > Hello,
> >
> > Any body ever made the USB on MCF5485EVB or MCF5475EVB work?
> >
> > I tried the Linux BSP 2.6.10 on MCF5485EVB, didn't work: system hung quickly
> > after boot.
> >
> > I tried the same on a MCF5475EVB, this time it looks better. Sometimes it
> > worked for a pretty long while, sometimes right after boot, but eventually
> > system hungs.
> >
> > For all situations, when USB was disabled, everything worked fine.
> >
> > Any suggestions?
> >
> > Regards,
> > David
Feb 17, 2006, 5:19 AM
Post #7 of 12 (40 views)
Copy Shortcut
RE: [ColdFire] USB host on MCF54x5EVB, Linux2.6.10: Does it work? (fwd) [In reply to] Can't Post
--------------------------------------------------------------------------------
Hi all if you are trying to get the logic products board to work with its host controller I know that SMX has a product available for it we used them for a SM501 PCI with that board witch has an internal 1.1 host controller as part of it. We purchased there Host stack it works fine now. I know that they got there board running with the chip on the development board. How ever I am not sure if they did it for Linux. We have been happy with there product to date.
Gregg GRANVILLE
Hardware Engineering Manager
-------------------------------------
Tel 1 603.622.0212 / Fax 1 603.623.5623
--------------------------------------------------------
METRONICS /// 30 Harvey Road // Bedford, NH 03110-6818 / US
-----Original Message-----
From: On Behalf Of Burelli Luca
Sent: Friday, February 17, 2006 3:12 AM
To: Granville Gregg
Subject: Re: [ColdFire] USB host on MCF54x5EVB, Linux2.6.10: Does it work? (fwd)
Same problem here. I was using the LogicPD BSP instead (based on 2.4.26)
on an M5485EVB, but no luck anyways. Seems the problem is due to some PCI
quirks. On the Logic forum, they said they were working on a version with
full PCI support; however, this was, if I remember well, at least 6 months
ago...
I unfortunately don't have time to investigate the problem (still trying
to get the DMA working...) but I will eventually need the USB host
support. I actually hoped the 2.6 support was working. Bad news.
Luca Burelli
P.S. The M5485CFE (at least) contains a PCI USB host controller, that's
for sure. Now, if they are so sure it doesn't work to actually deny that
there is one onboard, then we're in deep trouble...
On Fri, 17 Feb 2006, Nicolas Pinault wrote:
> Hello,
>
> I have been told by my repr that USB is only DEVICE on MCF547x/MCF548x.
>
> Nicolas Pinault
>
>
> David Tao a écrit :
> > Hello,
> >
> > Any body ever made the USB on MCF5485EVB or MCF5475EVB work?
> >
> > I tried the Linux BSP 2.6.10 on MCF5485EVB, didn't work: system hung quickly
> > after boot.
> >
> > I tried the same on a MCF5475EVB, this time it looks better. Sometimes it
> > worked for a pretty long while, sometimes right after boot, but eventually
> > system hungs.
> >
> > For all situations, when USB was disabled, everything worked fine.
> >
> > Any suggestions?
> >
> > Regards,
> > David
Feb 17, 2006, 5:34 AM
Post #8 of 12 (40 views)
Copy Shortcut
RE: [ColdFire] USB host on MCF54x5EVB, Linux2.6.10: Does it work? [In reply to] Can't Post
--------------------------------------------------------------------------------
Dear David:
I was told by Freescale that the hardware fixes required for USB support
should be ready in mid April. I didn't ask and they didn't share the exact
nature of the problems.
Ken
-----Original Message-----
From: David Tao
Sent: Thursday, February 16, 2006 4:35 PM
Subject: [ColdFire] USB host on MCF54x5EVB, Linux2.6.10: Does it work?
Hello,
Any body ever made the USB on MCF5485EVB or MCF5475EVB work?
I tried the Linux BSP 2.6.10 on MCF5485EVB, didn't work: system hung quickly
after boot.
I tried the same on a MCF5475EVB, this time it looks better. Sometimes it
worked for a pretty long while, sometimes right after boot, but eventually
system hungs.
For all situations, when USB was disabled, everything worked fine.
Any suggestions?
Regards,
David
Feb 18, 2006, 7:41 AM
Post #9 of 12 (35 views)
Copy Shortcut
RE: [ColdFire] USB host on MCF54x5EVB, Linux2.6.10: Does it work? [In reply to] Can't Post
--------------------------------------------------------------------------------
On Fri, 17 Feb 2006, Ken Kerr wrote:
> Dear David:
>
> I was told by Freescale that the hardware fixes required for USB support
> should be ready in mid April. I didn't ask and they didn't share the exact
> nature of the problems.
>
> Ken
Sorry, but I want to be sure: did you really mean "hardware fixes"? So the
boards shipped until that date have a hardware flaw preventing the PCI /
USB buses from working correctly? I surely hope there will be some form of
RMA for the boards already shipped, then, as we bought the Fire Engines
also for their USB host support (among other things).
Thanks for the clarification.
Luca
Message Edited by Dietrich on 04-01-2006 11:26 AM
Message Edited by Dietrich on 04-01-2006 11:27 AM
Message Edited by Dietrich on 04-04-2006 09:23 PM