cancel
Showing results for 
Search instead for 
Did you mean: 

Recommendations on recreating STM32CubeMX .ioc file from ST Example code

JFlowers
Associate III

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

 

2 REPLIES 2
Andrew Neil
Super User

@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.
Imen.D
ST Employee

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".
Thanks
Imen