cancel
Showing results for 
Search instead for 
Did you mean: 

How to make a new MCSDK project for my DIY board from start?

Junde
Senior III

Hi there,

As the title suggests, I am working on a new project for my DIY board.

I already created a new inverter board with the board designer. (See the inverter config in the attachment)

I also configured a motor like below:

Junde_0-1762136736245.png

However, after I merge the inverter and the motor by creating a new project, there are some errors shown:

Junde_1-1762136898267.png

Question:

1. Can I find some information for the LOG? If yes, where is it?

2. Why can't I select the FOC or six-step algorithm? Is there some wrong configuration?

3. What's the problem with the current sensing?

Thanks for your help!

 

3 REPLIES 3
GMA
ST Employee

Hello @Junde,

Current sensing topologies for STM32 families are described in the ConnectionParameters.json file located in the "MC_SDK_x.x.x\Utilities\PC_Software\STMCWB\assets" directory of the MCSDK tool.
For the STM32G4 series, the closest available topology is ThreeShunt_RawCurrents_Differential_ExternalGain_FilteredADCInput.
ThreeShunt_RawCurrents_Differential_ExternalGain is not available.
Refer to the board description page for more details.

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA

Thanks, @GMA, for your important information.

My hardware doesn't support the "filterADCInput" feature; however, it seems I can reuse the OP out GPIO as ADC input.

Junde_0-1762220300968.png

Junde_1-1762220359332.png

In this way, I get the result like below:

Junde_2-1762221824953.png

Why can't I choose the FOC algorithm after changing the current sensing? Because I reuse the PIN?

My board is designed as above, Is there anyway that I can config the current sensing to compatible my board?

Thans for your help, have a good day.

 

Hello @Junde,

If FOC current sensing topologies are not available, FOC Driving Algorithm will not be presented.

In your snapshot, Filtered ADC input is selected (you mention that this configuration is not available on your hardware).

Refering to ConnectionParameters.json file, for STM32G4 series, you can use ThreeShunt_RawCurrents_Differential_InternalGain with 3 OpAmps (OPAMP1,OPAMP2,OPAMP3), two ADC (ADC1,ADC2) and a shared phase OPAMP3_OUT.

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA