S32 debugger reset loop

cancel
Showing results for 
Search instead for 
Did you mean: 

S32 debugger reset loop

322 Views
kfirbs
Contributor III

Trying to set a debug with OPENSDA and stop after main.

 

The problem is that after main() has the return value, the board resets.

 

I am using MPC5748G, the main() looks as follows:

int main(void)
{
    board_init();
    printf("version : %d", get_version());
    return 0;
}

 

How to stop S32from resetting the board every time?

0 Kudos
2 Replies

257 Views
Elsa_24
Contributor II

Hello Kfirbs,
I am a beginner and I am also working with the MPC5448G. Please I would like to know how you use the printf with the MPC5448G

Thanks

0 Kudos

311 Views
petervlna
NXP Employee
NXP Employee

Hello,

You have to end the program somehow.

For example with while(1).

best regards,

Peter

0 Kudos