Problems starting a new board - BusFault: An imprecise (asynchronous) data access error has occurred

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

Problems starting a new board - BusFault: An imprecise (asynchronous) data access error has occurred

跳至解决方案
2,050 次查看
jwkang
Contributor III

 

I confirmed that our code works well on the S32K344-WB EVB. I created a project for S32K344 and S32K314 and confirmed that each works.

https://www.nxp.com/design/development-boards/automotive-development-platforms/s32k-mcu-platforms/s3...

 

Based on this, we created a new board with S32K314.
S32DS 3.4, NXP GCC 10.2 for Arm 32-bit Bare-Metal
RTD 2.0.0, Debugger Pemicro

I tried running the code on this board, but it doesn't work properly.
The binary appears to have been written in Flash, but the code appears to no longer run at 0x0. I checked the JTAG line, but there seems to be no problem.

I checked the error code and it is as follows.

BusFault: An imprecise (asynchronous) data access error has occurred.
HardFault: A fault has been escalated to a hard fault.

 

jwkang_0-1698565907702.png

 

 

jwkang_1-1698564992268.png

 

jwkang_2-1698565059337.png

I tried to forcefully move the address, and it seems to move, but when I run it, it doesn't actually proceed.

 

Plz tell me the exact meaning of the error code.
And plz advise on what additional things to check.

标记 (1)
0 项奖励
回复
1 解答
2,007 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

Seems that the HardFault(BusFault) occur at DTCM_LOOP() in startup_cm7.s.  Please check whether it was caused by wrong size of int_itcm and int_dtcm in Project_Settings/Linker_Files/linker_flash_s32k314.ld

ITCM DTCM size of S32K344 S32K314 linker file.png


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

在原帖中查看解决方案

2 回复数
2,008 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

Seems that the HardFault(BusFault) occur at DTCM_LOOP() in startup_cm7.s.  Please check whether it was caused by wrong size of int_itcm and int_dtcm in Project_Settings/Linker_Files/linker_flash_s32k314.ld

ITCM DTCM size of S32K344 S32K314 linker file.png


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

1,986 次查看
jwkang
Contributor III

The linker file is a file created by Generate, but it is strange that the address does not match.

Thank you for your support.
I solved this problem by changing the size of itcm and dtcm.

0 项奖励
回复