2133790_en-US

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

2133790_en-US

2133790_en-US

I have a S32K344 with a S32KX4EVB-T172

I have followed all instructions from Getting Started with the S32K3X4EVB-T172 Evaluation Board for Automotive General Purpose | NXP Semic...  and I am now in the Build, Run phase.

Compilation of the code with the Port Example for S32K344 was successful but for some reason, when going into debug, I am facing these errors:

UsageFault: A coprocessor access error has occurred. The coprocessor is disabled or not present.

UsageFault: An instruction executed with an invalid EPSR.T or EPSR.IT field.

BusFault: A bus fault has occurred during lazy floating-point state preservation.

Possible BusFault location: 0xF87AF003.

BusFault: A bus fault has occurred on exception entry.

MemManage: The processor attempted a load or store at a location that does not permit the operation.

MemManage: The processor attempted an instruction fetch from a location that does not permit execution.

HardFault: A fault has been escalated to a hard fault.

HardFault: A BusFault has occurred on a vector table read during exception processing.


Note: I have the FreeMaster Serial Communication Driver installed. The debugger initially would show:

marvincabuenas_0-1752559656788.png

However, upon clicking either Resume/ Step Over, these errors would then occur.

Any advice will be very much appreciated.

 


Re: I have a S32K344 with a S32KX4EVB-T172

Hi Daniel, I changed J31 to pins 3-2 and I can now flash my microcontroller. Thank you for that. The initial setup says to use pins 1-2 for J31.

Re: I have a S32K344 with a S32KX4EVB-T172

Hi @marvincabuenas,

The configuration of the Last mile regulator in PMC must match the HW configuration on board.

danielmartynek_0-1753087855879.png

V15_MCU can be generated by Q4 controlled by VRC_CTRL_MCU, or it can use VCORE from the SBC, check J31 on your board.


Regards,

Daniel

  

Re: I have a S32K344 with a S32KX4EVB-T172

Hi Daniel,

marvincabuenas_0-1753079088574.png

It stops at the line if (PMC_CONFIG_LM_BASE_CONTROL_ENABLE == (ConfigPtr->ConfigRegister & PMC_CONFIG_LMBCTLEN_MASK)) inside Power_Ip_PMC.c

Once I enter that line and click step into, it goes into assembly code and crashes.

Re: I have a S32K344 with a S32KX4EVB-T172

Hello @marvincabuenas,

I'm not able to reproduce it on my side with that example.

Can you step through the code and find the exact instruction (or the lowest level function) that causes the failure?


Thank you

Re: I have a S32K344 with a S32KX4EVB-T172

Hi Daniel,

I have this RTD version installed.

marvincabuenas_0-1752622627445.png

I will check out the documents you sent.


Re: I have a S32K344 with a S32KX4EVB-T172

Hi @marvincabuenas,


The project should call either the PRECOMPILE or the POSTCOMPILE variants of the APIs.


Which RTD version do you use?


Any fault exception can further debugged, refer to this documents:

https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-HARDFAULT-Handling-Interrupt-DS3-5-...

https://community.nxp.com/t5/S32K-Knowledge-Base/How-To-Debug-A-Fault-Exception-On-ARM-Cortex-M-V7M-...

https://community.nxp.com/t5/S32K-Knowledge-Base/Fault-handling-on-S32K14x/ta-p/1114447

 

Regards,

Daniel

 




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