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.

CCS messages while running simulator

 

Hi,

I get following error while running my application test project on CCS simulator (v3.3.82.13):

Error: Invalid link entry  

Trouble Halting Target CPU: Cannot halt the processor

Error: Invalid link entry  

Trouble Halting Target CPU: Cannot halt the processor

My application uses: EDMA3 and FSYNC. But i'm not sure if this is related to these peripherals or might be a generic CCS message?
Regards,
Justin

 

  • Hi Justin,

    What simulator are you using?

  • Hi,

    I use "TCI6488 simulator Asymmetric, Big Endian".

    Regards,

    Justin

  • You get those errors by just running the program? Are you trying to halt execution yourself or are those "cannot halt" messages occurring regardless?

    Any chance you can send me your program?

  •  Hi,

    I get this error while running CCS. I do not try to halt processor.

    I'll try to provide the code snippet soon.

    Regards,

    Justin

  • Hi,

    Pls find attached a truncated version of code, that i use.

    One more observation is, i was getting this error today, even though i did not explicitly use EDMA channel #8:

    "Error: DMA channel 8 did not have DCHMAP programmed even though channel mapping exists on device. Using default PARAM of 0"

    And with this code, when i as trying to halt DSP, CCS was failing with message "unable to halt target CPU" (original issue was appearing without any attempt to manually halt CPU). When i configured channel #8 with some dummy, value this issue went away i.e. i was able to halt CPU.

    Any reason that i need to program channel #8, even though i do not intentionally use it?

    I used to get this error message in original test code as well, but i ignored it.

    Regards,

    Justin

  • Justin,

    I'm looking for the actual program (*.out file). Would it be possible to provide that?

    Thanks

    ki

  • Hi Ki,

    Please find attached the ".out" and ".map" file.

    Regards,

    Justin

    e2e-forum-output-file.zip
  • Hello Justin,

    I was able to reproduce the issue on TCI6488 on CCSv3 and CCSv4 using the .out that you have provided. When I tried to do a non-intrusive trace, I noticed the following transactions happening

    # TRP Trace

    #CLK,TC_NUM,SRC,DST,ACNT,BCNT,SRCBIDX,DSTBIDX,OPT.TCC,PRIORITY,OPT.TCCHEN,OPT.TCINTEN

    5d26c,0,1083d868,60000000,64,1,0,0,8,0,1,0

    5d302,0,1083d8d0,60000800,64,1,0,0,8,0,1,0

    5d3c2,0,1083d938,60001000,64,1,0,0,8,0,1,0

    5d482,0,10835884,60001800,64,1,0,0,8,0,1,0   # This line repeats indefinitely after the Error message.

    5d542,0,10835884,60001800,64,1,0,0,8,0,1,0

    The specific Error message is prompted when there is an attempt to trigger an event that hasn't been mapped (and as you pointed out the Error vanishes when it is properly programmed). Since the attached .c has a number of #defines, I am unable to establish at which point the appropriate channel is being triggered (either through unintentional coding issue or a possible simulator bug). Would it be possible to attach the project file to help further investigation of the issue. Or perhaps the trace provided above gives you a clue on the same.

    Regards,

    R. Swaminathan

  • Hi Swaminathan,

    Thanks for the analysis. I think i missed to add one point: I see this issue only on CCS Simulator. When i try this example on EVM, i do not see this issue  (EDMA Channel #8).

    I can share the macros which are used: 

    #define COM_TIMESTAMP_TX_TO_RAC_CHANNEL                 23 

    #define COM_TIMESTAMP_TX_TO_RAC_PARAM                   23

     

    #define COM_8CHIP_TRIGGER_AIF_TO_RAC_UL_CHANNEL         17

    #define COM_8CHIP_TRIGGER_AIF_TO_RAC_UL_PARAM_0         17

    #define COM_8CHIP_TRIGGER_AIF_TO_RAC_UL_PARAM_1         18

    #define COM_8CHIP_TRIGGER_AIF_TO_RAC_UL_PARAM_2         19

    #define COM_8CHIP_TRIGGER_AIF_TO_RAC_UL_PARAM_3         20

    #define COM_DEBUG_VALUE_CHANNEL                 24 

    #define COM_DEBUG_VALUE_PARAM                   24

    #define EXEC_AIF_DATA_BLOCK_SIZE_IN_BYTES 0x25

    I think this could be simulator issue(???).  If the above information is insufficient, i can try to share the project, with minimal source code.

    Regards,

    Justin

  • Hi Justin,

    The Simulator throws in a set of extra checks for defensive programming to alert the developer on possible oversights. Once an "Error:" message is thrown from any IP, the simulation is not guaranteed beyond that point, although "Warning:" messages might be Ok. These may not be present in H/W.

    It would be helpful in this case if a project file is provided to further debug the issue.

    Best regards,
    Swami