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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
1,033 次查看
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 项奖励
回复
1 解答
1,012 次查看
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 项奖励
回复
1 回复
1,013 次查看
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 项奖励
回复