STM32 MCUs Products

Ask questions, find answers, and share insights on STM32 products and their technical features.

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Resolved! TIM-triggered periodic ADC capture w/ DMA

I'm trying to do a periodic ADC capture on 2 channels, triggered by TIM5. ADC should output to memory via DMA, with a DMA interrupt upon each completion to read the data from each scan.So far, the DMA interrupts aren't hitting, and the ADC doesn't ev...

0693W00000JNQtTQAX.png 0693W00000JNQtiQAH.png 0693W00000JNQtsQAH.png 0693W00000JNQtxQAH.png
BMcDo.3 by Associate III
  • 2307 Views
  • 9 replies
  • 0 kudos

Hi. I want to measure the voltage of the battery with the ADC. Currently the voltage of the battery is 3.3 volts. I always see the result "6106" on the serial screen. What could I be doing wrong? Can you help me please?

code:/* USER CODE BEGIN 2 */ HAL_UART_Transmit(&hlpuart1, (uint8_t *)"Basladi\r\n", 9, 100);HAL_ADC_Start(&hadc);#define VREFINT_CAL_ADDR 0x1FF80078#define VREFINT_CAL ((uint16_t*) VREFINT_CAL_ADDR)#define MAX_VOLTAGE 3000.0uint32_t VREFINT...

ZKURT.1 by Senior
  • 8840 Views
  • 27 replies
  • 0 kudos

Receive UART messages in DMA

I am trying to receive messages in DMA mode, on a STM32L432KCU. The pins PA2 and PA3 are configured as DMA pins. The baudrate is 115200 and the global interrupt for USART2 is turned on. In the main function, I have the initialization of the periphera...

Resolved! STM32U5 Max LSE bypass frequency documentation error

In STM32U575/585 RM0456 Rev 2 from September 2021, I see the following:"11.4.7 LSE clock...External source (LSE bypass)In this mode, an external clock source must be provided. It can have a frequency of up to 1 MHz."However, in STM32U585xx DS13086 R...

Resolved! STM32 ADC limited common mode range

Hello,for a switched capacitor ADC with differential inputs, I would expect no limits on common mode voltage as long as input voltage is in the GND/VDDA range. However STM32 ADCs only allow a small range of common mode voltage around (Vref- VDDa) /2....

TIM Input Capture direct mode GPIO mode

STM32L412KBUx on NUCLEO-L412KB, STM32CubeIDE, Version: 1.8.0.I'm trying to use TIM1 to measure frequency of an external input signal connected to PA8. I'm confused by the choices in CubeIDE. In Pinout & Configuration, TIM1, Channel 1, I selected Inpu...

0693W00000JN1qjQAD.png
CKugl.1 by Senior II
  • 1613 Views
  • 5 replies
  • 0 kudos

SPI between Nucleo-STM32L476RG and TI CC1200

SPI interface between Nucleo-STM32L476RG and TI CC1200. 1. How to adjust to adjust SCK/Baudrate? 2. How to adjust interval between NSS/CSN state change and start/stop of SCK pulse? I have set up an SPI interface between Nucleo-STM32L476RG and TI CC12...

0693W00000JNU6zQAH.png 0693W00000JNU7xQAH.png
EMarv.1 by Associate II
  • 2206 Views
  • 4 replies
  • 0 kudos

I2C SDA Pullup Causes STM32G473xx Family to Lockup

I started a new project using an STM32G473CB in the QFN48 package. I've used this and other G4 chips for many other projects and never encountered this issue. This issue occurs with all 3 flash size variants (CB, CC, and CE).I've replicated this issu...

SSpen by Associate II
  • 2687 Views
  • 8 replies
  • 0 kudos

Resolved! STM32 with PT4115 Dimming

I create a custom board to use PT4115 to control LED. This PT4115 can be control with PWM or external DC on DIM pin. According to spec, the DIM range is 0.3-2.5V.I tested the board by I short the DIM pin to GND and the LED turn off.So it show the boa...

0693W00000JNL6MQAX.jpg
SEng.1 by Associate II
  • 2292 Views
  • 6 replies
  • 0 kudos