Hi,
Am working with CAN in k60 (having the two customized board ). Here am using the CAN0 (PTA12 & PTA13 pins ). And also am using the fls_flexcan_test.c. able to transmit the data , i checked with CRO , in CAN_TX pin data is coming and also CAN_RX also getting data , but the data is not receiving by controller.
*********FLEXCAN TEST PROGRAM.*********
Message format: Standard (11 bit id)
Message buffer 0 used for Tx and Rx.
Interrupt Mode: Enabled
Operation Mode: TX and RX --> Normal
Node 2
***************************************
selected frequency (Kbps) is: 125
Data length: 1
FLEXCAN reset. result: 0x0
FLEXCAN initilization. result: 0x0
FLEXCAN mode selected. result: 0x0
FLEXCAN global mask. result: 0x0
FLEXCAN Error ISR install, result: 0x0
FLEXCAN Bus off ISR install, result: 0x0
FLEXCAN error interrupt enable. result: 0x0
FLEXCAN rx remote mai
lbox initialization. result: 0x0
FLEXCAN rx mailbox initialization. result: 0x0
FLEXCAN mailbox activation. result: 0x0
FLEXCAN RX ISR install. result: 0x0
FLEXCAN RX remote ISR install. result: 0x0FLEXCAN tx remote mailbox initialization. result: 0x0
FLEXCAN tx mailbox initialization. result: 0x0
FLEXCAN tx mailbox activation. result: 0x0
FLEXCAN TX ISR install. result: 0x0
FLEXCAN TX remote ISR install. result: 0x0
FLEXCAN started. result: 0x0
Data transmit: 0
Data transmit: 1
FLEXCAN tx update message. result: 0x0
Data transmit: 2
FLEXCAN tx update message. result: 0x0
Data transmit: 3
FLEXCAN tx update message. result: 0x0
Data transmit: 4
FLEXCAN tx update message. result: 0x0
Data transmit: 5
FLEXCAN tx update message. result: 0x0
like this am getting the output. receiving task is not working .
And also in my transceiver is not in sleep mode, i kept it as high speed mode only.
in RX-TASK
if (_lwevent_wait_ticks(&event, 1 << RX_mailbox_num, FALSE, 0) != MQX_OK) {
printf("\n\rEvent Wait failed");
}
here its getting task_block.
hi,
i replace this line
if (_lwevent_wait_ticks(&event, 1 << RX_mailbox_num, FALSE, 0) != MQX_OK) {
printf("\n\rEvent Wait failed");
}
and put normal delay now its start to working, i mean i can receive the data