MPC5748G break during startup.s / mfmsr r6 / Machine check

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

MPC5748G break during startup.s / mfmsr r6 / Machine check

560 Views
aurelienturban
Contributor I

Hello,

I am facing a weird issue on MPC5748G, 1N81M mask.

I am running attached reference_start.s file.

Depending on the content of the main (not yet called, of course) my program brick.

The program runs from ram and start.s is located at 4000_0000h.

In order to understand the root of it, I added a breakpoint at the begining of startup.s at 4000_0000h and single stepped.

The program bricks when enabling machine check.

.startup:400000EE                 mfmsr     r6
.startup:400000F2                 e_or2i    r6, 0x1000
.startup:400000F6                 mtmsr     r6 // brick here

From there the step of the debugger stop and when I press " break " the PC is located (and stuck) at 0x10 / se_blr.

pastedImage_2.png

What could cause this ? I understand It could help a lot to post project/main but I can't post it publicly.

I can however email it to NXP.

Kind regards#

1 Reply

368 Views
martin_kovar
NXP Employee
NXP Employee

Hello,

I copied your startup code into my project and it works correct on my side. Could you please create case at NXP website and send me your project?

https://community.nxp.com/docs/DOC-329745?sr=search&searchId=4d7da90f-2832-4d2c-9910-8144e8004eb4&se... 

Also, please write me, which IDE and compiler you use.

Regards,

Martin