Hello everyone,
I want to test how to the TSK run in a single file, and TSK activated from SWI. The executed result is that:
1)while I located BIOS data, BIOS code and Compiler Sections in IRAM in MEM tab in TCF file, TSK function can be executed;
2)while I located BIOS data, BIOS code and Compiler Sections in DDR in MEM tab in TCF file, TSK function cannot be executed;
I am working with OMAP-L138 using BIOS 5.41 in CCS3.3.
My codes are as follows:
In file 1:
void main()
{
TSK_setpri(&TSK0,-1); //make TSK0 to suspended
}
void prd_func()
{
...............................
SWI_post(&SWI0);
}
In file 2:
void swi0_func()
{
................
TSK_setpri(&TSK0,4); //set TSK0 priority to 4
sem_post(&sem);
}
In file3:
void TSK0_func()
{
for(;;)
{
TSK_ setpri(&TSK1,4);
.......................
TSK_yield();
}
}
In file4:
void TSK1_func()
{
for(;;)
{
.......................
}
}
My codes are in several files, and I want my codes run in DDR. So I located BIOS data, BIOS code and Compiler Sections in DDR. But when I set MEM tab in this way, TSK cannot be exectued. How should I configure MEM tab? Can anyone give me your help!
Waiting for your reply urgently!
Best regards.
lex