Questions tagged [stm32g]
14 questions
5
votes
1 answer
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 length: 1μs to 200ms
pulse spacing: >10μs between…

Mark K Cowan
- 285
- 2
- 11
1
vote
0 answers
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 HAL_ADC_Start_DMA(). Do I have to stop the DMA…

Taavi
- 11
- 1
1
vote
0 answers
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 updated STLink's firmware to V2.J39.S7(I'm using chinese STLink device).
So when I'm…

Alatriste
- 121
- 2
1
vote
0 answers
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 and what should I do to start the process of…

Submin
- 11
- 2
1
vote
1 answer
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 would I be able to connect the debugger (ST Link)…

JeromeBu1982
- 315
- 2
- 9
1
vote
1 answer
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 features on ADC configuration.

SalPaz
- 95
- 3
- 11
0
votes
0 answers
How to control BLDC motor in DRV10983 driver to STM32G030F6P6 controller?
Am using in STM32G030F6P6 controller. I use DRV10983 driver IC to control BLDC fan motor. I am new to this driver IC. Can anyone help me know to How to use this DRV10983 Driver IC and communicate with STM32G030F6P6?
I have using code generate for…

Mr Smile
- 1
- 2
0
votes
1 answer
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 in electronics. I am able to follow along simple…

Dave
- 195
- 6
0
votes
1 answer
The microcontroller (STM32G0 Series) does not work after seting FLASH read protection
I am using STM32G030F6P6 microcontroller. I tried to make flash read protection:
if ((FLASH->OPTR & FLASH_OPTR_RDP) != 0xbb)
{
FLASH->KEYR = 0x45670123;
FLASH->KEYR = 0xCDEF89AB;
while (FLASH->SR & FLASH_SR_BSY1);
FLASH->OPTKEYR =…

red15530
- 21
- 2
0
votes
1 answer
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 an external ADC (AD7606BSTZ).
Is it worth adding…

Knowledge
- 329
- 1
- 8
0
votes
0 answers
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 software reset code, occasionally the core locks…

macdonaldtomw
- 1,420
- 17
- 32
0
votes
2 answers
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 around the 8-bit Atmel/Microchip micros.
However when it comes to developing software for it, I'm…

mythbu
- 167
- 7
0
votes
2 answers
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:
Number of external analog input channels per ADC
– Up to 5 fast channels from GPIO pads
– Up to 13 slow channels from GPIO…

gg99
- 103
- 3
0
votes
1 answer
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 starting ADC, there is always 1 V on this pin no matter…

SalPaz
- 95
- 3
- 11