Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Receiving fault when connect to serial #3

Open
nlpng opened this issue Aug 4, 2021 · 5 comments
Open

Receiving fault when connect to serial #3

nlpng opened this issue Aug 4, 2021 · 5 comments

Comments

@nlpng
Copy link

nlpng commented Aug 4, 2021

Hello,

Many thanks for sharing this great project.
I just start to use stm32cubeide, and trying out the source code.
But I continue to receive the following message when connected through serial after flash the build.

FAULT
VDS_OCP
GDF
UVLO
OTSD
VDS_HA
VDS_LA
VDS_HB
VDS_LB
VDS_HC
VDS_LC
SA_OC
SB_OC
SC_OC
OTW
CPUV
VGS_HA
VGS_LA
VGS_HB
VGS_LB
VGS_HC
VGS_LC

What would be the possible cause of this message? Could you possibly share some hints to debug this?
Seems this is because my control board problem? failed to talk to DRV8323? I replicated the board design from the 3phase_inegrated repo.

Many thanks

@bgkatz
Copy link
Owner

bgkatz commented Aug 4, 2021

That indicates a hardware issue. Does the board work with the old mbed-based firmware? What voltage are you powering the board with?

@nlpng
Copy link
Author

nlpng commented Aug 4, 2021

Thanks for the reply, I think I need to look into the circuit board. Sorry I haven't got much experience with debugging hardware, but is there specific pins I could look into to check the board function correctly.

It is very smooth to build with stm32cubeide, I found it was quite difficult to use only compiler for the old mbed-based firmware, error when import the mbed-dev dependent library due to large size I guess. I am also trying with mbed studio with mbed-os 5.12.2, but still no success to flash the old firmware.

I am using 24V 400W power supply to power the board.

@nlpng
Copy link
Author

nlpng commented Aug 6, 2021

Ah, it seems that I already made a silly mistake by using the wrong gate driver IC, looking into the schematic of the 3phase_inegrated, it was DRV8323RH, which uses hardware interface, please correct me if I am wrong. it should be using DRV8323RS that is based on the SPI.

@bgkatz
Copy link
Owner

bgkatz commented Aug 6, 2021

Yes, DRV8323RS. The actual manufacturer part number in the BOM excel file is correct - the eagle schematic having RH instead of RS is an artifact of copy-pasting to make the eagle footprint for the RS version. Sorry for the confusion.

@harshdobariya
Copy link

Hello people,
I am getting the similar fault problems. I have used DRV8323RS and checked the design thoroughly. The communication with DRV is successful. It is after the calibration that these fault raises. I have print_fault enabled in while loop and after calibration is done, these faults get printed. I am using the old embed firmware. (Compiling in Keil mbed studio online)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants