Skip to main content

New answers tagged

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 << ...
Voltage Spike's user avatar
  • 84.8k
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....
Justme's user avatar
  • 159k
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
Voltage Spike's user avatar
  • 84.8k
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 ...
Marcus Müller's user avatar
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 ...
RussellH's user avatar
  • 16.9k
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
Velvet's user avatar
  • 4,501
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 ...
Tom's user avatar
  • 1
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 ...
Spehro Pefhany's user avatar
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 (...
Tim Williams's user avatar
  • 39.6k
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 ...
Marcus Müller's user avatar
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 ...
Chester Gillon's user avatar
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-...
Justme's user avatar
  • 159k
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 ...
Ralph's user avatar
  • 3,604
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 ...
YANNTASTIC5915's user avatar
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 ...
Justme's user avatar
  • 159k
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 ...
kefecik's user avatar
  • 11
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 ...
Marcus Müller's user avatar
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 ...
Kuba hasn't forgotten Monica's user avatar
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 ...
bananeeg's user avatar
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 ...
Peter Bennett's user avatar
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 ...
Justme's user avatar
  • 159k
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 ...
Blup1980's user avatar
  • 6,481
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, ...
Tim Williams's user avatar
  • 39.6k
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 ...
Justme's user avatar
  • 159k
0 votes

BLDC DR8305 design 42A

Is current sensing necessary The data sheet tells you why you might want to use current sensing: - ...
Andy aka's user avatar
  • 465k
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-...
MJerjawi's user avatar
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();
Fábio Silva's user avatar
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 ...
Meruje's user avatar
  • 103
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 ...
Drew's user avatar
  • 7,119
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 ...
Michal Dudka's user avatar
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.
Justme's user avatar
  • 159k
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 ...
Marcus Müller's user avatar

Top 50 recent answers are included