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/66AK2H12: Tips to debug a do_AngelSWI()?

Part Number: 66AK2H12
Other Parts Discussed in Thread: SYSBIOS

Tool/software: Code Composer Studio

EVM 66AK2H12, SYS/BIOS 6.465.55, XDCtools 3.32.2.25, NDK 2.25, PDK 4.0.7, GNU v4.9.3 (Linaro)

I have an ARM that is crashing and ending up at the dreaded do_AngelSWI(). 

No source available for "do_AngelSWI(int, void *) [C:/XXX\yyy_arm0\EVM_Debug\yyy_arm0.out] at 0x91d344c4" 

I can look at the RTOS OObject View (classic) and I can see the task that was preempted. So that is a start but the stack shows only:

0x9003b570,  Label: Inbound Mail Task,  Task Mode: Preempted,
0    do_AngelSWI(int, void *) at swi.h:0,PC = 0x91D344C4 FP = 0x0C5AAB84
1    _kill(int) at _kill.c:78,PC = 0x91D344C4 FP = 0x0C5AAB84
2    _mmBulkAllocSeg(unsigned int) at mem.c:0,PC = 0x00000000 FP = 0x0C5AAB84

Does anyone have any tips on using the CCS tools to help me track down the root cause of this crash? Are there some cookie crumbs somewhere tell em where I went off the rails?

Mike

  • I'm trying to sprinkle Log_error1(), Log_warn1(), into my code. Where do I view the logged data?

    Can someone point me to a reference manual on using these Log_*() functions?

    I seem to remember from a prior project that these were viewable from the ROV (I need to use the "classic" version of ROV in this version of CCS).

    Mike

  • Mike,

    We usually recommend using UIA. Then just add the LoggingSetup module into the .cfg (and maybe increase the log sizes).

    var LoggingSetup = xdc.useModule('ti.uia.sysbios.LoggingSetup');

    LoggingSetup.loadLoggerSize = 256;

    LoggingSetup.mainLoggerSize = 512;

    LoggingSetup.sysbiosLoggerSize = 4096;

    Regards, Eric