• 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 » Development Tools » Code Composer Studio » Code Composer Forum » Invalid CIO command
Share
Code Composer Studio
  • Forum
  • Announcements
Options
  • Subscribe via RSS
Common Questions
  • Code Composer Studio Forum Usage Guidelines

  • Resources
  • Code Composer Studio (CCStudio) Product Folder
  • Troubleshooting CCS
  • CCS Wiki
  • Download CCS
  • Order CCS
  • Tools Insider Blog
  • Bug Tracking
  • Invalid CIO command

    Invalid CIO command

    This question is answered
    gaurav pahuja
    Posted by gaurav pahuja
    on May 12 2012 02:22 AM
    Prodigy100 points

    Hi,

    I am using TMS320C6745 DSP for developing a board. Using CC studio and selecting the simulator connection I am running the sample projects, but every time I run a program an error comes.

    Invalid CIO command (0) in the CIO buffer at address (0x69e8) was not recognized. Please check the device and program memory maps.

    Please let me know the reason for this.

    Gaurav

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Ki-Soo Lee
      Posted by Ki-Soo Lee
      on May 14 2012 10:28 AM
      Guru119215 points

      Hello Gaurav,

      This issue has been raised in the past. There are several potential causes. You haven't mentioned what version of CCS you are using. If you are not already, the first thing I I recommend is updating to the latest version of CCS. There was a known issue with CCSv5.1.0  regarding CIO that was fixed in 5.1.1. Let me know if this helps or if you are already using 5.1.1.

      Thanks

      ki

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

      Don't forget to verify answers to your forum questions by using the green "Verify Answer" button.

      Did you read the CCS Forum Guidelines & FAQ? If not, PLEASE read it. If you haven't read it in awhile, please read it again to see if any updates were made.

      Having CCSv5 problems? Check out the CCSv5 Troubleshooting Guide

      Click here to track an issue. Enter your bug id in the "Find Record ID" box

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • K Md Feroz Irfan
      Posted by K Md Feroz Irfan
      on May 14 2012 11:16 AM
      Expert5705 points

      Hi Ki

      CCS5.2 is what he is using. Is this fixed here...?

      Best Regards

      Feroz

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Ki-Soo Lee
      Posted by Ki-Soo Lee
      on May 14 2012 12:52 PM
      Guru119215 points

      I would expect that it is also fixed in 5.2. If the issue persists in 5.2, then there could be other factors involved. The thread referenced below has more details on the issue with some suggestions.

      http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/76336/376071.aspx

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

      Don't forget to verify answers to your forum questions by using the green "Verify Answer" button.

      Did you read the CCS Forum Guidelines & FAQ? If not, PLEASE read it. If you haven't read it in awhile, please read it again to see if any updates were made.

      Having CCSv5 problems? Check out the CCSv5 Troubleshooting Guide

      Click here to track an issue. Enter your bug id in the "Find Record ID" box

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • gaurav pahuja
      Posted by gaurav pahuja
      on May 15 2012 05:33 AM
      Verified Answer
      Verified by Ki-Soo Lee
      Prodigy100 points

      Sir,

      I am not able to understand much from the thread you provided still I am able to solve the issue. I am explaining you what I did with a vague idea, do correct me if I am wrong. For my DSP(TMS320C6745) there is no Windows Command Script i.e. .cmd file in the software libraries. When I added the the Windows Command Script file of TMS320C6747 in my work-space and linked it with my project it worked fine and there were no C I/O errors this time. But I think the issue is something different as I am not adding the .cmd files in any other processor while running the codes using simulator for ex. TMS320C6713 and still the code is running well. So I want to know that what is the exact issue. it is because of standard C functions used to output text like printf or the fault is in the .ccxml file (target configuration file) which is behaving differently for different devices or its just the absence of .cmd file for my device.

      Gaurav  

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Ki-Soo Lee
      Posted by Ki-Soo Lee
      on May 15 2012 09:35 AM
      Verified Answer
      Verified by Ki-Soo Lee
      Guru119215 points

      Gaurav - thanks for the follow up.

      yes having a CCS linker command file (*.cmd) would help (note that it is completely unrelated to the windows command script, they just share the same file name extension). In the thread I referenced earlier, having a correct *.cmd file for your project would resolve one of the causes mentioned by MartinS: "This region may not be a valid memory for your device". The linker command file specifies the target memory layout to the compiler so that it know where to properly place your code/data.

      gaurav pahuja
      But I think the issue is something different as I am not adding the .cmd files in any other processor while running the codes using simulator for ex. TMS320C6713 and still the code is running well.

      It was fine on simulator because most simulators assume flat memory where all memory is read/write-able. basically that all memory is "valid". This is not the case on real hardware and it is very important you use a correct linker command file for your project if you want to load/run on hardware.

      Thanks

      ki

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

      Don't forget to verify answers to your forum questions by using the green "Verify Answer" button.

      Did you read the CCS Forum Guidelines & FAQ? If not, PLEASE read it. If you haven't read it in awhile, please read it again to see if any updates were made.

      Having CCSv5 problems? Check out the CCSv5 Troubleshooting Guide

      Click here to track an issue. Enter your bug id in the "Find Record ID" box

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • gaurav pahuja
      Posted by gaurav pahuja
      on May 15 2012 23:47 PM
      Prodigy100 points

      Hi Sir,

      Thanks for the help.

      That's true that the case will be different when I will be working on real hardware but simulator must behave similarly for all the devices either demand for a *.cmd file or assume complete memory as a  read/write-able.

      Best Regards

      Gaurav

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Ki-Soo Lee
      Posted by Ki-Soo Lee
      on May 16 2012 15:11 PM
      Guru119215 points

      The recommended method is to use a custom startup GEL file that will configure the debugger memory map for the simulator to mimic your target board. That way you would see the same error with the simulator.

      Thanks

      ki

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

      Don't forget to verify answers to your forum questions by using the green "Verify Answer" button.

      Did you read the CCS Forum Guidelines & FAQ? If not, PLEASE read it. If you haven't read it in awhile, please read it again to see if any updates were made.

      Having CCSv5 problems? Check out the CCSv5 Troubleshooting Guide

      Click here to track an issue. Enter your bug id in the "Find Record ID" box

       

      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