MCAL Sample application Compile w/ GreenHills Multi IDE

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MCAL Sample application Compile w/ GreenHills Multi IDE

1,425 Views
fairwing
Contributor I

pastedImage_1.png

I have a problem complie the MCAL 4.0.1 Sample application with launch.bat file.

As I atatched below, I set up the launch.bat file to compile the sample with multi ide 7.1.6.

There was version error occur so I modify the file versions and sometime the several code so no more systhetic error is occur.

At last, there is error with generate the ELF file.

[elxr] (error) errors during processing

make: *** [makefile:195: bin/sample_app_mcal.elf] Error 1

I really need the ELF file.

What should I do?

0 Kudos
Reply
1 Reply

1,371 Views
hungnguyenphi
NXP Employee
NXP Employee

Dear June Uhm ,

Could you please let me know the full name of the MCAL package you are using. Is it MPC5777C_MCAL4_0_RTM_1_0_1 ?

If yes. I have checked the sample app in the package and compare with the sample app in the package MPC5777C_MCAL4_3_RTM_1_0_0. I see that it is missing the below code in the file "MPC5777C_MCAL4_0_RTM_1_0_1\sample_app_mcal\toolchains\Startup_vle.c".

void SystemCall()
{
ASM_KEYWORD(".globl SystemCall_Handler");
ASM_KEYWORD("SystemCall_Handler:");
#ifdef MCAL_ENABLE_USER_MODE_SUPPORT
/* push R3 on stack*/
ASM_KEYWORD("se_subi r1,0x4");
ASM_KEYWORD("e_stw r3,0x0(r1)");
/* clear MSR[PR] bit by modifying SRR1 for keeping supervisor mode after exiting the Handler */
ASM_KEYWORD("mfsrr1 r3"); /* load SRR1 */
ASM_KEYWORD("se_bclri r3,17"); /* clear PR bit */
ASM_KEYWORD("mtsrr1 r3 "); /* save SRR1 */
/* pop R3 from the stack */
ASM_KEYWORD("e_lwz r3,0x0(r1)");
ASM_KEYWORD("se_addi r1,0x4");
/* return from interrupt */
ASM_KEYWORD("se_rfi");
#else
/* while(1) */
ASM_KEYWORD("e_b .");
#endif
}

Best regards,

Hung.

0 Kudos
Reply