Skip to main content
RRama.8
Associate II
May 13, 2019
Question

Regarding the CAN Receiver on the EVAL board.

  • May 13, 2019
  • 7 replies
  • 1933 views

i am using SPC58nh92, I have configured the TX and RX pins as follow PA[10] and PA[11] respectively. But i am able to transmit message and view the message in CANOE tools,if i am trying to send msg from CANOE tool to CHIP it is showing TXerr in CANOE.Is there any Factors need to be conside other than pin mapping and wiring.

    This topic has been closed for replies.

    7 replies

    prashanth.mohan22
    Associate III
    May 14, 2019

    Hi Rubavenkatesh,

    Could you please provide info about what kind of error you are seeing in CANOE trace window, say stuff error, acknowledgement error and so on?

    Regards,

    Prashanth

    RRama.8
    RRama.8Author
    Associate II
    May 14, 2019

    Hello Prashanth,

    I am getting some times ACK slot error, if i Change some wiring or jumper configuration i get bit stuff error.

    Thanks in advance,

    Babu Ramaraj

    prashanth.mohan22
    Associate III
    May 14, 2019

    Hello Babu Ramaraj,

    Okay, then keep the jumper/wiring configuration in ACK slot error, which means the bus is active and the message is arbitrating from CANOE on the bus.

    Now, check you Rx callback to receive the identifier of CANOE Tx message.

    Regards,

    Prashanth

    RRama.8
    RRama.8Author
    Associate II
    May 14, 2019

    Hello Prasanth,

    For you Clarification i have attached the error message from CANOE  

      Time     Chn    ID   Name   Event Type  Dir    DLC   Data                           

     [-] 95.827896  CAN 1         CAN Error  TxErr      ECC: 11011001, Other Type of Error, Segment = ACK Slot  

        | ECC    11011001        

        | Code   Other Type of Error  

        | Segment  ACK Slot        

    and in tht IG block my message configuration ad follows:0690X000008BgvjQAC.png

    Rx callback function i am checking the identifier:

    void mcanconf1_fifo0rx(uint32_t msgbuf, CANRxFrame crfp) {

     if (crfp.ID == 0x05U) {

      pal_lld_togglepad(PORT_A, PA_LED3);

     }

     (void)msgbuf;

    }

    but even though it is failing.Can you help me with this.?

    it will be helpful for me

    Erwan YVIN
    ST Employee
    May 14, 2019

    Hi Rubavenkatesh,

    Sorry i am not familiar with CANOE.

    Could you check the CAN IP by debugger in SPC58nh92 ?

    Best Regards

    Erwan

    RRama.8
    RRama.8Author
    Associate II
    May 14, 2019

    yes i can see that .

    prashanth.mohan22
    Associate III
    May 14, 2019

    Hi Babu,

    I'm not sure whether this could help, make sure you have unchecked Loopback! Given that fact that you could transmit, it means you have already did it, but I'm not able to get it otherwise.

    Regards,

    Prashanth

    0690X000008BhOsQAK.png

    RRama.8
    RRama.8Author
    Associate II
    May 14, 2019

    i already did it from board to CANOE. i am able to see the message which are send from board.but if i try the vice versa it fails.