STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Resolved! Strange DAC behaviour on STM32H743VIT6 Hi to community! I have a strange problem with DAC. Whatever settings (buffer on/off, dma mode, data format or allignment, speed, etc) i am not getting simple output results that are expected. Thanks in advance!

Code is too simple, else is initiated by CubeMx, using latest CubeIde. Board is DevEBox.#define buf_size 512uint16_t data[buf_size]={};for(uint8_t i=0;i<(buf_size/4);i++)data[i]=4095;HAL_TIM_Base_Start(&htim6);HAL_DAC_Start_DMA(&hdac1, DAC_CHANNEL_1,...

Mixer by Associate II
  • 1639 Views
  • 4 replies
  • 0 kudos

Resolved! Bad jitter on LSE over ~0.1s time scales

In our product, we would like to use the LSE crystal to accurately time a measurement of roughly 0.1 seconds. In this case, we are using an STM32G474 MCU. Using a Nucleo-G474 board for proof-of-concept work, we have found that there is very bad jit...

How to proceed with programming Nucleo-64 using C++

Hi all,I'm an experienced C++ programmer who happen to start learning embedded programming, with a little stuff, like STM32F411RE Nucleo-64 (the board I'm working on mainly) and a blue-pill alongside breadboard and a bunch of wires. I haven't done mu...

Adev.1 by Associate III
  • 2632 Views
  • 8 replies
  • 0 kudos

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
  • 1743 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
  • 6927 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...