S32 Design studio for Power debug error on MPC5634M

cancel
Showing results for 
Search instead for 
Did you mean: 

S32 Design studio for Power debug error on MPC5634M

741 Views
arjunraveendran
Contributor III

I am struggling to run a project on S32DS for Power ver 1.2, build ID: 170613.

I have a single function "sysclk_init" that is called in main. This only initializes the fmpll. there are no interrupts enabled.

When I step through the code, on entering this function an exception is thrown. Depending on "sysclk_init" is called before or after "xcptn_xmpl()" function, different errors are thrown- (console1.png,console2.png) 

I am using PE micro USB multilink.

The debugger settings is attached (debug_settings.PNG).

Also attached is the project.

I have gone through the below links, but could not arrive at a solution after implementing the changes mentioned.

https://community.nxp.com/docs/DOC-335361

https://community.nxp.com/thread/433305

https://community.nxp.com/docs/DOC-335361

 

Any pointers to move forward?

Any working examples for MPC5634M ON S32 DESIGN studio is available?

Sincerely,

Arjun

4 Replies

183 Views
martin_kovar
NXP Employee
NXP Employee

Hello,

I tested your use case and I reproduced the same behavior as you described above. Unfortunately, I was not able to find out the root cause, but I think, there is some issue with debugger, because with Lauterbach debugger, the code works correct. There is no reason, why the code should not work.

So, I escalated this issue to application team and now I wait for additional information. Please be patient, I will keep you inform as soon as I have any information for you.

Regards,

Martin

183 Views
arjunraveendran
Contributor III

Hello Martin,

Thanks a lot for the actions.

As directed, I will wait for a reply from your side.

Have a nice day.

0 Kudos

183 Views
stanish
NXP Employee
NXP Employee

Hello Arjun,

Thanks for the report. The issue is probably located in the startup script file s32e200_mpc563xm_vle.mac:<S32DS_Power_v2017.R1>\eclipse\plugins\com.pemicro.debug.gdbjtag.ppc_1.7.2.201709281658\win32\gdi\P&E\s32e200_mpc563xm_vle.mac

line 63 is missing instruction:

execute_opcode $7C0007A4 ; tlbwe

This causes the MMU page for Perpheral registers A is not configured at all and it throws an exception when accessing the registers.

Attached is the fixed script for your convenience.

Hope it helps.

Stan

183 Views
arjunraveendran
Contributor III

Hello Stanish,

Thanks a lot for your answer.

Your solution has worked like a charm and I am able to get my project up and running.

Thanking you for your time and efforts in quick debugging and coming up with a solution.

Wishing you a very nice day,

Arjun. 

0 Kudos