Post Go back to editing

Resetting a SHARC+ Core Through Another Core issue

Hello,

    From the processor hw reference manual page 222-223 I can see 18 steps to reset the SHARC core, but when I look at the core control driver in the linux distribution it seems to use only items from 11..18. There's no handshake to send the IDLE state using the RCU_MSG. 

    I'm facing few issues regarding the loadsharc_sc589 doing multiple load onto the same SHARC core. The first time it loads the LDR all goes well, but the second+ time it gets stuck wating from sharc core response. I guess once the SHARC core is running some code we are not able to reset it unil we send it to IDLE mode. Is that correct?

    From the manual: 3. The master core sets the CCRx bit in message register and raises the SOFT0 software interrupt through the
SEC to the SHARC+ core (see Programming Examples for more information). I could not find the CCR bit in the RCU_MSG, am I looking at the wrong place? There's also something kind of a type in this section once it refers to a Core Reset Request bit (CRR) also not found in RCU_MSG register.

Thanks in advance!

  • Hi, the engineer who developed this code is on vacation this week. We'll try and get a response to you as soon as we can.

    Dave

  • Hi Dave,

        As soon as you have any response, please let me know! Thanks for the attention!

    Best regards,

    Raphael

  • Hi Dave,

    Raphael and I are working on the same project so we are both looking forward to hearing from the engineer.

    We have also tried the following: 

    • Added a while(1){} right after recv_arg(&argc, &argv); so that there’s absolutely nothing configured by the Sharc processor (no DMA, hardware / memory access, etc.).
    • Commented out lines #82 to #98 in app_startup().
    • Left uncommented lines #85 to #89 in the previous app_startup() snippet.

    Also, if we load the Sharc symbols on Sharc 1 from CCES after the first loadSharc is issued from Linux we can connect to the target without any problems. However, after the second loadSharc is issued and it gets stuck at Waiting for sharc, we can no longer connect to the Sharc 1 processor from CCES without performing a hard reset of the board: 

    Hope this information helps troubleshoot the issue. 

    We'll be happy to provide any further detail that you might require. 

    Regards. 

    Manuel

  • Thanks,

    This is helpful.

    Just to confirm which versions of CCES and the Linux add-in are you using?

    And what EZ-KIT are you running the software on?

    Dave

  • Hi Dave,

    thanks for the prompt reply. 

    We are using a custom board that we have designed where both a SC589 (where the issues occurs) and a SC573 live. 

    This is the actual chip: 

    It's a 500MHz part. The markings atop of it are:

    • ADSP-SC589-KBCZ-5B
    • 42 19500 1-1.0
    • 1819 KOREA

    The CCES version we are using is 2.8.3. 

    Let me know if you need further information. 

    Manuel

  • Hi Dave, 

    I was wondering if you may have any news on this issue.

    Thanks! 

    Manuel

  • Hi Manuel,

    Do you see your SHARC+ code looping in your while loop or in the recv_arg() function?  Do you actually pass args into your application? 

    Try moving your while loop before the recv_arg() function and see if you're able to load multiple times.

    Also, maybe something in the runtime start up code is causing an issue.  You can put a loop in <sharc core 1 project> -> system -> startup_ldf -> app_startup.s file somewhere after start: label. A simple loop would be

    nop;

    jump(pc, -1);

    You can start moving this loop further down the code if multiple re-loads are successful.

    Also, is MCAPI being compiled into your sharc application?  If it is, try removing it.

    Regards,

    Gabby

  • Hi Gabby,

    thanks a lot for the quick reply.

    Unfortunately no luck with the suggested tests.

    McAPI is part of the project but it was removed without success.

    In all cases loadSharc hangs at the Waiting for sharc statement. This is the full Linux output:

    # loadsharc_SC589 -i ZPU_SC589_SHARC_Core1_no_mcapi.ldr -s 1 -d 3 -a "unused"
    reading ZPU_SC589_SHARC_Core1_no_mcapi.ldr
    DEBUG LVL: 3
    booting sharc core 1
    number of sections: 8
    i: 0, tgt: 000900a8, size of data: 6
    Error: unable to determine the destination of section 0!
    i: 1, tgt: 00090000, size of data: 768
    Error: unable to determine the destination of section 1!
    i: 2, tgt: 200bb004, size of data: 4
    i: 3, tgt: 0802ec00, size of data: 5
    NW section sz not div by 4: 5
    i: 4, tgt: 0802f0c0, size of data: 15
    NW section sz not div by 4: 15
    i: 5, tgt: 200bc310, size of data: 5624
    i: 6, tgt: 200bb008, size of data: 22
    i: 7, tgt: 00bbd810, size of data: 4830
    Translated target address: 200bb020
    ptrMboxSh2Arm = 200bcd80
    ptrMboxArm2Sh = 200bcd84
    Waiting for sharc
    ptrLSync2ArmByteCount = 200bcd88
    ptrLdSync2ShByteCount = 200bcd8c
    ptrBootStream         = 200bc318
    waiting for sharc to request data for block num 0
    requested bytes: 16
    waiting for sharc to request data for block num 1
    requested bytes: 16
    waiting for sharc to request data for block num 2
    *ptrMboxSh2Arm = bbbb
    requested bytes: 104
    waiting for sharc to request data for block num 3
    requested bytes: 16
    waiting for sharc to request data for block num 4
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 5
    *ptrMboxSh2Arm = 6666
    requested bytes: 4
    waiting for sharc to request data for block num 6
    requested bytes: 16
    waiting for sharc to request data for block num 7
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 8
    *ptrMboxSh2Arm = 6666
    requested bytes: 4
    waiting for sharc to request data for block num 9
    requested bytes: 16
    waiting for sharc to request data for block num 10
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 11
    *ptrMboxSh2Arm = 6666
    requested bytes: 4
    waiting for sharc to request data for block num 12
    requested bytes: 16
    waiting for sharc to request data for block num 13
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 14
    *ptrMboxSh2Arm = 6666
    requested bytes: 140
    waiting for sharc to request data for block num 15
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 16
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 17
    *ptrMboxSh2Arm = bbbb
    requested bytes: 8
    waiting for sharc to request data for block num 18
    requested bytes: 16
    waiting for sharc to request data for block num 19
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 20
    *ptrMboxSh2Arm = 6666
    requested bytes: 8
    waiting for sharc to request data for block num 21
    requested bytes: 16
    waiting for sharc to request data for block num 22
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 23
    *ptrMboxSh2Arm = 6666
    requested bytes: 1252
    waiting for sharc to request data for block num 24
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 25
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 26
    *ptrMboxSh2Arm = 6666
    requested bytes: 284
    waiting for sharc to request data for block num 27
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 28
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 29
    *ptrMboxSh2Arm = 6666
    requested bytes: 64
    waiting for sharc to request data for block num 30
    requested bytes: 16
    waiting for sharc to request data for block num 31
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 32
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 33
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 34
    *ptrMboxSh2Arm = 6666
    requested bytes: 176
    waiting for sharc to request data for block num 35
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 36
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 37
    requested bytes: 8
    waiting for sharc to request data for block num 38
    requested bytes: 16
    waiting for sharc to request data for block num 39
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 40
    *ptrMboxSh2Arm = 6666
    requested bytes: 8
    waiting for sharc to request data for block num 41
    requested bytes: 16
    waiting for sharc to request data for block num 42
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 43
    *ptrMboxSh2Arm = 6666
    requested bytes: 8
    waiting for sharc to request data for block num 44
    requested bytes: 16
    waiting for sharc to request data for block num 45
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 46
    *ptrMboxSh2Arm = 6666
    requested bytes: 1948
    waiting for sharc to request data for block num 47
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 48
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 49
    *ptrMboxSh2Arm = 6666
    requested bytes: 40
    waiting for sharc to request data for block num 50
    requested bytes: 16
    waiting for sharc to request data for block num 51
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 52
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 53
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 54
    *ptrMboxSh2Arm = 6666
    requested bytes: 1068
    waiting for sharc to request data for block num 55
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 56
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 57
    *ptrMboxSh2Arm = 6666
    requested bytes: 4
    waiting for sharc to request data for block num 58
    requested bytes: 16
    waiting for sharc to request data for block num 59
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 60
    *ptrMboxSh2Arm = 6666
    requested bytes: 76
    waiting for sharc to request data for block num 61
    requested bytes: 16
    waiting for sharc to request data for block num 62
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 63
    *ptrMboxSh2Arm = 6666
    requested bytes: 8
    waiting for sharc to request data for block num 64
    requested bytes: 16
    waiting for sharc to request data for block num 65
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 66
    *ptrMboxSh2Arm = 6666
    requested bytes: 8
    waiting for sharc to request data for block num 67
    requested bytes: 16
    waiting for sharc to request data for block num 68
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 69
    *ptrMboxSh2Arm = 6666
    requested bytes: 12
    waiting for sharc to request data for block num 70
    requested bytes: 16
    waiting for sharc to request data for block num 71
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 72
    *ptrMboxSh2Arm = 6666
    requested bytes: 596
    waiting for sharc to request data for block num 73
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 74
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 75
    *ptrMboxSh2Arm = 6666
    requested bytes: 8
    waiting for sharc to request data for block num 76
    requested bytes: 16
    waiting for sharc to request data for block num 77
    *ptrMboxSh2Arm = 6666
    requested bytes: 4
    waiting for sharc to request data for block num 78
    requested bytes: 16
    waiting for sharc to request data for block num 79
    *ptrMboxSh2Arm = 6666
    requested bytes: 4
    waiting for sharc to request data for block num 80
    requested bytes: 16
    waiting for sharc to request data for block num 81
    *ptrMboxSh2Arm = 6666
    requested bytes: 8
    waiting for sharc to request data for block num 82
    requested bytes: 16
    waiting for sharc to request data for block num 83
    requested bytes: 28
    waiting for sharc to request data for block num 84
    requested bytes: 16
    waiting for sharc to request data for block num 85
    *ptrMboxSh2Arm = 6666
    requested bytes: 768
    waiting for sharc to request data for block num 86
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 87
    *ptrMboxSh2Arm = 6666
    requested bytes: 8
    waiting for sharc to request data for block num 88
    requested bytes: 16
    waiting for sharc to request data for block num 89
    *ptrMboxSh2Arm = 6666
    requested bytes: 4
    waiting for sharc to request data for block num 90
    requested bytes: 16
    waiting for sharc to request data for block num 91
    *ptrMboxSh2Arm = 6666
    requested bytes: 4
    waiting for sharc to request data for block num 92
    requested bytes: 16
    waiting for sharc to request data for block num 93
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 94
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 95
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 96
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 97
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 98
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 99
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 100
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 101
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 102
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 103
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 104
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 105
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 106
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 107
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 108
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 109
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 110
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 111
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 112
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 113
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 114
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 115
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 116
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 117
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 118
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 119
    *ptrMboxSh2Arm = 6666
    requested bytes: 460
    waiting for sharc to request data for block num 120
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 121
    *ptrMboxSh2Arm = 6666
    requested bytes: 1044
    waiting for sharc to request data for block num 122
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 123
    *ptrMboxSh2Arm = 6666
    requested bytes: 8
    waiting for sharc to request data for block num 124
    requested bytes: 16
    waiting for sharc to request data for block num 125
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 126
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 127
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 128
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 129
    *ptrMboxSh2Arm = 6666
    requested bytes: 1416
    waiting for sharc to request data for block num 130
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 131
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 132
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 133
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 134
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 135
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 136
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 137
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 138
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 139
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 140
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 141
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 142
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 143
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 144
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 145
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 146
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 147
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 148
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 149
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 150
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 151
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 152
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 153
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 154
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 155
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 156
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 157
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 158
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 159
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 160
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 161
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 162
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 163
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 164
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 165
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 166
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 167
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 168
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 169
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 170
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 171
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 172
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 173
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 174
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 175
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 176
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 177
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 178
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 179
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 180
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 181
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 182
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 183
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 184
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 185
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 186
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 187
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 188
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 189
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 190
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 191
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 192
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 193
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 194
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 195
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 196
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 197
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 198
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 199
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 200
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 201
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 202
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 203
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 204
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 205
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 206
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 207
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 208
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 209
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 210
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 211
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 212
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 213
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 214
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 215
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 216
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 217
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 218
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 219
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 220
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 221
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 222
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 223
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 224
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 225
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 226
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 227
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 228
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 229
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 230
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 231
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 232
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 233
    *ptrMboxSh2Arm = 6666
    requested bytes: 2048
    waiting for sharc to request data for block num 234
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 235
    *ptrMboxSh2Arm = 6666
    requested bytes: 224
    waiting for sharc to request data for block num 236
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 237
    *ptrMboxSh2Arm = 6666
    requested bytes: 1400
    waiting for sharc to request data for block num 238
    *ptrMboxSh2Arm = 6666
    requested bytes: 16
    waiting for sharc to request data for block num 239
    requested bytes: -1
    Sharc signaled to stop... exiting
    ptrMboxSh2Arm_l2 = 20083000
    ptrMboxArm2Sh_l2 = 20083004
    ptrDataSh2Arm_l2 = 20083008
    ptrDataArm2Sh_l2 = 2008300c
    Waiting application to start up.
    Values: 0000, 0000
    Values: 0000, 0000
    Values: 0000, 0000
    Values: 0000, 0000
    Values: 0000, 0000
    Values: 0000, 0000
    Values: 0000, 0000
    Values: 0000, 0000
    Values: 0000, 0000
    xValues: 0000, 0000
    Values: 0000, 0000
    Values: 0000, 0000
    Values: 0000, 0000
    Values: 0000, 0000
    Values: 0000, 0000
    Values: 0000, 0000
    Values: 0000, 0000
    time expired waiting for Sharc msg...exiting
    # loadsharc_SC589 -i ZPU_SC589_SHARC_Core1_no_mcapi.ldr -s 1 -d 3 -a "unused"
    reading ZPU_SC589_SHARC_Core1_no_mcapi.ldr
    DEBUG LVL: 3
    booting sharc core 1
    number of sections: 8
    i: 0, tgt: 000900a8, size of data: 6
    Error: unable to determine the destination of section 0!
    i: 1, tgt: 00090000, size of data: 768
    Error: unable to determine the destination of section 1!
    i: 2, tgt: 200bb004, size of data: 4
    i: 3, tgt: 0802ec00, size of data: 5
    NW section sz not div by 4: 5
    i: 4, tgt: 0802f0c0, size of data: 15
    NW section sz not div by 4: 15
    i: 5, tgt: 200bc310, size of data: 5624
    i: 6, tgt: 200bb008, size of data: 22
    i: 7, tgt: 00bbd810, size of data: 4830
    Translated target address: 200bb020
    ptrMboxSh2Arm = 200bcd80
    ptrMboxArm2Sh = 200bcd84
    Waiting for sharc
    time expired waiting for Sharc msg...exiting

    You will see that the first load is successful (even though it keeps Waiting application to start up because the Sharc code never reaches the recv_arg() function). Then, the second attempt to loadSharc hangs at Waiting for sharc.

    When loading the version without McAPI, the PC was stuck at location 0x43 which seems to correspond to the reserved region of the L1 memory (Boot ROM maybe?):

    By the way, we are not passing any args to the Sharc application.

    Overall, what I'd like to stress out is that on the SC589 EZ-KIT, loadSharc seems to work just fine and in a repeatedly manner.

    Please let me know if you need more info from our end and I'll be more than happy to provide it.

    Thanks for your assistance so far.

    Manuel

  • Hi Gabby, 

    I was wondering if you might have any news about this issue. 

    Thanks.

    Manuel

  • Hi Manuel,

    In the debug statements, does it show "Arguments to be passed: Unused" on the Ezkit? 

    Can you try again with MCAPI  installed?  The argument receive interface uses the memory space that MCAPI would use. 

    Can you see if that debug statement also shows up on your board when MCAPI is installed?

    Have you tried to port the simple GPIO/LED toggle program that comes with the EE-Note over to your board?  Does this load and run correctly?  Can this program be loaded multiple times?

    Regards,

    Gabby