1958521_en-US

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

1958521_en-US

1958521_en-US

After PMIC integration in bootloader, it is going to Hard Fault exception in S32G3.

We are facing hard fault exception after PMIC, I2c and Dio Integration in Bootloader, included Mcu clock ref also. 

Following are the screenshots of the hard fault:

Anup97_0-1726818024940.png

So far we found that ModeConfigPtr is not updating the correct address and we updated it manually during debug. Even after that we see it is going hard fault as seen below:

Anup97_1-1726818272705.png

Configuration parameters:

Anup97_2-1726818424501.png



Re: After PMIC integration in bootloader, it is going to Hard Fault exception in S32G3.

Hello @Anup97

As I mentioned before, we do not recommend including the PMIC driver into the bootloader, therefore we don't have examples or guide on how to do it.

I can recommend you checking the Bootloader User Manual available in the GoldVIP package that you can find in the AUTO-SW-PACKAGE-MANAGER 

alejandro_e_0-1727283070471.png

you can find this document after installing the package in the documentation folder. If you are not able to download the package please contact your FAE/DFAE/NXP representative so they can guide you on how to enable it.

In this document you can will see information on how to customize the bootloader. 

Re: After PMIC integration in bootloader, it is going to Hard Fault exception in S32G3.

We are able to load the bootloader image and from bootloader initialization it is going to exception. As shared in below screenshots:

Anup97_0-1727261586839.png

Do you have any reference, where Pmic is integrated in the bootloader ?

Re: After PMIC integration in bootloader, it is going to Hard Fault exception in S32G3.

Hello @Anup97

Being that it is a custom HW I may not be able to give you full support. With that said, I do not recommend putting this modules in the bootloader, since the expected behavior is that the bootloader does the minimum just to boot the needed cores and then give control to said cores. Also the bootROM has a timeout to load the Bootloader image, if the image is too big it will cause the board to reset, as you can see in the reference manual [page 1348, S32G3 Reference Manual, Rev. 4, 02/2024]:

alejandro_e_0-1727129610576.png

Can you check if this timeout is being respected?


Another thing I can recommend is checking the clock an power configurations of the problematic modules. I2C uses either DMA or interrupts to manage the flow of information, this modules might not be completely configured when the bootloader is traying to send/receive messages. 

I am assuming that if you are using this modules in your application then the hardware can be discarded as a problem.

In this case, mi general recommendation is to create the smallest and simplest bootloader so it can be loaded and executed in the fastest way possible, so that the M7 application can refresh the PMIC watchdog before the PMIC timeout.


Let me know if this information was useful.




Re: After PMIC integration in bootloader, it is going to Hard Fault exception in S32G3.

Hello @alejandro_e ,

  • RTD version is 4.0.2
  • Custom HW
  • Tresos version 29.2.0
  • The modules were already available in the EB Tresos plugins, I've imported the modules by selecting the module configuration settings. Please refer below: 
    Anup97_1-1727093702706.png
  • We are already using these modules in our autosar application, we're trying to replicate in bootloader for triggering the watchdog refresh.



Re: After PMIC integration in bootloader, it is going to Hard Fault exception in S32G3.

Hello @Anup97,

To be able to help you I will need some details about your setup:

  • What is the RTD version you are using?
  • Are you using the RDB3 or a custom HW?
  • What is the Tresos version you are using?
  • Can you describe more about how you added the modules you mentioned? or if you modified them?
  • Is this the first time you use the PMIC, I2c and Dio modules? or have you used the example for each of them in the past?

Thanks in advance for the information

タグ(1)
評価なし
バージョン履歴
最終更新日:
‎11-21-2025 08:38 PM
更新者: