LPC11C24 CAN ROM drivers disable DAR

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

LPC11C24 CAN ROM drivers disable DAR

470 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nickich on Sun Jul 05 11:52:15 MST 2015
Hello,

I'm starting with the _ccan_rom example. I see on the bus the message is repeated forever if there is nobody to receive it, which is OK according the CAN spec.

What is the way of disabling the DAR when working with on-chip drivers? I suppose they touch CANCNTL register as well, so I guess I have to program it after the LPC_CCAN_API->init_can() call. If so, is it correct to 'touch' registers when the CAN controller is running?

Also I couldn't find any CAN CMSIS drivers. Is there something available?

Regards,
Labels (1)
0 Kudos
4 Replies

394 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nickich on Mon Jul 06 07:12:32 MST 2015
... I just realized, the example I code I was using is coming from:
lpcopen_v2_00a_lpcxpresso_nxp_lpcxpresso_11c24\nxp_lpcxpresso_11c24_periph_ccan_rom

Sorry for the confusion.
0 Kudos

394 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Mon Jul 06 02:10:15 MST 2015

Quote: nickich
I'm not using CANOpen as the other nodes doesn't speak it.



And now you don't want to add the smartest node, I see...


Quote: nickich
Is there any advantage of using LPCOpen?



LPCOpen is the actual 'supported' platform  :)



Quote:
•The use of LPCOpen is now recommend for most LPC MCUs, rather than the 'old-style' CMSIS-CORE library projects and examples. For more details please see the LPCXpresso IDE User Manual, and visit the


http://www.lpcware.com/content/faq/lpcxpresso/cmsis-support




Quote: nickich
Can it be used for raw CAN communication?



Of course  :)
0 Kudos

394 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nickich on Mon Jul 06 01:49:48 MST 2015
Thanks for the reply. I tried setting DAR after the init_can() call and it seems to work fine.

I'm not using CANOpen as the other nodes doesn't speak it.
Is there any advantage of using LPCOpen? Can it be used for raw CAN communication?
0 Kudos

394 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Sun Jul 05 13:38:56 MST 2015

Quote: nickich
I'm starting with the _ccan_rom example.  :quest:


Why not LPCOpen?


Quote: nickich
I see on the bus the message is repeated forever if there is nobody to receive it, which is OK according the CAN spec.



Then use self test options...


Quote: nickich
What is the way of disabling the DAR when working with on-chip drivers? I suppose they touch CANCNTL register as well, so I guess I have to program it after the LPC_CCAN_API->init_can() call. If so, is it correct to 'touch' registers when the CAN controller is running?



Yes  :)


Quote: nickich
Also I couldn't find any CAN CMSIS drivers. Is there something available?



Use LPCOpen and add CAN registers yourself...

See: http://www.lpcware.com/content/forum/forgotten-can-register-struct-lpcxpresso-lpc11c24-lpcopen-v200a

0 Kudos