New answers tagged

0 votes

Reading ADC value on a button press

As an informational commentary on the keypad design in the question I wanted to indicate that there could be some issues to deal with. I made a spreadsheet to calculate the nominal switch detect ...
user avatar
0 votes

Reading ADC value on a button press

The STM32F407 ADC has an analog watchdog mode that generates an interrupt when a set threshold is crossed. You can use that to detect change from idle state to a button press. You can also stop using ...
user avatar
  • 87.4k
0 votes
Accepted

Using a FDCAN controller with a CAN transciever on the STM32 platform (G431KB)

The solution was to simply set the correct timings. In case anyone else comes across this thread, you can use http://www.bittiming.can-wiki.info/ for CAN messages and https://www.kvaser.com/support/...
user avatar
5 votes

Voltage regulator consume more current

The LP3961 has a typical quiescent current of 3 mA in normal operation. Look for another linear regulator or find a way to shutdown/enable the LP3961.
user avatar
  • 1,578
0 votes

STM32F401 failed the search for probes ensure that the usb drivers are installed

Have reached this same error after I wrote a program to Transmit "Hello World" via LPUART1 on Nucleo-G431RB. Error message from IAR EWARM Nucleo Board's LPUART1 pins are shared with built-...
user avatar
0 votes

i2c oled display problem with STM32F401RE Nucleo Board

...
user avatar
0 votes

Ebyte E32 RF Module Configuration Problem

Check AUX goes low indicating self-test on power on reset (POR). Get UART working. Ensure signals from Radio : Tx, Aux go to Vdd or add pull-up 4k
user avatar
10 votes
Accepted

Difference between open drain and push-pull modes

Open-drain depends on a pullup resistor to provide the high state, while the low state is actively created by a transistor. So the pullup network has relatively high impedance to VDD and very low ...
user avatar
  • 4,995
0 votes
Accepted

How can I control an ESC with an STM32F303K8

Easiest way to do is to use rc servo signal similar to throttling signal from receiver. For more advance protocol like D-Shot, Multi-shot there are no library for that yet. You need to generate ...
user avatar
  • 952
6 votes

Smooth wave plotting using 3 inch thermal printer

Without reading the datasheet, it is obvious from these lines that you operate on a number of bits: ...
user avatar
  • 12.7k
1 vote

Using MDMA for buffer manipulation on STM32H743vit

The random number generator only supports interrupts, so has no mechanism to signal to any DMA controller when a new value is available. One way to do it is of course to set up a timer to generate DMA ...
user avatar
  • 87.4k
0 votes

STM32L496 ADC with HAL and DMA: only one byte updated in results buffer

I was having a similar issue, I was able to fix it by setting DMA Continuous Requests to Enabled.
user avatar
1 vote

Cannot configure timer to 10µs on STM32F401 device

I got my solution: there wasn't any problem with the initialization. The problem was that in the stm32f4 series and beyond, you have to set freeze bits in the DBGMCU_APB1_FZ register. This is used if ...
user avatar
0 votes

Cannot configure timer to 10µs on STM32F401 device

According to the screenshot you provided, your TIM3 clock frequency is 84 MHz, as it's connected to APB1. (see "APB1 Timer clocks" box) By default, timers continue to run even when your code ...
user avatar
  • 1,132
1 vote
Accepted

USART stop bit not pulled high during nRF update

The problem was the clock setting (low accuracy clock was used probably) solution is here: https://devzone.nordicsemi.com/f/nordic-q-a/87580/issue-with-updating-nrf52832-over-usart ...
user avatar
4 votes
Accepted

ADC doesn't start from 0V

1M\$\Omega\$ is too high for the on-chip ADC source impedance (it depends on how you are using the ADC, and the information is in the MCU datasheet, I'm not going to evaluate how you are using it, ...
user avatar
1 vote

Measuring capacitance with STM32

In order to use measure capacitance and inductance we use AC sources. Emulate a AC sine source using the microcontroller , make a Sauty bridge then feed the differential input of the Sauty bridge to ...
user avatar
1 vote

Measuring capacitance with STM32

The proper way to measure capacitance is with a constant current or by impedance ratios at some frequency. Consider the timer method. Use two threshold voltages, (one could be 0V) with a difference ...
user avatar
4 votes

Measuring capacitance with STM32

You have the GPIO going to the capacitor through a 1 Meg resistor, and then you've connected the ADC input to it. What is the impedance of the ADC input? If I read the datasheet correctly it is 50 k. ...
user avatar
  • 3,642
0 votes

Reading MPU6050 with Nucleo-32, Arduino IDE

Regarding the pinout, you need to check the datasheet of the board: https://www.st.com/resource/en/user_manual/dm00231744-stm32-nucleo32-boards-mb1180-stmicroelectronics.pdf As written on page 25, you ...
user avatar
2 votes
Accepted

STM32H743 MDMA can't access APB2

The big reason the DMA isn't transferring is that it isn't actually connected to the peripheral. In most Cortex implementations I've seen, there are multiple memory buses. The ST implementation isn't ...
user avatar
  • 2,351
1 vote

Offset in creating delay between two PWM in STM32 board

I have a hardware solution, but you need to use TIM3 or TIM4 instead of TIM6. Timers can be configured to trigger each other on specific events. Here, both TIM1 & TIM2 are configured in [Slave ...
user avatar
  • 1,132
0 votes

STM32 FMC minimum clock

It makes little sense to put a device with such a slow bus on the FMC. You likely will write multiple bytes sequentially, which makes the whole system to pend on a write until FSMC bus operation is ...
user avatar
  • 87.4k
1 vote

Offset in creating delay between two PWM in STM32 board

This could be caused by a difference between the two timers being used. Timer 1 has break inputs. Timer 2 has not. And because of that I think the call to ...
user avatar
  • 16.2k
0 votes

"Could Not Verify ST Device" when flashing STM32H747XIH6 over SEGGER J-link within STM32CubeIDE

The debug probe is trying to access memory (0x23000FD0) that is out-of-bounds. Check your project/debugging toolchain configuration. You probably specified the ...
user avatar
  • 1,084
0 votes

Does the frequency of APB1 on stm32f4 have to stay at 42 MHz?

You can basically make the clocks do whatever you like within their limits. However, changing the clocks has an effect on all attached peripherals an it looks like UART 2,3,4 an 5 are connected to ...
user avatar
  • 20.4k
4 votes

Problems increasing VCO frequency above datasheet recommendations

Is it safe? No, it is not. If it is a hobby project run on your desk - you can experiment. But if you want to put it into the drone - never do it. In commercial projects - never do it. One of my ...
user avatar
  • 2,279
7 votes

Problems increasing VCO frequency above datasheet recommendations

Well, 720 MHz is 66% over the 432 MHz limit so highly unlikely it will work. As you have correctly calculated, you can achieve 168 MHz as the highest core clock when 48 MHz USB clock is required. That ...
user avatar
  • 87.4k
3 votes
Accepted

STM32) Why DMA can't approach global variable?

Your compiler/linker is placing your dst_buffer into the RAM section at 0x20000000. If you check the STM32H7 family reference ...
user avatar
  • 13.2k
1 vote

Using quadrature encoder with STM32 MCU

I would use (along with smaller debounce capacitors) a Schmidt trigger circuit to connect with the counters on each leg A and B. It will remove the pesky noise without crazy amounts of capacitance. ...
user avatar

Top 50 recent answers are included