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.
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.
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.
已解决! 转到解答。
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
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.
-------------------------------------------------------------------------------
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
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.
-------------------------------------------------------------------------------