STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

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
  • 6079 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! 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
  • 1080 Views
  • 5 replies
  • 0 kudos

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 CC1200. Working in STMCube IDE and mostly using MX to generate drivers for SPI2. The SPI interface works and I am able to send comands and receive regster values to/from CC1200 however,...

0693W00000JNU6zQAH.png 0693W00000JNU7xQAH.png
EMarv.1 by Associate II
  • 1480 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
  • 1915 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
  • 1566 Views
  • 6 replies
  • 0 kudos