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.

SYS/BIOS Issue

Other Parts Discussed in Thread: TMS320F28335, SYSBIOS

Hi All,

We are using CCS5.2 SYS/BIOS for our Project development.

Platform - C2000,TMS320F28335.

We configured some HWI,SWI,Tasks,Semaphores.

While communicating with the other board.Our Program execution is going to abort();

We checked in ROV window,there it highlighted as SP Outside stack.

Please Share your comments.

Thanks,

manju

  • Hi Manju,

    Sounds like it memory corruption or jumping to a bad pointer. What is the state of the System and Task stacks? Did they overflow? Can you turn on tracing and help narrow things down?

    Todd

  • Hi todd,

    Thanks for the reply,

    My system (HWI and SWI) stack size is 2000.(app.cfg-->Runtime)

    and i have different task sizes for each task

                        stack peak                                         stack size

    Task1         128                                                       300

    Task2         194                                                       400

    Task3         254                                                       400

    Task4         458                                                       1024

    Task5         164                                                       500

    Task6         246                                                       400

    Task7         660                                                       2048

    Task8         302                                                       512

    These are the different task peaks and task size which i found in ROV window,They didnt overflow.

    but the project aborted.What all possibilities can be there so that the memory corruption occurs or it jumps to a bad pointer.

    Thanks,

    manju

  • Hi Manju,

    In the Task module's ROV code, the stack pointer is examined. It should be between the top of the stack and the top of the stack + stackSize. If it is out of this memory, ROV displays "SP outside stack!". If the stack pointer is corrupted, anything can happen. Since the stacks look fine, to could be some other corruption (e.g. accessing freed memory, using a local stack variable after the function is called, etc.). You can enable tracing to help narrow down the issue.

    Todd

  • Hi Todd,

    Thanks for the reply,

    Your suggestion is actually up to the point,just want to know how to enable tracing to help narrow down the issue.

    Thanks,

    Manju

  • You can add the LoggingSetup module from UIA into your application. First include the UIA product in your application:

    Then, add the LoggingSetup module. Taking the defaults will enable stopmode logging by SYS/BIOS Tasks and also give you a main logger. The main logger will contain any logs you call via Log_xxxx. Stop mode works well when trying to debug a crash.

  • Hi Todd,

    Thanks for the snapshots,

    Ill debug the project with the configurations and let you know.

    Thanks,

    manju

  • Hi Todd

    I use same processor

    Looking at the screen shots of the SYSBIOS version you used to add UIA I am guerssing you used CCS5.4 ?

    We are using ccs 5.3 bios_6_34_02_18 & xdctools_3_24_05_48

    I was told the UIA example generation for 28335  would be fixed in 5.4. we have not upgraded do we need to to get what you described above with UIA working

  • What version of UIA are you using? You can upgrade to the latest UIA which has fixes for C28: http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/uia/index.html

    Todd

  • presently using uia_1_01_00_04 at the present our test group doesnt want to revalidate CCS again. It appears uia  1.02.00.07 is my choice to avoid upgrading CCS


  • I Installed 1.02.00.07 and ran stair step jtag stop mode example I see no cpu load graphs