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.

use the sys/bios task demo issue

Other Parts Discussed in Thread: OMAPL138, SYSBIOS

I am a sys bios beginner.when I create a  project use the task demo in ccsv4.step into Task_sleep(10) function is not return . program is dead.

i cannot find the issue. i am use the omapl138 chip.it is running in arm .

/*
* ======== main.c ========
*/

#include <xdc/std.h>

#include <xdc/runtime/Error.h>
#include <xdc/runtime/System.h>

#include <ti/sysbios/BIOS.h>

#include <ti/sysbios/knl/Task.h>

/*
* ======== taskFxn ========
*/
Void taskFxn(UArg a0, UArg a1)
{
System_printf("enter taskFxn()\n");

Task_sleep(10);

System_printf("exit taskFxn()\n");
}

/*
* ======== main ========
*/
Void main()
{
Task_Handle task;
Error_Block eb;

System_printf("enter main()\n");

Error_init(&eb);
task = Task_create(taskFxn, NULL, &eb);
if (task == NULL) {
System_printf("Task_create() failed!\n");
BIOS_exit(0);
}

BIOS_start(); /* enable interrupts and start SYS/BIOS */
}


  • Its probably that the timer used for the SYS/BIOS tick has no input clock.

    Try using the GEL files mention in this thread:

        http://e2e.ti.com/support/embedded/bios/f/355/t/153377.aspx#555701

    Alan

  • hello,Alan:

     I haved use to the gel file you mentioned. when I load program to arm,it have some memory error.

    ARM9_0: Output:  Memory Map Cleared.
    ARM9_0: Output:  ---------------------------------------------
    ARM9_0: Output:  Memory Map Setup Complete.
    ARM9_0: Output:  ---------------------------------------------
    ARM9_0: Output:  Enabling Full EVM PSCs...
    ARM9_0: Output:  PSC Enable Complete.
    ARM9_0: Output:  ---------------------------------------------
    ARM9_0: Output:  PLL0 init done for Core:300MHz, EMIF:25MHz
    ARM9_0: Output:  mDDR initialization is in progress....
    ARM9_0: Output:  PLL1 init done for DDR:132MHz
    ARM9_0: Output:  mDDR init for 132 MHz is done
    ARM9_0: Output:  ---------------------------------------------
    ARM9_0: Output:  DSP Wake Complete.
    ARM9_0: Output:  ---------------------------------------------
    ARM9_0: File Loader: Data verification failed at address 0xC3000000 Please verify target memory and memory map.
    Error found during data verification.
    Ensure the linker command file matches the memory map.

     

     

  • hello,

     when i change the memory in linker.cmd,the program can be running.but step into task_sleep(),function still return .it is the same with the previous time.

    SECTIONS
    {
        .text: load >> L3_CBA_RAM
        .stack: load > L3_CBA_RAM
        GROUP: load > L3_CBA_RAM
        {
            .bss:
            .neardata:
            .rodata:
        }
        .cinit: load > L3_CBA_RAM
        .init_array: load > L3_CBA_RAM
        .const: load >> L3_CBA_RAM
        .data: load >> L3_CBA_RAM
        .fardata: load >> L3_CBA_RAM
        .switch: load >> L3_CBA_RAM
        .sysmem: load > L3_CBA_RAM
        .far: load >> L3_CBA_RAM
        .args: load > L3_CBA_RAM align = 0x4, fill = 0 {_argsize = 0x0; }
        .cio: load >> L3_CBA_RAM
        .vecs: load > 0xffff0000
        .vectorTable: load > 0xffff0040
        ti.sysbios.family.arm.arm9.mmuTableSection: load >> L3_CBA_RAM, type = NOINIT
        xdc.meta: load >> L3_CBA_RAM, type = COPY

    }

  • the question is haved resolved, that is MMU is not enable,the timer can not find the mmu entry.