LPC-P2129 CANbus interrupt

Moderator #1174340
Rate this post
• ▲ useful
▼ not useful
Abe Abe wrote:
> Hi,
>
> I'm using Olimex-board LPC-P2129 and programming it with Rowley Cross
> studio 1.9. I find CANbus example for this processor on the internet
Link? Source-code?

> and
> try it with Rowley Crossstudio, but it doesn't work.
What does not "work"? Can you step trough the code with a debugger or at
least insert some printf/uart_puts to see where the application stops
"working". Do you have the basic startup and linker set-up correctly?
Try with a simple application like the usual "LED-blink" first, add some
interrupt-handling ("LED-Blink in Timer-ISR") and insert the CAN-code
once you have this working.
OP #1174341
Rate this post
• ▲ useful
▼ not useful
Martin Thomas wrote:
> Abe Abe wrote:
>> Hi,
>>
>> I'm using Olimex-board LPC-P2129 and programming it with Rowley Cross
>> studio 1.9. I find CANbus example for this processor on the internet
> Link? Source-code?
>
>> and
>> try it with Rowley Crossstudio, but it doesn't work.
> What does not "work"? Can you step trough the code with a debugger or at
> least insert some printf/uart_puts to see where the application stops
> "working". Do you have the basic startup and linker set-up correctly?
> Try with a simple application like the usual "LED-blink" first, add some
> interrupt-handling ("LED-Blink in Timer-ISR") and insert the CAN-code
> once you have this working.

Hello, I was busy this week so I didn't have a chance to reply.

I writo a simple program:
I have 2 Olimex LPC-P2129 boards. When I press button1 on first board it
transmitts MSG with ID 1 to another board and when I press button2 on
first board it transmitts MSG with ID 2 to another board. This part of
the program works OK.

But the problem is, that on the second board I get 2 receive interrupts
for 1 message. When I get a msg with ID1 the receive interrupt occours
but after that it occours again. I don't understand why is that
happenning. Can anybody help me please?

I use the example of lpc_2129_CanAll_V110.

Thank you

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.