Good Afternoon everyone,
i have some problems with this eval board.
I want to receive a CAN Message but an crc-error occures. So i tried several settings for baudrate, without any success…
could someone help me ?
Fcco: 288 Mhz
Cpu Clk: 57.6 Mhz and 72Mhz (both tested)
Can Clk: 48Mhz
my can init code:
void CanInit_fct (void)
{
// Power enable ( CAN 2 )
PCONP |= (1 << 14);
// Clock Can2 enable
PCLKSEL0 = 0xF0000000;
// CAN2 enable
PINSEL0 &= ~0x00000A00;
PINSEL0 |= 0x00000A00;
// CAN Reset
CAN2MOD = 1;
// Disable CAN Receive Interrupt
CAN2IER = 0;
// Reset Error Counter
CAN2GSR = 0;
// bitrate
CAN2BTR = 0x004A4007;
// setup interrupt
install_irq(CAN_INT,(void *) CanIrqHandler_fct, 1);
// Enable CAN Receive Interrupt
CAN2IER = 1;
// CAN LMO Mode
CAN2MOD = 2;
}
thank you