Skip to main content
This topic has been closed for replies.
Best answer by victagayun

Some files can be found in:

Repository\Packs\STMicroelectronics\X-CUBE-DPower\1.0.1\STM32CubeMX\templates

just rename the files to .c

16 replies

Visitor II
February 7, 2023

Dear @victagayun​ 

We are confident there is misusage of the pack. So, we would like to help you to get it right.

Please, could you clarify the following information to start-up understanding your trouble:

1/ HW configuration :

1.1/ ioc file used ?

1.2/ HW board used ?

2/ SW configuration :

2.1/ STMCubeMx version used ?

2.2/ IDE and version used ?

3/ FW configuration :

3.1/ Which topology are you using ?

Thanks for your answers.

Best Regards

Explorer
February 8, 2023

OK, I overlooked that there is a newer version 1.0.2.

So far I have checked the following:

1. PFC - Interleaved Boost G474inFQFP64 = can be compiled without a problem.

2. PSU - Buck VoltageMode_SW G474inLQFP64 = missing files, dpwr_pfc.h and dpwr_pfc.c, need to copy manually.

Thanks!

Visitor II
February 11, 2023

I have the B-G474E-DPOW1 Discovery kit and I have downloaded the Buck_VoltageMode_HW project from ST repository. I build the project without error and it runs as expected.

After double click on ioc file the ST32CubeIDE suggest me to migrate to MX ver. 6.7.0

After the migration, the project compiles and runs as expected.

At this point I have downloaded and installed the X-CUBE-DPOWER software pack ver. 1.0.2 from ST repository.

I have made the selection as in the following imagine:

0693W00000YAWL2QAP.jpgNOTE: Only X-CUBE-DPOWER is 1.0.2 but the components of the software pack are 1.0.1 or 1.0.0.

0693W00000YAWL7QAP.jpgAfter the selection I click on the button Device Configuration Tool Code Generation and all is ok.

After this operation I close the ioc editor.

At this point I bulid the project but I have the following error:

In file included from C:/STMicroelectronics/Projects/Buck_VoltageMode_HW/Src/DCDC_Control_Layer.c:32:

../../Inc/app_dpower.h:33:10: fatal error: DPC_Miscellaneous.h: No such file or directory

Tools version:

STM32CubeIDE: Version 1.11.2

STM32 Device Configuration Tool (MX): Version: 6.7.0-RC4

X-CUBE-DPOWER package ver 1.0.2

Thanks for the support

Explorer
February 11, 2023

You can copy the .ioc from

Repository\Packs\STMicroelectronics\X-CUBE-DPower\1.0.2\CubeMX Files References to your workplace and import. That would be PSU - Buck VoltageMode_SW G474inLQFP64.ioc. After which, you will end up with missing files, dpwr_pfc.h and dpwr_pfc.c. You just need to copy manually from Repository\Packs\STMicroelectronics\X-CUBE-DPower\1.0.2\Middlewares\ST\Third_Party\Biricha.

Visitor II
February 12, 2023

After some test I have found this way for compiling the project:

I have selected the button Start new project form STM32CubeMX file (.ioc)

0693W00000YAXGDQA5.jpg 

Then I have selected the file PSU - Buck VoltageMode_HW G474inLQFP64.ioc

The file is at the following path:

C:\Users\user1\STM32Cube\Repository\Packs\STMicroelectronics\X-CUBE-DPower\1.0.2\CubeMX Files References\

0693W00000YAXGIQA5.jpg 

During the import of the ioc file I receive the following message:

0693W00000YAXGNQA5.jpg 

Then I select to migrate.

At this point if I compile the project I have the following error:

../DPower/App/DCDC_Fault_Processing.c:32:10: fatal error: dpwr_pfc.h: No such file or directory

  32 | #include "dpwr_pfc.h"

I have found the file at the following path:

C:\Users\user1\STM32Cube\Repository\Packs\STMicroelectronics\X-CUBE-DPower\1.0.2\Middlewares\ST\Third_Party\Biricha\Inc\

0693W00000YAXGSQA5.jpgI have copied the file at this path of my project:

C:\STMicroelectronics\Projects\PSU - Buck VoltageMode_HW G474inLQFP64\DPower\App\

0693W00000YAXGXQA5.jpg 

After this I compile the project with success.

Thanks for the support

Explorer
February 12, 2023

Just curious, the compilation is one thing but does it actually work on your B-G474E-DPOW1?

Visitor II
February 12, 2023

The project works on the B-G474E-DPOW1 Discovery kit. I have searched the instruction about the joystick on the board and with an oscilloscope I have seen the Automatic and Manual resistor load selection. The LED's on the board flashing as expected.

I haven't the documentation of the source so I haven't seen the ramp for example. There is the following comment on the head of the file app_dpower.c:

This example implements a PSU Phase-Shift Full-Bridge topology in CCM.

I hope ST provide a brief documentation of the source on how to test the ramp...

Visitor II
February 13, 2023

@GRINA.1​ ,

As indicated into our User's Manual and the dedicated Application Notes applied to each topology, the standard library shall be selected as well ;-).

FYI, it brings the DPC_Miscellaneous (header and source) files and few others available for the project generation.

Best Regards

Explorer
April 3, 2025

I was facing the same issue as @GRINA.1 (missing DPC_Miscellaneous) and I was having some trouble understanding the advice of @PBo before I was able to resolve. So let me clarify:

In STM32CubeMX when selecting the components of X-CUBE-DPOWER pack, make sure to select Library Digital Power Converter --> Legacy.