Olimex Eval Board LPC2378

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

have you read all the errata for this chip ?

I know the version shipping with the olimex boards is VERY buggy!!!

i bought this board to use the Address and Data bus and it turns out that part of the IC does not work properly. I am awaiting the latest version.

thx for your reply,

i have read the errata for this chip ( from nxp ), but debugging these settings bring an crc error or stuff error, the controller gets some data, but the sample rate is not correct. i tried a lot of variations, but nothing worked…

my last try…

// Bitrate

CAN2BTR = 0x00674005;