Problems when configuring and debugging online BIST on MPC5744 through the S32DS project

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

Problems when configuring and debugging online BIST on MPC5744 through the S32DS project

Jump to solution
1,030 Views
JC2
Contributor I

Hello

I added the "main.c" file from the GHS routine(Example MPC5744P BIST On-line GHS614 - NXP Community) to the S32DS project and used the debug function of the S32DS for downloading and debugging. I look at the relevant registers through the expressions window. I found that many registers had values that were different from those configured in the code, as shown in the image below. The code is consistent with the routine and in AN11993. I have the following questions:
1. Did I fail to configure? What is the reason?
2. If I made a mistake in the transplant project, can you provide me with a correct transplant method?
3. If I can't view the register through the expressions window during debugging, how do I read the register value to ensure that the online BIST executes correctly?

Thank you very much!

JC2_0-1711355637371.png

 

0 Kudos
Reply
1 Solution
1,009 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

I added the "main.c" file from the GHS routine(Example MPC5744P BIST On-line GHS614 - NXP Community) to the S32DS project and used the debug function of the S32DS for downloading and debugging.

Well, this is not exactly how porting should looks like. You are now mixing 2 compilers GHS and GCC if I understood it correctly. Not talking about header files differences, etc...

From your description I cannot say which compiler you are going to use.

1. Did I fail to configure? What is the reason?

Hmm, and what did you configured? I read that you just added main.c file to some unknown S32Ds project.

2. If I made a mistake in the transplant project, can you provide me with a correct transplant method?

There is no automatic tool for migration. You will need to copy routines/files by hand into your project so they will fit S32DS IDE:

Here is more about it explained by Stanish:

https://community.nxp.com/t5/S32-Design-Studio/How-are-convert-GreenHills-project-to-S32-project/m-p...

3. If I can't view the register through the expressions window during debugging, how do I read the register value to ensure that the online BIST executes correctly?

During the BIST execution you do not have access to microcontroller. You will read the result registers after the reset triggered by BIST on BIST complete event.

Best regards,

Peter

View solution in original post

0 Kudos
Reply
1 Reply
1,010 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

I added the "main.c" file from the GHS routine(Example MPC5744P BIST On-line GHS614 - NXP Community) to the S32DS project and used the debug function of the S32DS for downloading and debugging.

Well, this is not exactly how porting should looks like. You are now mixing 2 compilers GHS and GCC if I understood it correctly. Not talking about header files differences, etc...

From your description I cannot say which compiler you are going to use.

1. Did I fail to configure? What is the reason?

Hmm, and what did you configured? I read that you just added main.c file to some unknown S32Ds project.

2. If I made a mistake in the transplant project, can you provide me with a correct transplant method?

There is no automatic tool for migration. You will need to copy routines/files by hand into your project so they will fit S32DS IDE:

Here is more about it explained by Stanish:

https://community.nxp.com/t5/S32-Design-Studio/How-are-convert-GreenHills-project-to-S32-project/m-p...

3. If I can't view the register through the expressions window during debugging, how do I read the register value to ensure that the online BIST executes correctly?

During the BIST execution you do not have access to microcontroller. You will read the result registers after the reset triggered by BIST on BIST complete event.

Best regards,

Peter

0 Kudos
Reply