New answers tagged stm32
0
votes
STM32G4x 2 chanel Contunious Conversion Mode ADC DMA voltage read problem
Make sure your GPIO's are configured as inputs (I believe PA1 and PA2)
Make sure your DMAMUX1 channel is pointed to ADC1
DMAMUX1_Channel1->CCR = 0;
DMAMUX1_Channel1->CCR |= (5 << ...
0
votes
Verifying if HSE is used by MCU as system clock without probing
There are several ways.
The best would be to select HSE as MCO output to verify the output is 8 MHz.
And then probe the crystal with a second scope probe to see that the two waveforms are a match, i.e....
1
vote
What are the VDDSD, VLXSD, and VFBSD pins?
In the datasheet, it shows what all these pins do:
Source: https://www.st.com/resource/en/datasheet/stm32wb09ke.pdf
0
votes
Accepted
What are the VDDSD, VLXSD, and VFBSD pins?
SMPS means "switch mode power supply". And in your case, the MCU integrates such functionality. That's not an overly common feature, but some microcontrollers have similar functionality with ...
1
vote
Verifying if HSE is used by MCU as system clock without probing
The clocks/pll are configured/selected and can be monitored by the Clock Configuration register and the Clock Control register
Bit 15, 16 in RCC_CFGR register will indicate as well as bit 16,17 in ...
2
votes
Accepted
STM32 MCU doesn't reset after flash
Under the Erasing & Programming tab, you have to enable the 'Run after programming' option.
Source: UM2237, page 28
0
votes
STM32 timer triggers interrupt immediately aftern CR1->CEN first enable
Thank you very much! I got a similar Problem on the STM32F407... The Solution here was to first write the ARR, PSC & CNT-values and then set the UG-Bit in the EGR-Register and immediatly ...
4
votes
What makes a MCU capable of higher temps than another?
They're probably the same except the testing limits for the higher temperature version would be tighter since they have to allow for more change in order to guarantee proper operation at the higher ...
3
votes
What makes a MCU capable of higher temps than another?
We probably can't know for sure for any particular device, short of the manufacturer saying so*. But it is common industry practice that a given chip design is tested for different parameters (...
2
votes
BMS-Battery System
B- is connected to the GND of the BMS
BMS ground should be connected to your MCU ground, directly, in parallel to the data lines. Chances are: a ground connector is already part of the data
By adding ...
1
vote
Accepted
Does DDR3 master clock need to be longest trace in general?
Section 3.4 PHY tuning of AN5168 How to configure DDR on STM32MP1 MPUs contains:
It is expected that the DQ and DQS from all byte lanes arrive at DDRPHYC well aligned. The recommendations provided in ...
2
votes
Accepted
Treating an STM32 MCU's unused pins and reset state
The answer is in the data sheet page 62.
It says to avoid current consumption of floating IO pins, they must be configured as analog pins, or forced to some value by using internal pull-ups or pull-...
0
votes
Treating an STM32 MCU's unused pins and reset state
In the case of GPIOs if you want to be sure you know the state of each, you can assign them an internal pull up/down resistor. External components are not needed, the MCU has an internal function to ...
0
votes
Accepted
How to send large quantities of data via HID
So, Justme's answer got me going, and then after some more research using the information that Justme had provided, I settled on using a feature report. I believe that it is the simplest and easiest ...
3
votes
How to send large quantities of data via HID
The obvious answer is, send large quantities of data in small packets, by defining a protocol for how to transfer it.
How to e.g. split 20 KB of data into packets containing e.g. 32 bytes each in ...
0
votes
STM32L432KC Timer interrupt only triggers once
I kept pausing during debugging to check where it was and it would end up in a HAL delay which I assumed was from the HAL_delay function in the main infinite loop but apparently NoteRequest never ...
3
votes
Is the wiring of this STM32 minimal system acceptable?
I'd call the differences between the top and bottom half routing rather cosmetical and irrelevant.
What matters here would be two things:
Conceptional fitness for your purpose
Signal quality and EMI ...
1
vote
STM32F0xx UID decoding
My question is how x and y coordinates are encoded
You don't actually care how they are encoded. They are just a source of unique bits. You take the whole Uid and ...
1
vote
Stop Mode 2 (deep sleep) doesn't work with STM32l053R8T6 MCU
It's probably that you did not enable debugging in low power modes.
In STM32IDE, it's a simple setting (put enable in Configurations->Debugger->Device Settings->Debug in low power modes
For ...
0
votes
custom PCB design for UART-TTL to STM32
If you want to interface TTL-level UART signals to the STM32, you can connect them directly to the STM32's UART RX and TX pins.
If you have RS-232 level signals you will need an RS-232<->TTL ...
2
votes
custom PCB design for UART-TTL to STM32
Yes there are many errors.
First error is that the chip does not even have USB data wires connected to the connector, and there is not even a single bypass capacitor for the supplies.
Just look at the ...
0
votes
Accepted
PCB design review (Altium)
The quality of the schematics image is not great, therefore I can't read part numbers, but:
Check that there is no required pull-up on NRST.
All the part on the same side is easier to build.
Check ...
0
votes
Accepted
Efficient Padding for UART to Minimize Power Consumption
Generic logic pins today are CMOS type.
The MCU output will drive very close to GND/VCC, with a Thevenin equivalent resistance in the 30-70Ω range -- what range exactly depends on state (typically, ...
1
vote
Efficient Padding for UART to Minimize Power Consumption
It is likely that there is no detectable difference regarding what you transmit from the UART point of view.
Sending 0xFF or 0x00 has equal amount of data transitions anyway.
Unless you know that your ...
0
votes
BLDC DR8305 design 42A
Is current sensing necessary
The data sheet tells you why you might want to use current sensing: -
...
3
votes
LED without resistor?
While it’s technically possible to connect the LED directly to the STM32 output pin without a current-limiting resistor, I recommend using a resistor for safety and reliability.
LEDs are current-...
0
votes
Problem with STM32MP1 SPI using DMA
The following solved the problem:
__HAL_RCC_SPI5_FORCE_RESET();
__HAL_RCC_SPI5_RELEASE_RESET();
__HAL_RCC_DMA2_FORCE_RESET();
__HAL_RCC_DMA2_RELEASE_RESET();
0
votes
Accepted
STM32H7 JPEG encoding with DMA leaves empty space
After carefully reading the manual and the examples provided by ST I came to the conclusion that I was not performing the JPEG encoding operation correctly.
The raw RGB pixels must first be converted ...
1
vote
How to pass a pointer to multiple functions
I don't see anywhere in the code where a pointer is required. Just use a global variable.
Global variables (or pointers) can already be accessed inside of functions. You don't need to pass an ...
0
votes
What is the real transmission speed in UART?
Your desired communication speed have to meet equation from 53.5.7 USART baud rate generation in Reference manual.
Baudrate = USART_kernel_clock / USARTDIV
where USARTDIV is integer and must be higher ...
0
votes
STM32F103 can I connect the BOOT0 pin to a second input pin so I can re-use the line?
The BOOT0 pin is an input.
If you want, you can connect the output of another MCU to multiple input pins on the sub-MCU, such as BOOT0 and most GPIO pins.
3
votes
Accepted
Is this driver burnt?
No, from the bottom side of a board you can't tell that (unless there's scorch marks or similar, which at least makes damage likely). The white residue is flux, and unproblematic.
I don't see any ...
Top 50 recent answers are included
Related Tags
stm32 × 5579microcontroller × 936
c × 363
arm × 337
embedded × 331
adc × 301
uart × 299
spi × 270
stm32cubemx × 252
timer × 227
i2c × 207
dma × 204
usb × 201
interrupts × 201
hal-library × 152
pwm × 146
st-link × 140
gpio × 132
nucleo × 128
flash × 127
keil × 104
bootloader × 101
can × 97
clock × 94
arduino × 86