STM32CubeMX (MCUs)

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

I2C Custom Timing

Hi,Can anyone point me in the direction of some more information about the custom timing under the I2C parameter settings?Are we modifying a specific register? or something else? Do each of the 8 bits do something different?  

MEde1_0-1712248649852.png
MEde.1 by Associate III
  • 239 Views
  • 14 replies
  • 5 kudos

[STM32L412] CubeMX generated LL code for ADC TEMP channel

Hi,I'm using CubeMX 6.11.0 (STM32L4 package version 1.18.0) to generate code for the STM32L412 with LL drivers.My configuration enables the VREFINT and TEMP channels for ADC1.The generated function MX_ADC1_Init() contains the line  LL_ADC_SetCommonPa...

ml512 by Associate
  • 59 Views
  • 1 replies
  • 1 kudos

Resolved! Delay issues on HAL_SPI libraries

Hello everyone,  I am using SPI to communicate two Nucleo Boards (a NUCLEO-L432KC and a NUCLEO-F411RE one), and i found out a weird behavior. The idea was to perform a transaction Master -> Slave in order to select a "register" to read. Once the Slav...

vicfer89 by Associate II
  • 182 Views
  • 5 replies
  • 0 kudos

Why DAC output nothing in software trigger?

I am use STM32L431RCT6,and my CubeMX config is this:And my code is:```uint32_t data = 128;ret = HAL_DAC_SetValue(&hdac1, DAC_CHANNEL_1, DAC_ALIGN_8B_R, data);if(ret) {HAL_Delay(10);}ret = HAL_DAC_Start(&hdac1, DAC_CHANNEL_1);if(ret) {HAL_Delay(10);}`...

Wshuo1_0-1711240505296.png
Wshuo.1 by Associate II
  • 96 Views
  • 1 replies
  • 0 kudos

Resolved! Wrong default linker FLASH STM32L412

Hi,I think I may have found an error.When generating a project for STM32L412K8TX (not a board) the default linker file define a RAM LENGTH of 40K.The STM32L412K8TX have 40K divided in two parts, 32K in RAM1 (0x20000000) and 8K in RAM2 (0x10000000).Pa...

Resolved! CubeMX 6.10.0 has wrong SRAM size for STM32L452

I migrated a project from STM32CubeMX 6.3.0 to STM32CubeMX 6.10.0.  It didn't boot anymore.There was this interesting diff to the linker script: ** Abstract : Linker script for STM32L452VCIx series -** 256Kbytes FLASH and 160Kbytes...

tpiepho by Associate
  • 258 Views
  • 4 replies
  • 2 kudos

CubeMX bug regarding LPUART1 DMA (MX_Device.h)

I use the STM32L496ZG. When generating the files using STM32CubeMX it also generates MX_Device.h which contains several defines. When using LPUART1 with DMA it also generates defines like:#define MX_LPUART_RX_DMA_DMA_Handle #define MX_LPUART_RX_DMA_I...

Reneb by Associate II
  • 224 Views
  • 2 replies
  • 0 kudos