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.

while compiling no error., while debug getting error

Other Parts Discussed in Thread: TMS320C6745

Hi, 

am working on TMS320C6745 DSP with XDS100 V1 emulator. am doing some image processing project., it requires large large memory for my project., 

i wrote the code for my project, while compiling am not getting any error but while debug am getting the below error., . how to solve these errors ?????

Write error: Invalid File ID (51967) in CIO message!
Read error: Invalid File ID (54015) in CIO message!

  • What code are you trying ?
    Is that from TI release or own code ?
    Which line causes the error ?
    Try to do step by step debug or step over to findout the code which causes the error.
  • hi Titu, 

    Thsnks for you kind reply, 

    1. am trying one image processing project.

    2. its my own code , not release from TI.

    3. Error causes at the line after one printf and scanf , later it try to enter some function . 

    Many Thanks, 

    Thiyagarajan.S

  • Do you have allocated memory for CIO section in cmd file ?
    Need to allocate memory for scanf & printf fns in cmd file.

    Ex:
    In *.cmd, put entry like below (DDR)

    .cio > DDR

    Please refer to the following TI wiki.

    http://processors.wiki.ti.com/index.php/Tips_for_using_printf

  • Hi,

    yeah i allocated memory sections for cio .. the followings are my linker cmd file

    -l rts64plus.lib
    -l ../../common/Debug/driver_lib.lib

    -stack 0x00000800 /* Stack Size */
    -heap 0x00000800 /* Heap Size */

    MEMORY
    {
    VECS: o = 0xFFFF0000 l = 0x00000080
    ARMRAM: o = 0xFFFF0080 l = 0x00001f80
    DSPRAM: o = 0x11800000 l = 0x00040000
    SHAREDRAM: o = 0x80000000 l = 0x00020000
    SDRAM: o = 0xC0000000 l = 0x20000000
    }

    SECTIONS
    {
    .bss > SHAREDRAM
    .cinit > SHAREDRAM
    .cio > SHAREDRAM
    .const > SHAREDRAM
    .stack > SHAREDRAM
    .sysmem > SHAREDRAM
    .text > SHAREDRAM
    .switch > SHAREDRAM
    .far > SHAREDRAM
    }
  • Hi Thiyagarajan,

    Would like to understand why the UARTputs and UARTgets/UARTgetc cannot be used in place of printf and scanf?

    Regards,

    Shankari

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

    Please click the Verify Answer button on this post if it answers your question.
    --------------------------------------------------------------------------------------------------------

  • Shankari G,

    Thanks for your apt answer., i removed the printf and scanf in the coding, then CIO error was solved.,

    May i know the reason y it is so happening and y i cant use printf and scanf ???