Skip to main content

Questions tagged [stm32g]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
6 views

STM32G4x 2 chanel Contunious Conversion Mode ADC DMA voltage read problem

I am using STM32G431KB nucleo for measure a potentiometer voltage via ADC1_IN1 and ADC1_IN2 channels with Scan Mode DMA. And my samples arrays are always zero no change. I share my code below. What ...
MSB's user avatar
  • 77
0 votes
0 answers
67 views

STM32G4x ADC DR always zero

I am using a STM32G413KB Nucleo Board, I am trying to test ADC with the code I write I give below, When I debug the code interrupt is triggering contuniously but ADC value don't change even I change ...
MSB's user avatar
  • 77
0 votes
1 answer
254 views

Getting started with STM Nucleo boards. Mapping from processor pins to board functionality (like LEDs)

Please tell me if there is a more appropriate group! I'm just starting with STM developmeent using STM32CubeIDE. I have a background in programming (C#/C++/C) on the desktop and some minor experience ...
Dave's user avatar
  • 195
0 votes
1 answer
519 views

The microcontroller (STM32G0 Series) does not work after seting FLASH read protection

I am using STM32G030F6P6 microcontroller. I tried to make flash read protection: ...
red15530's user avatar
0 votes
1 answer
107 views

Is it okay to split the same net to sample an analog signal in two ADCs?

I have an analog signal that comes from another place with a range of 0-1 V, the required resolution should be 10 bit. I want to sample the same signal in two ADCs, the internal ADC of the STM32, and ...
Knowledge's user avatar
  • 441
0 votes
0 answers
189 views

Is this an example of STM32G0 core lockup during software reset?

Using a STM32G0F06 I have a bootloader/application that I am debugging. I am facing a strange problem. Often, I command the app to drop to bootloader (via a software reset). When I execute the ...
macdonaldtomw's user avatar
1 vote
0 answers
669 views

Using multiple ADC-s with DMA simultaneously – STM32

Is there a way to use DMA with multiple ADCs at the same time? I know you can scan multiple channels on one ADC, but I currently use 5 different ADCs on my STM32G4. I use the HAL library function <...
Taavi's user avatar
  • 11
2 votes
1 answer
404 views

STM32G030J6M6 Debug issue

I just bought two STM32G030J6M6 and solder it on my custom board . here is schematic in STM32CubeIde I'm just setting SWDIO/SWCLK pins.. nothing else, Also I ...
Alatriste's user avatar
  • 160
1 vote
0 answers
210 views

USB Power Delivery: How to renegotiate the existing contract

STMicrosystems UM2552 has a paragraph 4.2.2: Send request message A SINK must send a request message to ask for a new power level, the rest of the sequence is identical to AMS power negotiation. How ...
Submin's user avatar
  • 11
-1 votes
2 answers
472 views

STM32G030: more smaller and simpler library for software development than HAL/LL/libopencm3/tinygo?

I'm quite a fan of the STM32G030x6/x8 "line" since it is small and fits most of (my) needs as a more modern replacement to the Arduino platform built ...
mythbu's user avatar
  • 175
0 votes
2 answers
2k views

Quantify STM32G4 slow vs fast ADC channels

The STM32 G4 reference manual mentions a concept of slow and fast ADC channel. Quoting from the ADC section of the manual: ...
gg99's user avatar
  • 103
1 vote
1 answer
210 views

Is it feasible to use both MCU UARTs if it only has two?

I love STM32 nucleo boards and they have tons of UARTs. Now want to use two UARTS for protocol conversion (rx at 115200baud, tx at 38400) on a stm32g0316 discovery board that has only two UARTs. How ...
JeromeBu1982's user avatar
2 votes
1 answer
5k views

DMA Continuous Request functionality

What is the difference between these features on STM32G0 "Scan Conversion mode" and "Continuous conversion mode" and "DMA continuous request" features? When you go on CubeIDE you will see these ...
SalPaz's user avatar
  • 105
0 votes
1 answer
140 views

1V on ADC pin with DMA continuous requests

I have a STM32G071 Nucleo Board and also the IC itself. In CubeIDE, I set a pin as ADC and activate DMA and enable the DMA continuous request in the ADC settings. After executing the code and ...
SalPaz's user avatar
  • 105
5 votes
1 answer
2k views

Measuring pulse durations with microsecond precision or better

Problem I'll be receiving pulses and want to know the relative times of pulse start/end with microsecond precision (or better). Pulse characteristics: pulse frequency: probably 1Hz to 10Hz pulse ...
Mark K Cowan's user avatar