CAN2 Send Error

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

CAN2 Send Error

440 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by md_taraq on Fri Jun 06 02:36:32 MST 2014
Hi,
I have a customized board for LPC1768. I am facing problem problem with CAN transmission.
I am able to receive message but cannot transmit.
I am using CMSIS library.Initially I had problem with even receiving frames  ,it got solved by changing CLKPWR_SetPCLKDiv (CLKPWR_PCLKSEL_CAN2, CLKPWR_PCLKSEL_CCLK_DIV_2); to CLKPWR_SetPCLKDiv (CLKPWR_PCLKSEL_CAN2, CLKPWR_PCLKSEL_CCLK_DIV_4); [all three statements]
But now when I send data global status register shows At least one requested transmission has not been successfully completed
yet.
after that bus goes off and even reception of frames will stop.
I tried few example available in internet but could not find a solution.
I am using SN65HVD230D CAN transceiver.

Please help and guide.
I somebody has working code then please share.
Thank you,

Labels (1)
0 Kudos
2 Replies

423 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by md_taraq on Fri Jun 06 22:57:47 MST 2014
Thank you R2D2 for your reply;
Actually problem was with CPU and Peripheral clock.I configured clock for 96 MHz but library was taking SystemCoreClock for calculation.
I added a work around so that 96MHz is taken for calculations then it started working.
Thank you.
0 Kudos

423 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Fri Jun 06 03:52:24 MST 2014
Could be useful if you:

- post a schematic (especially how you have connected HVD230)...

- post your project...

- scope RxD and TxD of HVD230 to see if there's a signal at all...
0 Kudos