S6E2GM8H0A CAN bit1 error

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
FeNi_4676936
Level 1
Level 1
First reply posted First question asked

I use a TJA1051 to  CAN Connection,the S6E2G's VCC is 5V and the PPL frequency is 160M HZ.

It can transmit successful in 100k bit/s.Code as follows

  stcCanConfig.bTouchPrescaler = TRUE;

  stcCanConfig.stcBitrate.u8TimeSegment1  = 13;

  stcCanConfig.stcBitrate.u8TimeSegment2  = 6;

  stcCanConfig.stcBitrate.u8SyncJumpWidth = 1;

  stcCanConfig.stcBitrate.u16Prescaler = 8;

  stcCanConfig.stcBitrate.enCanPrescaler = CanPreDiv110; // 160 MHz / 10 = 16 MHz

but it's failed in 200k bit/s.Code as follows,I changed stcCanConfig.stcBitrate.u16Prescaler.

  stcCanConfig.bTouchPrescaler = TRUE;

  stcCanConfig.stcBitrate.u8TimeSegment1  = 13;

  stcCanConfig.stcBitrate.u8TimeSegment2  = 6;

  stcCanConfig.stcBitrate.u8SyncJumpWidth = 1;

  stcCanConfig.stcBitrate.u16Prescaler = 4;

  stcCanConfig.stcBitrate.enCanPrescaler = CanPreDiv110; // 160 MHz / 10 = 16 MHz

The STATR Register' LEC = 4 .It means BIT 1 error.

When the error occurs the voltage of tx pin of TJA1051 is about 2.7V. It is stange ,because in the DATASHEET ,the H level outputvoltage is VCC-0.5~VCC ,the L level outputvoltage is VSS ~ 0.4V.

0 Likes
5 Replies
ShipingW_81
Moderator
Moderator
Moderator
500 replies posted 250 solutions authored 250 replies posted

feni_4676936

What's the voltage on the tx pin of TJA1051 when the transmssion speed is 100k bit/s? Is it normal?

Is the test board DVK board or your custom board?

0 Likes

its custom board.the voltage is normal ,about 5v

0 Likes

Have you ever tried with DVK board? If yes, what's the test result?

If possible, could you upload your application schematic?

0 Likes

I use the function  en_result_t Can_SetTransmitMsgBuffer and  en_result_t Can_UpdateAndTransmitMsgBuffer in can.c download in the official website

Can you tell me some possible reasons could  cause bit error when speed up ,please.

THANK U very much.

0 Likes

We may need your shcematic or whole project for further debugging. Can you provide? If you tried DVK board, what's the test result for speed up?

0 Likes