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.

DM8148 Led application

Hello

We have built an application to switch on LED DM8148 EVM board. The application works fine using CCS & GEL file. We are now try to build same application without GEL file in CCS so we can build same in TI EZSDK . So the initialisations in GEL file need to be converted into C file. We converted the GEL file code to c file code but some initialisastions need processor to be in supervisor mode. For switching to supervisor mode we used following code as specified in link e2e.ti.com/.../256582

void INT_SetSupervisor(void){

asm(" MOV R12,LR ");

asm(" SWI #0xFA ");

asm(" MOV LR,R12 ");

asm(" BX LR ");

//asm("")

}

 
We also wrote our SWI_handler code in swi_handler.2727.swi_handler.asmasm as shown in attached file.I call INT_SetSupervisor() function in my main before calling the initialization function. When code executes after executing  instruction SWI     0xFA in INT_SetSupervisor() it hangs. Code doesn't jump to SWI_handler function in Assembly file (this is verified by putting break point in CCS).

Can anyone tell me what step am I missing in switching to supervisor mode?

Most importantly I need to build my application using EZSDK (I am using version

ti-ezsdk_dm814x-evm_5_05_02_00) So I need to know steps to do initialisation in EZSDK which is done through GEL file in CCS.

Regards,

Manish Kesarkar