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.

RTOS: EDMA error problem



Tool/software: TI-RTOS

Hi

I'm using TDA3xx EVM, PROCESSOR RADAR SDK_03_06 version.

and mmwave_dfp_01_02_00_00 version of AWR1243.

this is my usecase information.

UseCase: chains_radarTIlevelmeter

IssCapture -> Alg_RadarProcess_draw (DSP1) -> Display_Video

GrpxSrc -> Display_Grpx

i have a problem related in EDMA.

Radar data is coming in normally but DSP board doesn't process those data. it's so difficult to make it right because there are times when it works and there are times when it does not.

i think one of the causes is related in EDMA using to copy display_video data because There is no log after using EDMA code.

Please let me know if you know anything about the issue on EDMA.

  • Hi,

    Are you getting input for Alg_RadarProcess_draw link but edma is not copying that data properly.
    Is it the issue?
    Can you share the usecase log?
    Also please check where exactly inside Alg_RadarProcess_draw process function its going wrong.

    Regards,
    Anuj
  • Hi,

    Okay. this log is after Init work AR12xx.
    after all of this log, Radar operates and the function of radar data process including something like FFT code has to be called
    but it stops working after the line related EDMA code.

    [IPU1-0] 57.856798 s: CHAINS: Init AR12xx ...
    [IPU1-0] 57.857439 s: UTILS_MCSPI: McSPI is configured in interrupt mode!!
    [IPU1-0] 60.892911 s: AR12XX: ES3.0 Device detected!!
    [IPU1-0] 60.893094 s: AR12XX: Firmware Download Started : Ftype: META_IMAGE
    [IPU1-0] 61.060879 s: AR12XX: Firmware Download Successful : Ftype: META_IMAGE
    [IPU1-0] 61.094918 s: AR12XX: ES3.0 Device detected!!
    [IPU1-0] 61.096931 s: AWR12XX: Version Master : 1.10.0.20
    [IPU1-0] 61.097023 s: AWR12XX: Version RF:2.0.0.1
    [IPU1-0] 61.097114 s: AWR12XX: Version mmWaveLink:1.2.0.0
    [IPU1-0] 61.097236 s: AWR12XX: Version Master Patch[dd.mm.yy]:19.10.18
    [IPU1-0] 61.097328 s: AWR12XX: Version RF Patch[dd.mm.yy]:24.10.18
    [IPU1-0] 61.097938 s: CHAINS: Config AR12xx ...
    [IPU1-0] 61.097999 s:
    [IPU1-0]
    [IPU1-0] ===========================
    [IPU1-0] Select Frame Configuration
    [IPU1-0] ===========================
    [IPU1-0]
    [IPU1-0] 1: Normal Frame
    [IPU1-0] 2: Advanced Frame
    [IPU1-0]
    [IPU1-0] Enter Choice:
    [IPU1-0]
    [IPU1-0] 61.098151 s: CHAINS: Configuring the parameters for Normal Frame
    [IPU1-0] 61.168090 s: CHAINS: Init AR12xx ... DONE !!!
    [IPU1-0] 61.169127 s: ISSCAPTURE: Create in progress !!!
    [IPU1-0] 61.190294 s: ISSCAPTURE: Create Done !!!
    [IPU1-0] 61.190569 s: IPC_OUT_0 : Create in progress !!!
    [IPU1-0] 61.190874 s: IPC_OUT_0 : Create Done !!!
    [IPU1-0] 61.200207 s: IPC_IN_0 : Create in progress !!!
    [IPU1-0] 61.201030 s: IPC_IN_0 : Create Done !!!
    [IPU1-0] 61.201152 s: DISPLAY: Create in progress !!!
    [IPU1-0] 61.201579 s: DISPLAY: Create Done !!!
    [IPU1-0] 61.201732 s: GRPXSRC: Create in progress !!!
    [IPU1-0] 61.377112 s: GRPXSRC: Create Done !!!
    [IPU1-0] 61.377417 s: DISPLAY: Create in progress !!!
    [IPU1-0] 61.377874 s: DISPLAY: Create Done !!!
    [IPU1-0] 61.378027 s: SYSTEM: SW Message Box Msg Pool, Free Msg Count = 1023
    [IPU1-0] 61.378118 s: SYSTEM: Heap = LOCAL_DDR @ 0x00000000, Total size = 262144 B (256 KB), Free size = 258368 B (252 KB)
    [IPU1-0] 61.378271 s: SYSTEM: Heap = SR_OCMC @ 0x00000000, Total size = 0 B (0 KB), Free size = 0 B (0 KB)
    [IPU1-0] 61.378423 s: SYSTEM: Heap = SR_DDR_CACHED @ 0x82f7fc00, Total size = 77594624 B (74 MB), Free size = 71874560 B (68 MB)
    [IPU1-0] 61.378576 s: SYSTEM: Heap = SR_DDR_NON_CACHED @ 0x00000000, Total size = 0 B (0 MB), Free size = 0 B (0 MB)
    [IPU1-0] 61.384127 s: DISPLAY: Start in progress !!!
    [IPU1-0] 61.384188 s: DISPLAY: Start Done !!!
    [IPU1-0] 61.386933 s: DISPLAY: Start in progress !!!
    [IPU1-0] 61.386994 s: DISPLAY: Start Done !!!
    [IPU1-0] 61.387360 s: ISSCAPTURE: Start in progress !!!
    [IPU1-0] 61.387512 s: ISSCAPTURE: Start Done !!!
    [IPU1-0] 61.387604 s: CHAINS: AR12xx Starting Radar Sensor ...
    [IPU1-0] 61.390715 s: CHAINS: AR12xx Starting Radar Sensor ... DONE !!!
    [IPU1-0] 61.391325 s:
    [IPU1-0]
    [IPU1-0] ====================
    [IPU1-0] Chains Run-time Menu
    [IPU1-0] ====================
    [IPU1-0]
    [IPU1-0] 0: Stop Chain
    [IPU1-0]
    [IPU1-0]
    [IPU1-0] p: Print Performance Statistics
    [IPU1-0]
    [IPU1-0] Enter Choice:
    [IPU1-0]
    [IPU1-1] 61.378850 s: SYSTEM: SW Message Box Msg Pool, Free Msg Count = 1023
    [IPU1-1] 61.378972 s: SYSTEM: Heap = LOCAL_DDR @ 0x00000000, Total size = 262144 B (256 KB), Free size = 259720 B (253 KB)
    [DSP1 ] 61.191026 s: IPC_IN_0 : Create in progress !!!
    [DSP1 ] 61.191362 s: IPC_IN_0 : Create Done !!!
    [DSP1 ] 61.191514 s: ALGORITHM: Create in progress (algId = 11) !!!
    [DSP1 ] 61.194900 s: UTILS: DMA: Allocated CH (TCC) = 24 (24)
    [DSP1 ] 61.194930 s: UTILS: DMA: 0 of 1: Allocated PaRAM = 24 (0x43305200)
    [DSP1 ] 61.196577 s: ALG: TI.radar.zoomfft: CH0 BUF0: 0x83251400 ( 691200 B )
    [DSP1 ] 61.198224 s: ALG: TI.radar.zoomfft: CH0 BUF1: 0x832fa000 ( 691200 B )
    [DSP1 ] 61.199841 s: ALG: TI.radar.zoomfft: CH0 BUF2: 0x833a2c00 ( 691200 B )
    [DSP1 ] 61.199902 s: ALGORITHM: Create Done (algId = 11) !!!
    [DSP1 ] 61.200054 s: IPC_OUT_0 : Create in progress !!!
    [DSP1 ] 61.200146 s: IPC_OUT_0 : Create Done !!!
    [DSP1 ] 61.379247 s: SYSTEM: SW Message Box Msg Pool, Free Msg Count = 1023
    [DSP1 ] 61.379277 s: SYSTEM: Heap = LOCAL_L2 @ 0x00800000, Total size = 227264 B (221 KB), Free size = 227264 B (221 KB)
    [DSP1 ] 61.379338 s: SYSTEM: Heap = LOCAL_DDR @ 0x00000000, Total size = 524288 B (512 KB), Free size = 501888 B (490 KB)
    [DSP1 ] 61.531263 s: Measure Cfg: 0 108 128
    [DSP1 ] 61.532208 s: FFT Windows is BLACKMAN_NUTTALL(third Order)!!
    [EVE1 ] 61.379613 s: SYSTEM: SW Message Box Msg Pool, Free Msg Count = 1023
    [EVE1 ] 61.380589 s: SYSTEM: Heap = LOCAL_L2 @ 0x40020000, Total size = 22528 B (22 KB), Free size = 22528 B (22 KB)
    [EVE1 ] 61.382358 s: SYSTEM: Heap = LOCAL_DDR @ 0x00000000, Total size = 262144 B (256 KB), Free size = 261840 B (255 KB)

  • PLUS

    i find two kind of ERROR messages

    one is

    [IPU1-0] 115.527328 s: MSGQ: Warning!!! : Forcing waitAck = TRUE as waitAck = FALSE is not supported.Fix send cmd [0x4] to linkId [0x6252a246
    [IPU1-0] 115.527389 s:
    [IPU1-0] 115.527420 s: ### XDC ASSERT - ERROR CALLBACK START ###
    [IPU1-0] 115.527420 s:
    [IPU1-0] 115.527481 s: assertion failure: A_badContext: bad calling context. Must be called from a Task.
    [IPU1-0] 115.527511 s:
    [IPU1-0] 115.527542 s: ### XDC ASSERT - ERROR CALLBACK END ###
    [IPU1-0] 115.527572 s:

    the other is

    [IPU1-0] 79.554992 s: Utils_dspExceptionHookFxn:
    [IPU1-0] 79.555023 s: efr=0x2
    [IPU1-0] 79.555023 s: nrp=0x827d8d6c
    [IPU1-0] 79.555053 s: ntsr=0x1020d
    [IPU1-0] 79.555053 s: ierr=0x0
    [IPU1-0] 79.555084 s: excContext=0x837e98
    [IPU1-0] 79.555084 s: A0=0x0 A1=0x0
    [IPU1-0] 79.555114 s: A2=0x0 A3=0x29e17c00
    [IPU1-0] 79.555145 s: A4=0x6947d10f A5=0x41
    [IPU1-0] 79.555145 s: A6=0x1010101 A7=0x1131
    [IPU1-0] 79.555175 s: A8=0x0 A9=0x82948954
    [IPU1-0] 79.555206 s: A10=0x0 A11=0x157a
    [IPU1-0] 79.555206 s: A12=0x0 A13=0x208b000
    [IPU1-0] 79.555236 s: A14=0x0 A15=0x827d8cbc
    [IPU1-0] 79.555267 s: A16=0x3 A17=0x1
    [IPU1-0] 79.555267 s: A18=0xd A19=0xc669e400
    [IPU1-0] 79.555297 s: A20=0x0 A21=0x0
    [IPU1-0] 79.555297 s: A22=0x81202120 A23=0x0
    [IPU1-0] 79.555328 s: A24=0x8120cd4c A25=0x827d8cd4
    [IPU1-0] 79.555358 s: A26=0x8293e270 A27=0x8293e280
    [IPU1-0] 79.555358 s: A28=0x829403f8 A29=0x7
    [IPU1-0] 79.555389 s: A30=0x20 A31=0xffffffff
    [IPU1-0] 79.555419 s: B0=0x827d8cc0 B1=0x1
    [IPU1-0] 79.555419 s: B2=0x0 B3=0x81217040
    [IPU1-0] 79.555450 s: B4=0x0 B5=0xa0
    [IPU1-0] 79.555480 s: B6=0x827d8cc0 B7=0x7ffffff
    [IPU1-0] 79.555480 s: B8=0x4000 B9=0x0
    [IPU1-0] 79.555511 s: B10=0x6947d10f B11=0x47
    [IPU1-0] 79.555541 s: B12=0x827d8768 B13=0x47
    [IPU1-0] 79.555541 s: B14=0x8294cb20 B15=0x837cf0
    [IPU1-0] 79.555572 s: B16=0x0 B17=0x41
    [IPU1-0] 79.555603 s: B18=0x80000000 B19=0xad2
    [IPU1-0] 79.555603 s: B20=0x15000103 B21=0x8
    [IPU1-0] 79.555633 s: B22=0x20f B23=0x0
    [IPU1-0] 79.555664 s: B24=0xffffffbe B25=0xfffffffe
    [IPU1-0] 79.555664 s: B26=0x970b1445 B27=0x827d89e8
    [IPU1-0] 79.555694 s: B28=0x8293e298 B29=0x827d8cc0
    [IPU1-0] 79.555725 s: B30=0x51f443c0 B31=0x0
    [IPU1-0] 79.555725 s: NTSR=0x1020d
    [IPU1-0] 79.555755 s: ITSR=0x20d
    [IPU1-0] 79.555755 s: IRP=0x81216e98
    [IPU1-0] 79.555786 s: SSR=0x0
    [IPU1-0] 79.555786 s: AMR=0x0
    [IPU1-0] 79.555816 s: RILC=0x0
    [IPU1-0] 79.555816 s: ILC=0x0
    [IPU1-0] 79.555847 s: Terminating Execution...
    [IPU1-0] 79.650948 s:
    [IPU1-0] 79.650948 s: ### XDC ASSERT - ERROR CALLBACK START ###
    [IPU1-0] 79.650979 s:
    [IPU1-0] 79.651070 s: E_exceptionMax: pc = 0x827d8d6c, sp = 0x00837cf0.
    [IPU1-0] 79.651101 s:
    [IPU1-0] 79.651101 s: ### XDC ASSERT - ERROR CALLBACK END ###

    those maybe not related in EDMA.
    i don't know what those mean.

    Thank you.

  • Hi,

    This are xdc assert and there is no proper way to debug it.
    You just need to revert your changes and check when its gone and what changes triggered it.
    Some time it may come if you are not building it cleanly so remove the binary folder and do a clean build.

    You need to check inside Alg_RadarProcess_draw process function with a debugger and check where exactly its going wrong.

    Regards,
    Anuj
  • Hi,

    Its been long since any update on this thread.
    I hope the issue is resolved.
    If not then please reply below or create a new thread for different issue.

    Regards,
    Anuj