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.

Linking issue in OMAP-L138 DSP+ARM9 LCDK with SYSBIOS to drive StarterWare

Other Parts Discussed in Thread: SYSBIOS, OMAPL138

Hello

Yesterday, I just repeated what Sam had done (of this thread) last year. 

http://e2e.ti.com/support/dsp/omap_applications_processors/f/42/t/259301.aspx

First, I have created a SYS/BIOS (v6.4) project (as simple as a "hello" RTOS code, a Timer only) for LCDKOMAPL138's ARM core, and it worked just fine (with a Timer spinning correctly).  This proved the backbone TI-RTOS was working.  Then, I tried pulling in another known good StarterWare (1.10.04.01) 'gpio' sample project with some initialization functions sitting in the main(), prior to entering the BIOS_start().  The result is almost the same: my LCDKOMAPL138 crashes at the PSCModuleControl function, only at different address HWREG(0x01E27000 + offset).

1) Why SYSBIOS stop working once I add StarterWare?  Is there any comment from TI or any pioneers?  Thank you!

My guessing is that I should do some reconfiguration on RTOS’s .cfg file, but I do not see any problem about memory conflict like in a linker command file (no .cmd file anyway).  As I tried to edit the .cfg file, I simply got two empty columns [Package Name and CPU Core].  I was not allowed to do any edit/view for  .cfg reconfiguration. Thus, we could not trace how the system has crashed and we have no access to edit/view it. 

2) How do I manage the .cfg file (or any .cmd if needed) for RTOS to work with StarterWare)?

Please help!  

Thank you!

YeuShyr

  • Hi YeuShyr,

    I'm able to build & run the SYSBIOS with starterware code stuffs.

    I'm not getting any issue as you like  "LCDKOMAPL138 crashes at the PSCModuleControl function, only at different address HWREG(0x01E27000 + offset)."

    Please find the attachment of the tested project which has "hello world SYSBIOS code with starterware DSP LED code", and this code has been tested on C6748 LCDK board.

    Note:

    I ran this test on DSP core.

    2480.Test_SYSBIOS.zip

    Please attach your code or send your code to my email ID (x0213399@ti.com)

  • Hi,

    Thanks for your files.

    I understood that you need to run SYSBIOS code with starterware code stuffs in ARM core.

    1) If LCDK board, What platform have you select while you creating the project ?

    I hope it is "evm.omapl138" and not lcdk

    2) Did you get any exception like below while you running ?

    [ARM9_0] Exception occurred in ThreadType_Main.
    Main handle: 0x0.

    If yes, You have create memory for PSC registers

    Please refer the following which helps.

    http://e2e.ti.com/support/embedded/tirtos/f/355/p/200390/712854.aspx

  • Hello Titus,

    1) We did selected "evm.omapl138" and not lcdk, for the platform.

    2) We did not encounter any "exception" issue, so we had no such message ("[ARM9_0] Exception occurred in ..."). 

     

    Our LCDKOMAPL138 board crashed once it ran to following code:

    HWREG(baseAdd + PSC_MDCTL(moduleId)) = (flags & PSC_MDCTL_NEXT);

    where baseAdd = 0x01E27000, moduleId = 3

     

    and

     

    if I hit [suspend], then I found the code looping forever in this area of Exception_asm.asm:

    /****************************************************

    ti_sysbios_family_arm_exc_Exception_excHandlerAsm__I:

            .asmfunc

            stmfd   sp!, {r0-r12}   ; save r4-r12 while we're at it

     

            mrc     p15, #0, r12, c5, c0, #0 ; read DFSR into r12

            stmfd   sp!, {r12}      ; save DFSR

            mrc     p15, #0, r12, c5, c0, #1 ; read IFSR into r12

            stmfd   sp!, {r12}      ; save IFSR

            mrc     p15, #0, r12, c6, c0, #0 ; read DFAR into r12

            stmfd   sp!, {r12}      ; save DFAR

            mrc     p15, #0, r12, c6, c0, #2 ; read IFAR into r12

            stmfd   sp!, {r12}      ; save IFAR

    ****************************************************/

    Furthermore, I had been trying to add another section to the external memory in the "edit platform" as mentioned in:

     

    http://e2e.ti.com/support/embedded/tirtos/f/355/p/200390/712854.aspx

     

    But I could not pull down any column for editing.

     

     

     

     

    Please advise.  Thank you!

    YeuShyr