2023-01-18 06:25 PM
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
Solved! Go to Solution.
2023-01-28 04:14 AM
Some files can be found in:
Repository\Packs\STMicroelectronics\X-CUBE-DPower\1.0.1\STM32CubeMX\templates
just rename the files to .c
2023-01-18 11:49 PM
Hi,
I've generated code for STM32G474 Discovery board. But can't compile, it's missing a 'DCDC_Control_layer.c'
2023-01-19 12:05 AM
Hi,
So you are only using the DC-DC (PSU) configurations?
2023-01-19 01:23 AM
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.
2023-01-22 11:32 AM
Hi,
I have installed the package X-CUBE-DPOWER following the instructions on UM3102. There are compilation problem, some file are missing...
2023-01-22 06:38 PM
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
2023-01-22 07:07 PM
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.
2023-01-22 07:19 PM
I asked chatgpt regarding "app_dpc_application.h", here is the response.
2023-01-25 06:22 PM
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'".
2023-01-25 06:31 PM
it should be missing the ***_control_layer.c