AM2634: MCAN in AM2634

Part Number: AM2634
Other Parts Discussed in Thread: SYSCONFIG, TCAN1042H

Tool/software:

Hi TI Folks,

I am configuring the MCAN0 (example code: MCAN Loopback Interrupt) AM2634 with my project, but not getting output. When i checked the sysconfig file, i found the configuration, please checked attached screenshots.

I am using AM2634 Control Card and HSEC Board. are there any pin mapping issues?

Regards

Aman

  • Hello Aman,

    The loopback example is based on internal loopback for the MCAN signals so you need to use the external read write project to get signals that will drive the CAN transceiver.

    Best Regards,

    Ralph Jacobi

  • Hi Ralph,

    I am using MCAN loopback interrupt code for my development. external read write project has I2C and this is not my requirement. I am trying to interface TCAN1042H IC with AM2634 MCU code MCAN loopback interrupt. is that correct or any other methods are there?

    Regards

    Aman

  • Hello Aman,

    I will need to review the schematics but you may need to use I2C for your purposes due to the layout of the ControlCard EVM.

    I am back in office tomorrow and will look into that further.

    In the meantime you'd want to turn off loopback mode to work with external CAN devices.

    Best Regards,

    Ralph Jacobi

  • Hi Aman,

    Okay for the TCAN1042H you wouldn't need I2C connections to be used. The MCAN1_TX and MCAN1_RX pins go straight from the SoC to the transceiver with no muxing.

    You could either work to re-configure the loopback example to remove loopback functionality or use the external read/write and cut out the I2C code etc. and just swap the MCAN0 setup to go to MCAN1 instead.

    The I2C code in that example is for driving the MCAN0 output to HSEC pins, not for working with TCAN1042H.

    Best Regards,

    Ralph Jacobi

  • Hi Ralph,

    As per Code, here is diagram:

    I am using AM2634 Control Card EVM board and Connected to HSEC. MCAN1_TX and MCAN_RX are not there on board. So, I have changed the MCAN1 to MCAN0 and disable the loopback in Interrupt loopback (only this change i made in code). I found that interrupt is not getting trigger while executing the code. Now, I have used external read/write code also. i removed the I2C Part and tried to execute the code but not getting any output from TCAN1042 IC.

    am I missing something or what I am doing wrong?

    Regards

    Aman

  • Hello Aman,

    The only CAN pins connected to TCAN1042 are MCAN1_TX and MCAN1_RX:

    So if you configure MCAN for any other instance then TCAN1042 will not output any signals as you are seeing.

    So, I have changed the MCAN1 to MCAN0 and disable the loopback in Interrupt loopback (only this change i made in code).

    Based on that was this a typo and you changed MCAN0 to MCAN1?

    Best Regards,

    Ralph Jacobi

  • Hi Ralph,

    I have configured the MCAN0 for external Transceiver TCAN1042. I am using interrupt loopback example code and disable the loopback part; I am not getting any response. 

    am I missing something here or doing something wrong?

    Regards

    Aman

  • Hello Aman,

    Do you have an TCAN1042 BoosterPack you are interfacing to the MCAN0 pins? If so I can test the same on my end. 

    Best Regards,

    Ralph Jacobi

  • No, for reference below is my circuit diagram:

    I have configured the MCAN0 for external Transceiver TCAN1042. I am using interrupt loopback example code and disable the loopback part.

    Regards

    Aman

  • Hello Aman,

    external Transceiver TCAN1042

    I am trying to confirm what you mean by this - do you have an additional PCB you are connecting here? Can you send an image of your hardware setup? I would need to try and replicate something similar on my end.

    Best Regards,

    Ralph Jacobi

  • Hi Ralph,

    I am using Raw Hardware,

    and I am sending you the simple circuit diagram and IC Link:

    tcan1042-q1.pdf (ti.com)

    TCAN_H and TCAN_L not getting anything?

    Regards

    Aman

  • Hi Ralph

    Any Update regarding this?

    Regards

    Aman

  • Hello Aman,

    I'm awaiting hardware to arrive to replicate this and will try and update on Thursday.

    Best Regards,

    Ralph Jacobi

  • Ok. 

    one more request, is it possible to connect over mail?

    Regards

    Aman

  • Hi Ralph,

    If possible, then can we connect over mail?

    and please update.

    Regards

    Aman

  • Hi Aman,

    Try this example project out: mcan_external_tx_am263x-cc_r5fss0-0_nortos_ti-arm-clang.zip

    I was able to get the following on my TCAN1042 EVM with it:

    That is output from MCAN0 using AM263 ControlCard + HSEC Dock.

    If possible, then can we connect over mail?

    Sorry but I only provide this sort of technical support over E2E.

    Best Regards,

    Ralph Jacobi

  • Hi Ralph, 

    I have used your code. I connected oscilloscope probe on MCAN0 Tx Pin on AM2634 EVM board but not getting any signal. Just for your information I have not connected external CAN Transceiver.

    I was just checking the Signal from MCAN0 Tx on AM2634 EVM Board.

    Regards

    Aman

  • Hello Aman,

    I am not sure what would output without the transceiver on the other end because the signal chain wouldn't be completed. The CAN bus is based on having terminations on each end so it's not like SPI etc. I could test the same on Monday as I don't have access to a scope today but it wouldn't surprise me to see no signal without the transceiver connected.

    I put together that example for you to use with your setup including the TCAN1042, please try it with that:

    Best Regards,

    Ralph Jacobi

  • Hi Ralph,

    Any Update on this?

    Regards

    Aman

  • Hi Aman,

    I confirmed you need the transceiver connection to be completed to have a proper signal chain and get output from the MCAN pins. If I disconnect the TCAN1042 from my HSEC dock, the CAN signals are not transmitted.

    Best Regards,

    Ralph Jacobi

  • Hi Ralph,

    Here is an update: I am able to communicate with TCAN1042 IC with Loopback Polling Code.

    1.I have executed Example Code: "mcan_loopback_polling_am263x-cc_r5fss0-0_nortos_ti-arm-clang" after disabling the loopback with my external Transceiver circuit and it is working fine. attaching CAN waveform for your reference:

     

    2. I have executed your code:  /cfs-file/__key/communityserver-discussions-components-files/908/mcan_5F00_external_5F00_tx_5F00_am263x_2D00_cc_5F00_r5fss0_2D00_0_5F00_nortos_5F00_ti_2D00_arm_2D00_clang.zip

    I did not get any response and attaching waveform for your reference:

    one more thing: is there any way to communicate over mail or some other way?

    because this issue is getting escalated?

    Hope you understand!!! 

    Regards

    Aman

  • Hello Aman,

    It's good to see you have CAN communication going, the first example you mention should be just fine to continue development with as you have loopback turned off successfully and can see communication. A little curious why the other example doesn't work but it's likely an issue either with SysConfig or pinout. In any case I was trying to share that to speed up getting to where you are now with "mcan_loopback_polling_am263x-cc_r5fss0-0_nortos_ti-arm-clang" so I don't think we need to give that project further attention to debug.

    What is issue that is getting escalated then, I don't know what else you need help with regarding this implementation? 

    Best Regards,

    Ralph Jacobi