This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

RTX on Cortex M3 applications

Hello,

I am evaluating RTX on various platforms. The first evaluation kit I tried was AT91SAM9263 and using examples and it went well. Since RTX example is not available for Cortex M3 (LM3S1968) applications, I used to common M config file (RTX_Config.h). However it doesn't proceed over os_sys_init (task1). Even after setting up the sysclktick (SysTickPeriodSet and SysTickEnable()) the os_sys_init enters IntDefaultHandler B area.

Please advise.

Parents Reply Children
  • It runs into INTDefaultHandler after SVC 0x00 command... May be I am missing some configuration related to SVC Handler...

    0x00000938 F7FFFC37 BL.W os_set_env (0x000001AA)
    0x0000093C 2200 MOVS r2,#0x00
    0x0000093E 4611 MOV r1,r2
    0x00000940 F2AF00ED ADR.W r0,{pc}-0xE9 ; @0x00000857
    0x00000944 F8DFC024 LDR.W r12,[pc,#36] ; @0x0000096C
    0x00000948 DF00 SVC 0x00

    C code: os_sys_init (task1);

    where task1 is:

    __task void init (void)
    { t_phaseA = os_tsk_create (phaseA, 0); /* start task phaseA */
    t_phaseB = os_tsk_create (phaseB, 0); /* start task phaseB */
    t_ticker = os_tsk_create (ticker, 0);

    os_sys_init_prio(ticker, 1);
    os_sys_init_prio(phaseA, 2);
    os_sys_init_prio(phaseB, 3);

    os_tsk_delete_self ();
    }