This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28335 Internel CAN module - Query

Other Parts Discussed in Thread: TMS320F28335

hi,

We have an TMS320F28335 ezdp with us .Last day i was testing the internel CAN module by running the Example code "ecan_a_to_b_xmit" .and trying to see the CAN signal (SOF,bit identifier,data etc..) at the CAN TX pin (GPIO19/GPIO31) . but i couldn't view any signal

I didnt short the CAN A & CANB pins now. CAN I verify the out put like this?-

And i connected the CANA port out to the "CANUSB" converter , Tried viewing the data which i am transmitting (CANUSB software). But there also the data was not occuring.

 

CAN some body help me with this ? Is it correct what i am doing? 

Actually in our actual board we have CAN A and CAN B connected . That's the reason i need to verify the output data   by not shorting the pins !

One More thing which i noticed is that when i ran this example project the code is not coming out of while loop where it checks the data transmission?

                                while(ECanaShadow.CANTA.bit.TA25 == 0 ); 

 

 

 

 

  • SAP,

     

    It sounds like the eCAN signals are not routed properly on the eZdsp. The eCAN pins on the eZdsp are routed to both the P8 Expansion Header and the eCAN transceivers. In order to route the signals to the transceivers you need to configure positions 1, 2, 3 and 4 of SW2 as ON. Do you have these settings? You can see this information on page 39 of the TMS320F28335 eZdsp Technical Reference. This is available at the following link:

     

    http://c2000.spectrumdigital.com/ezf28335/docs/ezdspf28335c_techref.pdf

     

    Regards,

     

    Tim Love

  • hi TIm,

    Thanks for your reply ,

     

    Actually the SW2 settings are same as you told [SW1-4 is ON] , I am check the data out on P8 - 39th pin, i could see high low signals but i am not sure its the data because the example code still hangs at the place where it checks the transmission ( below is the loop where it hangs)

            do
            {
                          ECanaShadow.CANTA.all = ECanaRegs.CANTA.all;
            } while(ECanaShadow.CANTA.bit.TA25 == 0 );

     

    Is it the correct bechaviour? Or else is there any thing else i have to do for correcting the error!

     

    Thanks,

     

  • SAP,

    The CAN bus is a differential bus and you will see pulses on both the CANL and CANH. You will not see a straight data pulse. What are the physical connections you have from eCAN-A to eCAN-B (pin number to pin number)?

    Regards,

    Tim Love

  • Hi,

    I am also having the same issue. i.e. it doesn't come out of while loop.

    Did you get solution for this?

    I tried to verify whether any transmission is happening in CAN port using CAN analyser. But not able to receive any messages.

    Any help is appreciated.

     

    Thanks

  • Hi ,

    I am having the same problem too. Did u find the solution ??

    Thanks