• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Microcontrollers » C2000™ Microcontrollers » C2000 32-bit Microcontrollers Forum » problem in ecan_a_to_b_xmit in ezdsp TMS320F28335 example
Share
C2000™ Microcontrollers
  • Forums
  • Announcements
  • E2E Wiki
Options
  • Subscribe via RSS
C2000 Resources
  • Product Folder
  • C2000 Training Portal
  • C2000 Technical Training Catalog
  • C2000 Datasheets, App Notes, User Guides
  • C2000 Hardware Design Kits
  • controlSUITE for C2000 Software Library


  • InstaSPIN Resources
  • What is InstaSPIN?
  • Videos and Support


  • InstaSPIN-FOC and InstaSPIN-MOTION Resources
  • What is InstaSPIN-FOC?
  • What is InstaSPIN-MOTION?
  • InstaSPIN Simulation Tool
  • Product Folder: F28069F, F28068F, F28062F, F28068M, F28069M
  • User’s Guide
  • Technical User’s Manual
  • Tools
  • problem in ecan_a_to_b_xmit in ezdsp TMS320F28335 example

    problem in ecan_a_to_b_xmit in ezdsp TMS320F28335 example

    This question is not answered
    Adel
    Posted by Adel
    on Oct 18 2010 08:42 AM
    Prodigy135 points

    Hi

    I am trying to run an example program for ecan_a_to_b_xmit in ezdsp TMS320F28335.

    i connect cana to canb lines in the ezdsp board

    when i run the example it stay in the loop

     


    for(i=0; i < TXCOUNT; i++)
       {
           ECanaShadow.CANTRS.all = 0;
           ECanaShadow.CANTRS.bit.TRS25 = 1;             // Set TRS for mailbox under test
           ECanaRegs.CANTRS.all = ECanaShadow.CANTRS.all;

           do
         {
           ECanaShadow.CANTA.all = ECanaRegs.CANTA.all;
        
      } while(ECanaShadow.CANTA.bit.TA25 == 0 );   // Wait for TA25 bit to be set..


           ECanaShadow.CANTA.all = 0;
           ECanaShadow.CANTA.bit.TA25 = 1;               // Clear TA25
           ECanaRegs.CANTA.all = ECanaShadow.CANTA.all;

           loopcount ++;
        }

     

    the can bus moudle is not change ECanbShadow.CANTA.bit.TA25  state to high

    someone can help me ? 

     

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Jizhong Wang
      Posted by Jizhong Wang
      on Nov 10 2010 12:21 PM
      Prodigy190 points

      Have you gotten it solved?

      I am getting identical issue and could not figure it out myself.

      Can someone help us? Thanks

       

      Adel

      Hi

      I am trying to run an example program for ecan_a_to_b_xmit in ezdsp TMS320F28335.

      i connect cana to canb lines in the ezdsp board

      when i run the example it stay in the loop

       


      for(i=0; i < TXCOUNT; i++)
         {
             ECanaShadow.CANTRS.all = 0;
             ECanaShadow.CANTRS.bit.TRS25 = 1;             // Set TRS for mailbox under test
             ECanaRegs.CANTRS.all = ECanaShadow.CANTRS.all;

             do
           {
             ECanaShadow.CANTA.all = ECanaRegs.CANTA.all;
          
        } while(ECanaShadow.CANTA.bit.TA25 == 0 );   // Wait for TA25 bit to be set..


             ECanaShadow.CANTA.all = 0;
             ECanaShadow.CANTA.bit.TA25 = 1;               // Clear TA25
             ECanaRegs.CANTA.all = ECanaShadow.CANTA.all;

             loopcount ++;
          }

       

      the can bus moudle is not change ECanbShadow.CANTA.bit.TA25  state to high

      someone can help me ? 

       

      eZdsp F28335 CAN
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Frank Bormann
      Posted by Frank Bormann
      on Nov 11 2010 02:22 AM
      Genius5425 points

      What's exactly the problem?

      I your post you say: "the can bus moudle is not change ECanbShadow.CANTA.bit.TA25  state to high".

      Well, that wll never happen, since you transmit with CANA and not CANB.

      If the quelstion was, "why doesn't  the CANA set the bit TA25?", then it makes more sense. The TA bit is not set by the CAN communication controller in case of an unsuccessful transmission. There can be many  reasons:  How did you connect CANA anf CANB? Did you use transceivers to connect  the lines CANH and CANL between CANA and CANB? Did you enable the clock both for CANA and CANB? Are CANA and CANB initialized properly? Did you use termination resistors between CANH and CANL, especially at 1MBit/s?

      Hope this helps.

         

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Alireza Bemani
      Posted by Alireza Bemani
      on Apr 10 2012 02:26 AM
      Prodigy25 points

      Hi,

      I have recently faced with a similar problem  (problem in ecan_a_to_b_xmit in ezdsp TMS320F28335 example).
      Note that "Since CAN-B is initialized in DSP2833x_ECan.c, it should acknowledge all frames transmitted by the node on which this code runs". So, this should be run properly on 28335 supporting two independent CAN module. By the way, I even have tested this code on two independent DSKs and unfortunately it was not successful too.
      Could anyone finally afford this problem?

      Meanwhile, my hardware CAN-BUS connection has been represented as attached file.

      (JP2 and JP3 are short-circuit by using jumpers)

      All other software configurations and codes are the same as  "Example_2833xEcanA_to_B_Xmit.pjt" TI example but GPIO configurations in"InitEcanGPIO()" function has been changed  to (GPIO19,18,20,21).
      I'll be really grateful if anyone could help me to solve this problem too.

      Beforehand I thank for your hints


      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Adel
      Posted by Adel
      on Apr 15 2012 00:29 AM
      Prodigy135 points

      hi Alireza

      check if the clock of the can bus is setting  ?

      EALLOW;

      SysCtrlRegs.PCLKCR0.bit.ECANAENCLK = 1;  // eCAN-A

      EDIS;

      Regards

      Adel

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Alireza Bemani
      Posted by Alireza Bemani
      on Apr 15 2012 23:08 PM
      Prodigy25 points

      Thanks for your reply.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Marcelo Silva57839
      Posted by Marcelo Silva57839
      on Sep 25 2012 05:49 AM
      Prodigy10 points

      Hi everyone, I have tha same problem the flag ECanaShadow.CANTA.bit.TA25 does not change of state.

      Have anyone solved the problem ?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • LYpwr
      Posted by LYpwr
      on Nov 14 2012 14:46 PM
      Prodigy20 points

      TI engineers still can't give us any advice for that?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • JaeHun Jung
      Posted by JaeHun Jung
      on May 23 2013 07:07 AM
      Prodigy20 points

      Hi.

      I have same problem the eCan communication. and I have a question to you.

      What version of CCS do you use? I tested eCan module in CCSv 3.3, and it operates well.

      but in CCS v5 doesn't  operate because  canta.bit.tax bit is not change.

      and next loop is infinete. 

      do{
            ECanaShadow.CANTA.all = ECanaRegs.CANTA.all;
      }     while(!ECanaShadow.CANTA.bit.TA0);

      So I think this problem is CCSv5's bug...

      please help me.. 

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • JaeHun Jung
      Posted by JaeHun Jung
      on May 25 2013 23:22 PM
      Prodigy20 points

      hi, I found it!!

      what version of Control suite common source file and header file do you use?

      I used latest version source and header file and had problem in eCan,( problem is not to change TA bit...)

      But, it is ok in old version source and header file. (it operates well in version v121 or lower)

      exactly, i checked with v121 source and header file.

      header file has a little of changing.

      Good luck~ all!

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    TI E2E™ Community
    • Support Forums
    • Blogs
    • Videos
    • Groups
    • Site Support & Feedback
    • Settings
    TI E2E™ Community Groups
    • TI University Program
    • Make the Switch
    • Microcontroller Projects
    • Motor Drive & Control
    Other Communities
    • Deyisupport
    • Designsomething.org
    • beagleboard.org
    • TI on Element 14
    • TI on TechXchangeSM
    Other Technical & Support Resources
    • WEBENCH® Design Center
    • Product Information Centers
    • Technical Documents
    • TI Design Network
    • TI Technical Articles
    • TI Training

    All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

    Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

    Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
    TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

    TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
    embedded processors, along with software, tools and the industry’s largest sales/support staff.

    © Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
    Trademarks | Privacy Policy | Terms of Use