Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

Can controller

Can controller

2005-06-07 by gfaurie1

Hi,

I use CAN controller with interruptions in reception. I have a problem 
because when i stop my debugger and i press start after, my reception 
interrupt doesn't work because i am in a strange state. I have no bit 
RI, but i have DO (data overrun). I receive messages on CAN but my 
buffers are full so my bit RI is never equal to 1. DO is already equal 
to one so it stays at one, and because my micro was stopped on 
transition of DO from 0 to 1 it didn't detect interruption.

SO RI stay at 0 and DO stay at 1 so i have nomore interruptions on CAN 
reception.

The alone soltution that could work is to reset can controller with 
CANMOD register, i can do this manually but automatically it's a 
little bit hard and dangerous.

Thanks for your help

Re: Can controller

2005-06-07 by gerhard_uttenthaler

--- In lpc2000@yahoogroups.com, "gfaurie1" <gilles.faurie@p...> wrote:
> Hi,
> 
> I use CAN controller with interruptions in reception. I have a problem 
> because when i stop my debugger and i press start after, my reception 
> interrupt doesn't work because i am in a strange state. I have no bit 
> RI, but i have DO (data overrun). I receive messages on CAN but my 
> buffers are full so my bit RI is never equal to 1. DO is already equal 
> to one so it stays at one, and because my micro was stopped on 
> transition of DO from 0 to 1 it didn't detect interruption.
> 
> SO RI stay at 0 and DO stay at 1 so i have nomore interruptions on CAN 
> reception.
> 

Could it be, that you do not give the Release Receive Buffer command
at the end of your interrupt routine?


Regards
Gerhard

Re: [lpc2000] Re: Can controller

2005-06-08 by Gilles FAURIE

Hi,

No, I release receive buffer at the end of my interrupt routine. The only 
way to restart interrupt macenism is to put CAN controller in reset mode and 
after in normal mode.

I have problem, too, when i disable all interruptions during programmation 
of my flash program.

----- Original Message ----- 
Show quoted textHide quoted text
From: "gerhard_uttenthaler" <gerhard.uttenthaler@...>
To: <lpc2000@yahoogroups.com>
Sent: Tuesday, June 07, 2005 2:07 PM
Subject: [lpc2000] Re: Can controller


> --- In lpc2000@yahoogroups.com, "gfaurie1" <gilles.faurie@p...> wrote:
>> Hi,
>>
>> I use CAN controller with interruptions in reception. I have a problem
>> because when i stop my debugger and i press start after, my reception
>> interrupt doesn't work because i am in a strange state. I have no bit
>> RI, but i have DO (data overrun). I receive messages on CAN but my
>> buffers are full so my bit RI is never equal to 1. DO is already equal
>> to one so it stays at one, and because my micro was stopped on
>> transition of DO from 0 to 1 it didn't detect interruption.
>>
>> SO RI stay at 0 and DO stay at 1 so i have nomore interruptions on CAN
>> reception.
>>
>
> Could it be, that you do not give the Release Receive Buffer command
> at the end of your interrupt routine?
>
>
> Regards
> Gerhard
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.