PSoC6 SMIF HardFault(bus fault)

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Oxanagig3
Level 2
Level 2
5 replies posted 5 questions asked 5 sign-ins

Hello, 

I am using a PSoC6 to interact with a serial flash, and I have encountered a bus fault using the library. The fault happens in the Cy_SMIF_TransmitCommand() function.

Here is some screenshots for the fault and the system clock configure.

XiGa_1309021_0-1610752482669.png

XiGa_1309021_1-1610752579147.png

 

I would like to know how to fix this issue? What was the cause of this issue?

Let me know if you need more information.

Thanks,

Xiang Gao

 

0 Likes
1 Solution

I think I found the issue in my project.

If the Serial Flash was not initialized successfully, then this issue would happen.  

View solution in original post

0 Likes
2 Replies
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

Hello @Oxanagig3,

It's tough to say from the screenshots why the error occurs. Would you be able to attach your project or a stripped-down version of the project? This will help us reproduce the issue and find the root cause. 

Also, are you using a custom board or a Cypress kit? Which memory chip are you interfacing with? 

Please attach the datasheet of the memory chip too.

Regards,
Dheeraj


0 Likes

I think I found the issue in my project.

If the Serial Flash was not initialized successfully, then this issue would happen.  

0 Likes