2020-06-30 07:53 AM
code generated in cube mx contains several bugs in [stm32h7xx_hal_msp.c] source file:
this is my first post here, so hope, that written in good place
2020-07-24 01:44 AM
Hello @AByc.1
could you please share your ioc file?
Thanks
Khouloud
2020-09-02 03:28 PM
Hi @Khouloud ZEMMELI ,
I am using stm32h745zi-q Nucleo-144 board and facing similar problem. When selecting internal voltage reference scale as SCALE 1: around 2.048V in cube mx (6.0.1), it does set the clock but still seem to generate the wrong code:
So my DAC's Vref is still 3.3V.
stm32cubeide is v1.4.2.
Any idea please? Thanks
2020-09-03 07:16 AM
OK, on the Nucleo-144 board, the Vref is hardwired via the R39 resister to the VDD_MCU. With this, the Vref for both ADC/DAC is fixed. Removing (un-soldering) the R39 from the board got it working as expected.
It would be nice if the cubeMX can provide an info telling the designer when setting VREFBUF based on the board selection!
Yet the SYSCFG_VREFBUF_VOLTAGE_SCALE0/SYSCFG_VREFBUF_VOLTAGE_SCALE1 macro definitions are in wrong way round. SYSCFG_VREFBUF_VOLTAGE_SCALE0 is 2.048V whilst SYSCFG_VREFBUF_VOLTAGE_SCALE1 is 2.5V. So we will define our own in case stm changes this in the future.