Skip to main content
JFlowers
Associate III
November 28, 2025
Solved

Recommendations on recreating STM32CubeMX .ioc file from ST Example code

  • November 28, 2025
  • 3 replies
  • 136 views

Hello Everyone,

 

Since the STM32CubeMX .ioc file does not exist for the DAC_GenerateWaveform_TriggerHW example code (as usual), does anyone have suggestions/recommendations on the best way to recreate it?

 

Seems like I need to make iterative guesses in STM32CubeMX and then see if the numbers start matching up in the original DAC_GenerateWaveform_TriggerHW example code?

 

Thanks!

 

C:\ST\STM32Cube_FW_H7_V1.12.1\Projects\NUCLEO-H7A3ZI-Q\Examples_LL\DAC\DAC_GenerateWaveform_TriggerHW\Src\main.c

 

Best answer by Imen.D

Hello @JFlowers ,

The following article Getting started with DAC will help you on how to set up the DAC as wave generator in STM32CubeMX and creating a simple application to test the DAC.

3 replies

Andrew Neil
Super User
November 28, 2025

@JFlowers wrote:

Since the STM32CubeMX .ioc file does not exist for the DAC_GenerateWaveform_TriggerHW example code (as usual),


not sure what you mean by "as usual" ?

Some ST examples do have .ioc files (ie, they were created using CubeMX); some weren't - see previous discussions, eg here.

The clue to which is which seems to be here.

 


@JFlowers wrote:

does anyone have suggestions/recommendations on the best way to recreate it?


These projects just weren't created using CubeMX at all - you can't re-create something which wasn't ever there.


A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
JFlowers
JFlowersAuthor
Associate III
December 18, 2025
@JFlowers wrote:

Since the STM32CubeMX .ioc file does not exist for the DAC_GenerateWaveform_TriggerHW example code (as usual),

> not sure what you mean by "as usual" ?

 

 

C:\ST\STM32Cube_FW_H7_V1.12.0>dir
Volume in drive C has no label.
Volume Serial Number is 6614-55BB

Directory of C:\ST\STM32Cube_FW_H7_V1.12.0

11/27/2025 07:01 AM <DIR> .
11/27/2025 07:11 PM <DIR> ..
11/27/2025 06:59 AM <DIR> Documentation
12/05/2024 10:45 AM <DIR> Drivers
11/27/2025 07:00 AM <DIR> Middlewares
12/05/2024 10:36 AM 252 package.xml
12/05/2024 10:35 AM 18,821 Package_license.html
12/05/2024 10:35 AM 15,287 Package_license.md
12/05/2024 10:45 AM <DIR> Projects
12/05/2024 10:36 AM 367,652 Release_Notes.html
11/27/2025 07:01 AM <DIR> Utilities
11/27/2025 07:02 AM <DIR> _htmresc
4 File(s) 402,012 bytes
8 Dir(s) 2,361,461,895,168 bytes free

C:\ST\STM32Cube_FW_H7_V1.12.0>dir *.ioc /s/b
File Not Found       <-------------------------------------------------- "as usual"

C:\ST\STM32Cube_FW_H7_V1.12.0>

 

 

Andrew Neil
Super User
December 18, 2025

Again, some examples do have .ioc files; some don't - so neither having nor not having an .ioc file is "usual".

There are plenty of examples which do have .ioc files, and plenty which don't.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Imen.DBest answer
Technical Moderator
November 28, 2025

Hello @JFlowers ,

The following article Getting started with DAC will help you on how to set up the DAC as wave generator in STM32CubeMX and creating a simple application to test the DAC.

"When your question is answered, please close this topic by clicking ""Accept as Solution"".ThanksImen"
mƎALLEm
Technical Moderator
December 18, 2025

@JFlowers 

"Since the STM32CubeMX .ioc file does not exist for the DAC_GenerateWaveform_TriggerHW example code (as usual)"

Please bear in mind that at time where STM32CubeH7 was released, providing ioc file with the examples was not the policy. 

That policy started after with newest products and Cube-HALs of older MCU families (F1, F2, F3, F4, F7 etc ..) don't contain ioc files in their examples.

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
JFlowers
JFlowersAuthor
Associate III
December 18, 2025

I can understand this. Thanks.    I cannot/will not believe that "plenty" is equal to zero.