• 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 » Digital Signal Processors (DSP) » C6000 Multicore DSP » C64x Multicore DSP Forum » Uart in FFTC_Multicore_exampleProject
Share
C6000 Multicore DSP
  • Forums
  • Announcements
Options
  • Subscribe via RSS
Training Available
TI provides self-paced online training that introduces the primary components of the KeyStone II family of SoC devices.

  • KeyStone II SoC Overview >
  • KeyStone II Software Overview >
  • KeyStone II ARM Cortex-A15 Corepac Overview >
  • More Information >
  • Check out
    Multicore Mix blog
    • $core_v2_blog.Current.Name

      Geeks UNITE for Geek Pride Day

      Posted 2 days ago
      by Lauren Reed1
      Happy Geek Pride Day from the Processors team! We wanted to celebrate...
    • $core_v2_blog.Current.Name

      OpenMP - All aboard!

      Posted 4 days ago
      by Debbie Greenstreet
      With so many end products today relying on multicore DSPs for...
    • $core_v2_blog.Current.Name

      A look back: Two years of Multicore Mix

      Posted 5 days ago
      by Lauren Reed1
      A big thank you to everyone who participated in our contest last...

    Forums

    Uart in FFTC_Multicore_exampleProject

    This question is not answered
    Marcus Ribeiro
    Posted by Marcus Ribeiro
    on Mar 09 2012 11:34 AM
    Prodigy70 points

    Hi,

    I'm trying to insert Uart in this example. I added the libraries and initialized the UART with:

        platform_uart_init();
        platform_uart_set_baudrate(115200);
        (void) platform_write_configure(PLATFORM_WRITE_UART );

    But, every time I try to print something in Uart the program freeze.

    How can I add this functionality in this code?

    thanks,

    Marcus

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Karthik Ramana Sankar
      Posted by Karthik Ramana Sankar
      on Mar 14 2012 16:04 PM
      Intellectual1695 points

      Hi Marcus,

      Are you running the example on the C6670 EVM?

      If yes, please try running C6670 EVM platform test, which can be found at:


      <CCS_INSTALL>\pdk_C6670_1_0_0_17\packages\ti\platform\evmc6670l\platform_test

      This platform test project, includes code which tests the UART connection on the C6670 EVM. For more details on how to run the test, please refer to the README file included in the project folder.

      Once you have this UART platform test working on the EVM, you can go ahead and port the UART part of this test project to the FFTC_Multicore_Example.

      Thanks,

      Karthik

      -------------------------------------------------------------------------------------------------------------------------------

      If you need more help, please reply back. If this answers the question, please click  Verify Answer , below.

      C6670
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Marcus Ribeiro
      Posted by Marcus Ribeiro
      on Mar 15 2012 07:58 AM
      Prodigy70 points

      Hi Karthik,

      I'm trying this, but the "FFTC example project"  freeze after the UART print, when I port the code to this example project.

      I'm trying to print something in the UART, but after this print the evm stops and I don't know why.

      Have you any idea?

      thanks,

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Karthik Ramana Sankar
      Posted by Karthik Ramana Sankar
      on Mar 16 2012 16:40 PM
      Intellectual1695 points

      Hi Marcus,

      Please, can you send me your modified FFTC example project or the modified source files (compared to the original FFTC example)? I can look at your modifications and will let you know, if I see any issues.

      Thanks,

      Karthik

      -------------------------------------------------------------------------------------------------------------------------------

      If you need more help, please reply back. If this answers the question, please click  Verify Answer , below.

      C6670
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Marcus Ribeiro
      Posted by Marcus Ribeiro
      on Mar 19 2012 13:11 PM
      Prodigy70 points
      multicore.c

      Hi Karthik,

      I sent the modified FFT example projetc with Uart test.

      thanks,

      Marcus

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Karthik Ramana Sankar
      Posted by Karthik Ramana Sankar
      on Mar 19 2012 16:54 PM
      Intellectual1695 points

      Hi Marcus,

      It would be very helpful, if you describe in detail your application use-case scenario for integrating UART with the FFTC example.

      After reviewing the modified multicore.c file, the following are my comments and suggestions:

      1) In main(), you create two run-time tasks with the same task parameters. One task is for the UART and the other task is for the FFTC example. If you just want to check if UART works along with FFTC example, then do not create a separate task for UART, just perform UART initialization and send characters to the serial console in the main function itself, before performing the BIOS start.

      2) If you want to design a generic UART BIOS driver, the UART task should block on a SW semaphore (which shares UART HW resource between tasks on the same core) or a HW semaphore (which shares UART HW resource between tasks on different cores).

      For any questions related to DSP BIOS, please post on the BIOS forum. For more details about DSP BIOS, please refer to the BIOS users guide at:

      <CCS_INSTALL>\bios_6_32_05_54\docs\Bios_User_Guide.pdf

      I hope this helps. 

      Thanks,

      Karthik

      -------------------------------------------------------------------------------------------------------------------------------

      If you need more help, please reply back. If this answers the question, please click  Verify Answer , below.

      DSP/BIOS C6670
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Marcus Ribeiro
      Posted by Marcus Ribeiro
      on Mar 20 2012 14:03 PM
      Prodigy70 points

       Hi Karthik,

      I put in main() the UART initialization, but I had the same problem.

      The program doesn't work after the serial print. I put this in the main function:

      platform_uart_init();

      platform_uart_set_baudrate(115200);

      platform_write("Serial test \n");

      Have you any idea about this problem?

      thanks,

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Karthik Ramana Sankar
      Posted by Karthik Ramana Sankar
      on Mar 30 2012 10:06 AM
      Intellectual1695 points

      Hi Marcus,

      Apart from the 3 lines of UART initialization code mentioned above, also include the rest of code available from platform test, which is used for writing and reading data from UART. This will solve your issue.

      To provide better support, please let me know your use case scenario for integrating the UART with FFTC example project.

      Thanks,

      Karthik.

      Thanks,

      Karthik

      -------------------------------------------------------------------------------------------------------------------------------

      If you need more help, please reply back. If this answers the question, please click  Verify Answer , below.

      C6670
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Rob G.
      Posted by Rob G.
      on Apr 12 2012 15:39 PM
      Intellectual390 points

      Karthik,

      I am seeing the same kind of problem on my C6678/EVM board.  I am trying to debug the Hello World PCIE example program, but it never returns when I try to step over a write to the uart.  Apparently it is looping forever.  When I hit pause, the stack shows

      CSL_chipReadTSCL() at csl_chipAux.h:421 0x80000014  
      platform_delaycycles(unsigned int)() at platform.c:719 0x80000E14  
      UartWriteData(unsigned char)() at evmc66x_uart.c:226 0x800087FC  
      platform_uart_write(unsigned char)() at platform.c:640 0x80000CE0  
      write_uart(char *)() at pcieboot_helloworld.c:116 0x80008E8C  
      main() at pcieboot_helloworld.c:165 0x80008FA8  
      _c_int00() 0x8000CCC8  (the entry point was reached)

      (I added about 12 lines to the write_magic_number() function, so the line numbers won't exactly match the original file.  None of the functions in that stack were modified by me, however)

      When I run this same code, outside of the debugger, using the boot_loader example, then it writes to the UART correctly.

      Can a program that writes to the UART be debugged?

       

      ==============================================================
      TMSC320C6678 with Blackhawk XDS560v2 USB mezzanine on a TMDXEVMPCI, openSuse 12.1
      DM8168x/C6A816x/AM389x Evaluation Module (TMDXEVM8168)
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Rob G.
      Posted by Rob G.
      on Apr 13 2012 10:06 AM
      Intellectual390 points

      Sorry, wrong forum.  I'll repost on my forum.

       

      ==============================================================
      TMSC320C6678 with Blackhawk XDS560v2 USB mezzanine on a TMDXEVMPCI, openSuse 12.1
      DM8168x/C6A816x/AM389x Evaluation Module (TMDXEVM8168)
      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