LPC11C14 Can open Problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC11C14 Can open Problem

2,504 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mahalinr on Thu Nov 14 00:55:21 MST 2013
Hallo

         I am using LPC11c14 can open program in eclipse cdt.I am able to compile the program and while debugging the CAN-open is able to tranit the data but it is not able to go to the receive state.It goes directly to sleep state after transmitting.

Plz help me out

RAM = 0x10000050 Memory = 4k
Rom = 0x00000000 Memory = 32k


Thx in advance
0 Kudos
Reply
17 Replies

2,414 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mahalinr on Sat Nov 16 05:02:55 MST 2013
thx
0 Kudos
Reply

2,414 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Sat Nov 16 05:01:10 MST 2013

Quote: mahalinr
No

I am talking about CANOPEN_onchip



Then it's this function:

/*CAN transmit callback */
/*[color=#f00]Function is executed by the Callback handler after
a CAN message has been transmitted[/color] */
void CAN_tx(uint8_t msg_obj_num){
  return;
}
0 Kudos
Reply

2,414 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mahalinr on Sat Nov 16 04:56:06 MST 2013
No

I am talking about CANOPEN_onchip
0 Kudos
Reply

2,414 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Sat Nov 16 04:15:05 MST 2013

Quote: mahalinr
See I want to enable an interrupt while transmitting message.



Are we talking about can_onchip sample?

/*CAN transmit callback */
/*[color=#f00]Function is executed by the Callback handler after
a CAN message has been transmitted[/color] */
void CAN_tx(uint8_t msg_obj_num){
  return;
}
0 Kudos
Reply

2,414 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by capiman on Sat Nov 16 04:05:20 MST 2013
You know there is a User Manual for LPC11C14?
There is a chapter describing the interrupt controller (NVIC)...
(Chapter 6 of UM10398)
0 Kudos
Reply

2,414 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mahalinr on Sat Nov 16 03:58:06 MST 2013
Ha ha giberrish sounds funny


Anyways

See I want to enable an interrupt while transmitting message.

How to do that??
0 Kudos
Reply

2,414 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Sat Nov 16 03:05:06 MST 2013

Quote: mahalinr
I do no why are you not able to understand simple english?




Because that's no simple English, that's gibberish (Kauderwelsch)...

Even Google isn't understanding that:


Quote:
Ich tue nicht, warum sind Sie nicht in der Lage, einfache Englisch verstehen




Quote: mahalinr
This message is transmitted without the interrupts,But I need to transmit the message along with the interrupts.

So,I want to know how to transmit the message from PCAN-USB to Microcontroller with the interrupts.



That's nonsense. Messages are messages. There are no messages with interrupts or without interrupts.

So what is your question?
0 Kudos
Reply

2,414 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mahalinr on Sat Nov 16 02:15:36 MST 2013
I do no why are you not able to understand simple english?

Now I am able to send the message from PCAN to Microcontroller.This message is transmitted without the interrupts,But I need to transmit the message along with the interrupts.

So,I want to know how to transmit the message from PCAN-USB to Microcontroller with the interrupts.

0 Kudos
Reply

2,414 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Sat Nov 16 00:49:08 MST 2013
Kein Mensch versteht, was Du hier schreibst.
Selbst mit Google sollte es möglich sein, halbwegs verständliche Fragen zu formulieren. Wenn Du ernsthaft Antworten erwartest, könnte es helfen Dein Problem zu beschreiben und eine konkrete, nachvollziehbare Frage zu stellen.

And now translated with Google:


Quote:
No one understands what you write here.
Even with Google, it should be possible to formulate reasonably understandable questions. If you seriously expect answers, it might help to describe your problem and provide a practical, comprehensible question.

0 Kudos
Reply

2,413 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mahalinr on Sat Nov 16 00:20:03 MST 2013
Thank you

How to send that message along with the interrupts
0 Kudos
Reply

2,414 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by arw on Fri Nov 15 10:56:27 MST 2013

If you are using the example provided by LPCOpen (e.g. ~\LPCOpen_v1.03\applications\lpc11xx\examples\periph\periph_ccan_rom) then sending a message ID 0x400 - 0x4FF from your PCAN to the LPC11Cxx mcu, the message will be received and then sent back to the analyzer by LPC11C14 mcu.
0 Kudos
Reply

2,414 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mahalinr on Fri Nov 15 00:03:52 MST 2013
Thank you

How to tranmit message from PCAN USB to LPC11c14
0 Kudos
Reply

2,414 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by arw on Thu Nov 14 16:08:22 MST 2013

Here are some links to CAN example code.

Samples for each peripheral are included.  See the CAN subfolder.
http://www.lpcware.com/content/nxpfile/sample-code-bundle-lpc11xx-peripherals-using-nxp-lpcxpresso

CANopen application note:
http://www.lpcware.com/content/nxpfile/an11238-lpc11cxx-canopen-network-demo-0

Cheers!
0 Kudos
Reply

2,414 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mahalinr on Thu Nov 14 02:24:09 MST 2013
Ok

Finally can you please send me LPC11c14 examples

please
0 Kudos
Reply

2,414 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Thu Nov 14 02:22:36 MST 2013

Quote: mahalinr
I am using the example code of LPC11c14 taken from expresso.



No, that's not the LPCXpresso example  :exmark:


Quote: mahalinr
Yes they are acknowledged



If your LPC is acknowledging messages, they are received  :)

I really don't know what you are doing (except you are not using LPCXpresso).

All relevant issues have been discussed already (ROM-RAM...).

Since you don't answer questions I'll stop that here...

Good luck.
0 Kudos
Reply

2,414 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mahalinr on Thu Nov 14 01:49:13 MST 2013
I am using the example code of LPC11c14 taken from expresso.

Yes they are acknowledged
0 Kudos
Reply

2,414 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Thu Nov 14 01:32:34 MST 2013
So which code are you using?

Why has your LPC1114 only 4k?

How do you transmit data to your LPC?

Did you scope them (are they really on the BUS)?

Are they acknowledged?

Did you try Loop-back mode?

You are not providing much informations, so I would suggest to use LPC11C14 self test functions. They work without external hardware  :) 
0 Kudos
Reply