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.

udpecho /tpcecho on DK-Tm4C129

Hi,

I tried to debug the tcpecho example project  on  DK-TM129X on TI-RTOS, but it gave me "

Invalid CIO command (0). Memory map prevented reading 0x2000E7D8" error when I tried to run it.

The project that I load was : tcpEcho_TivaTM4C129XNCZAD .

And based on the debugging that I have done, seems like it is due to the  system_printf call...(after executing system_flush())

But, If I tried other project, for example gpio_interrupt project , everything worked fine. The system_printf run fine too !

 

Do I need to set something to make the udpecho project  work ?

The same error happened on tcpecho project as well.

I use CCS  version 6, TI compiler.

XDC:

--xdcpath="C:/ti/tirtos_tivac_2_00_01_23/packages;C:/ti/tirtos_tivac_2_00_01_23/products/bios_6_40_01_15/packages;C:/ti/tirtos_tivac_2_00_01_23/products/ndk_2_23_01_01/packages;C:/ti/tirtos_tivac_2_00_01_23/products/uia_2_00_00_28/packages;C:/ti/ccsv6/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M4F -p ti.platforms.tiva:TM4C129XNCZAD -r release -c "C:/ti/ccsv6/tools/compiler/arm_5.1.5"

 

Here is the screenshot of the error :

 

Invalid CIO command (0). Memory map prevented reading 0x2000EBD8

Invalid CIO command (0). Memory map prevented reading 0x2000EBD8

Invalid CIO command (0). Memory map prevented reading 0x2000EBD8

It  happens when I start the debugging.

Thank you

  • siauhwa ong said:

    Do I need to set something to make the udpecho project  work ?

     Hi, sorry for delay, there where issue on ENET hardware, you need apply a patch to code, see on TIRTOS forum where I suffered same trouble of IP address and network forever down.

     Try in first lower the CPU clock to 60MHz and see if it work, then apply patch and raise frequency to a reliable value.

  • Hi Roberto,

    I'm not familiar with ti-rtos. Could you please let me know how to set the lower freq?

    I know there a few lines of code as on your posting :

    xdc_runtime_Types_FreqHz cpuFreq;

        BIOS_getCpuFreq(&cpuFreq);
        cpuFreq.lo = 10*(cpuFreq.lo/12);
        BIOS_setCpuFreq(&cpuFreq);

    But, where should I put the code ..?

    thank you

  •  This is done before the init code of ENET, if you are using CCS click on CFG on project then select clock and set new one.

     After that I changed these line to fine tune freq in MHz to:

        BIOS_getCpuFreq(&cpuFreq);
        cpuFreq.lo = 75*(cpuFreq.lo/120);
        BIOS_setCpuFreq(&cpuFreq);