cancel
Showing results for 
Search instead for 
Did you mean: 

X-CUBE-DPOWER

victagayun
Senior III

There is a new Digital Power software expansion pack for STM32Cube, X-CUBE-DPOWER.

https://www.st.com/en/embedded-software/x-cube-dpower.html.

Does anyone know if the default code generated will immediately work on STEVAL-ISA172V2?

https://www.st.com/en/evaluation-tools/steval-isa172v2.html

1 ACCEPTED SOLUTION

Accepted Solutions
victagayun
Senior III

Some files can be found in:

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

just rename the files to .c

View solution in original post

22 REPLIES 22
JGrap.1
Associate II

Hi,

I've generated code for STM32G474 Discovery board. But can't compile, it's missing a 'DCDC_Control_layer.c'

Hi,

So you are only using the DC-DC (PSU) configurations?

Hi,

Yes.

Actually I use the 'PSU - Buck VoltageMode_HW G474inLQFP64.ioc' in folder 'xxxx\STM32Cube\Repository\Packs\STMicroelectronics\X-CUBE-DPower\1.0.1\CubeMX Files References' to generated the project, then compile.

GRINA.1
Associate II

Hi,

I have installed the package X-CUBE-DPOWER following the instructions on UM3102. There are compilation problem, some file are missing...

victagayun
Senior III

I had the same problem when importing PFC - Interleaved Boost G474inFQFP64.ioc.

I need to manually add the components to the Software pack dropdown menu when importing it.

Once added and generate the new code, I got an error with a missing file: "app_dpc_application.h".

This is not mentioned in UM3102 and not even included in:

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

victagayun
Senior III

For PSU - Full_Bridge Phase_Shifted G474inLQFP64. I have the same missing file: "app_dpc_application.h".

Aside from that, it included "dpwr_pfc.h", so I enabled and added PFC under the AC-DC_converter in CCM of X-CUBE-DPower.

victagayun
Senior III

I asked chatgpt regarding  "app_dpc_application.h", here is the response.

0693W00000Y8rjpQAB.png

victagayun
Senior III

So I was able to make some progress on it using the PFC firmware.

In V1.0.0:

The original folder and files are using DPower and app_dpower.c/f files.

So the include is

#include "app_dpower.h"

While in V1.01:

The folder and files became X-CUBE-DPower and app_X-CUBE-DPower.c/h files.

The include is

#include "app_dpc_application.h"

you may need to change to

#include "app_X-CUBE-DPower.h"

In both versions, you'll get an error on app_dpower.h and app_X-CUBE-DPower.h files because of the comma

/* Scaling Vout */
#define G4		    (0,00662251655629f)	// ((+1.8f/(1.8f+(180.0f*3.0f)))*(2.0f)) = 0.0066445182724252f

you change to dot

/* Scaling Vout */
#define G4		    (0.00662251655629f)	// ((+1.8f/(1.8f+(180.0f*3.0f)))*(2.0f)) = 0.0066445182724252f

The last error I encounter and still cannot solve is

/* Enable PWMs */
PFC_PWMOutputEnable(&DPC_APPL_HRTIM);

where the error is "undefined reference to `PFC_PWMOutputEnable'".

victagayun
Senior III

it should be missing the ***_control_layer.c