• 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 » eZdsp 28335 eCANA GPIO pin configuration
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?
  • Product Folder: F28069F, F28068F, F28062F, F28068M, F28069M
  • User’s Guide
  • Technical User’s Manual
  • Tools
  • Forums

    eZdsp 28335 eCANA GPIO pin configuration

    This question is not answered
    Jian Feng
    Posted by Jian Feng
    on Dec 08 2011 23:51 PM
    Prodigy30 points

    Hello,

    I'm developing a flash bootloader using the eZdsp 28335 kit and CCS v3.3. It receives application code through CAN and stores it into the on-board external SRAM (Zone 7). At the end of download it reads the data from external SRAM Zone 7 and burns it into the internal flash.  I'm using eCANA module (with CANRXA and CANTXA being mapped to GPIO30 and GPIO31). The bootloader works fine in the debug mode with JTAG connected. But it fails when JTAG is disconnected (stand-alone mode).

    I believe it is because I did not initialize the external interface (XINTF) zone 7 right after the F28335 is powered up. So I added the XINTF initialization code (DSP2833x_Xintf.c). Since GPIO30 and GPIO31 have to be used for address line XA18 and XA17. I had to remap GPIO18 and GPIO19  to CANRXA and CANTXA by changing the code in InitECanaGpio(). However after I made the change the CAN communication stopped working. I wonder besides changing InitECanaGpio(), is there any other place in the code that I needed to change?  I'm using eZdsp 28335 kit, do I have to physically change any hardware configuration on the board in order to use GPIO18 and GPIO19 for CANRXA and CANTXA (currently I'm using CANA Connector which is P11 on the board)?

    Here is the modified InitECanaGpio():

    void InitECanaGpio(void)  
    {  
       EALLOW;  
      
    /* Enable internal pull-up for the selected CAN pins */  
    // Pull-ups can be enabled or disabled by the user.  
    // This will enable the pullups for the specified pins.  
    // Comment out other unwanted lines.  
      
    //    GpioCtrlRegs.GPAPUD.bit.GPIO30 = 0;     // Enable pull-up for GPIO30 (CANRXA)  
      GpioCtrlRegs.GPAPUD.bit.GPIO18 = 0;     // Enable pull-up for GPIO18 (CANRXA)  
      
    //    GpioCtrlRegs.GPAPUD.bit.GPIO31 = 0;     // Enable pull-up for GPIO31 (CANTXA)  
      GpioCtrlRegs.GPAPUD.bit.GPIO19 = 0;     // Enable pull-up for GPIO19 (CANTXA)  
      
    /* Set qualification for selected CAN pins to asynch only */  
    // Inputs are synchronized to SYSCLKOUT by default.  
    // This will select asynch (no qualification) for the selected pins.  
      
    //    GpioCtrlRegs.GPAQSEL2.bit.GPIO30 = 3;   // Asynch qual for GPIO30 (CANRXA)  
      GpioCtrlRegs.GPAQSEL2.bit.GPIO18 = 3;   // Asynch qual for GPIO18 (CANRXA)  
      
      
    /* Configure eCAN-A pins using GPIO regs*/  
    // This specifies which of the possible GPIO pins will be eCAN functional pins.  
      
    //    GpioCtrlRegs.GPAMUX2.bit.GPIO30 = 1;    // Configure GPIO30 for CANRXA operation  
      GpioCtrlRegs.GPAMUX2.bit.GPIO18 = 3;    // Configure GPIO18 for CANRXA operation  
    //    GpioCtrlRegs.GPAMUX2.bit.GPIO31 = 1;    // Configure GPIO31 for CANTXA operation  
      GpioCtrlRegs.GPAMUX2.bit.GPIO19 = 3;    // Configure GPIO19 for CANTXA operation  
      
        EDIS;  
    }  


    Thanks a lot for your help in advance.

    Danny

    F28335 XINTF CCS v3.3 TMS320F28335 C2000 eCAN bootloader eZdspF28335 "28335" 28335 Ecan
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Frank Bormann
      Posted by Frank Bormann
      on Dec 09 2011 02:20 AM
      Genius5225 points

       

      The eCANA interface transceiver of the eZdsp is hard wired to GPIO30/31, see: http://c2000.spectrumdigital.com/ezf28335/docs/ezdspf28335c_techref.pdf.

       

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Jian Feng
      Posted by Jian Feng
      on Dec 09 2011 17:13 PM
      Prodigy30 points

      Indeed. After I changed it to eCANB port and it is working fine now.

      Thanks a lot for your help! 

      Danny

      F28335 TMS320F28335 eZdsp™ F28335 C2000 bootloader eZdspF28335 "28335" C28x 28335 Ecan
      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