Questions tagged [stm32]

The STM32 is the third ARM family by STMicroelectronics. It follows their earlier STR9 family based on the ARM9E core, and STR7 family based on the ARM7TDMI core. The STM32 is based on the ARM Cortex-M family of cores.

Filter by
Sorted by
Tagged with
0
votes
1answer
24 views

STM32F103VET6 and CH340G

I have a problem with my PCB. I recieved it a few days ago and it is already completly presoldered. If i connect it via USB-TYPE B to my pc it is showing me nothing in device menager.... The CH340G ...
0
votes
0answers
28 views

produce timer counter with 10 nanosecend duration in stm32F7

I want to set timer counetr every 10 nanosecend and finaly use that as delay to toggle GPIO in stm 32f7. I use external clock and use pll to produce 200 mhz clock to TIM1. this timer counter set to ...
1
vote
1answer
41 views

STM32L0x1 incorrect temperature reading

I'm having trouble reading the temperature, its values are incorrect. The temperature in the room is 22C and the temperature of the sensor shows 55C (selfheating and the measurement error cannot be ...
0
votes
0answers
21 views

stm32f4 bootloader and vector table relocation

I have implemented bootloader but for some reason any interrupt which occurs after jump to application leads to unhandled exception function. Here is my setup: Bootloader is placed at 0x08000000. ...
1
vote
0answers
42 views

STM32 NRST being held low

I am using an STM32F302C8T6 and ST-LINK v2. The MCU should normally be pulling NRST high through its weak pull-up resistor, however it's being held low somehow. This prevents me from being able to ...
0
votes
1answer
37 views

PN532 (SPI) how to get firmware version

I am trying to use PN532 for Mifare card reading on STM32F4. Before even trying to go forward I have tried to read firmware version to verify that all works ok and cannot do it. I am trying to base ...
1
vote
0answers
56 views

Why would an STM32 not execute its program after upload?

I am attempting to breadboard an STM32F401 using a 64-pin breakout board. I am able to both connect and upload my program successfully (via ST-LINK V2 SWD pins), but once uploaded, the program seizes ...
0
votes
1answer
28 views

How to use analog mode GPIO pin(not ADC input channel) for ADC?

I want to use a GPIO pin which is configured to be "Analog Mode" for ADC. I am working on STM32L073 series microcontroller. The pins with ADC input channels are used already. So I need to choose ...
4
votes
4answers
730 views

Need a method for synchronization of galvanically separated microcontrollers

I would like to get some ideas for my problem. I have a HW which has a main processing unit (Beaglebone, host controller) which is connected to four galvanically seperated STM32 microcontrollers. All ...
0
votes
1answer
41 views

STM32F4 :USB Mass Storage Write Low Speed Using FATFS Library

I am using fatfs library developed by http://elm-chan.org/ for reading/writing file system in usb mass storage using stm32f4.As I know, for improving speed throughput one should write data buffer in a ...
0
votes
0answers
28 views

STM32H747I debugging problem

I just got a STM32H747I-DISCO board. When I try to debug it and load the code to it by using its internal ST-Link and STM32Cube IDE. It says : Break at address "0xa05f0000" with no debug information ...
0
votes
0answers
27 views

Why should one ever have to perform Connect Under Reset on STM32?

As in the title - why does it happen and why does it seem pretty random that sometimes the debugger losts the connection to MCU and a CUR must be performed? Is it because SWD pins get blocked somehow ...
0
votes
0answers
64 views

STM32L151 - ADC is too slow

I want to measure water conductivity at the alternating current, so i set two pins to vcc and gnd, wait some time, measure some points, toggle the pins, wait, measure etc. Manuals say the ADC should ...
0
votes
0answers
28 views

Core stucks in blocking handler STM32F103C8T6 libopencm3

I have problem with my STM and the libopencm3. After the reset handler is called, there is immediately jump into blocking handler. I suppose that the hard fault occurs. Here is the call stack: <...
0
votes
1answer
49 views

STM32 Bootloader config. and datasheet discrepency

I have 4 quick questions regarding the bootloader/programming the STM32L0 chip series. Q1&2 I'm considering a STM32 project coming from ATMEGA chips. From my understanding, the chips come with a ...
0
votes
1answer
65 views

Notch filter on STM32 Microcontrollers

I need implement real time notch filter to 50 HZ powerline noise My MCU is stm32h753bi , how to do that? is it rationale to do that in MCU or I should that on PC side? thank you
0
votes
0answers
28 views

stm32 timer synchronization between output compare and timer interrupt

I need to have timer output compare synchronized with timer global interrupt ,they start separately with two lines below HAL_TIM_OC_Start(&htim3,TIM_CHANNEL_2); HAL_TIM_Base_Start_IT(&htim3);...
0
votes
1answer
34 views

STM32F7 Spurious I2C interrupt

I have a STM32F769NI, Cortex M7, using FreeRTOS, debugging using a JLINK inside of Rowley CrossStudio. The issue at hand is no flag interrupt cause. I2C3->ISR = 0x8000 which is the TXE flag, and I ...
-3
votes
0answers
62 views

How to generate a periodic signal?

I want to generate a signal like this one: My first idea was to generate a PWM with different duty cycle and different frequency but I don't really know how to do it with STM32F1. Is that a good way, ...
0
votes
1answer
69 views

How to program a fake stm32f103c6?

I bought a blue pill that I tried to program using STLink on CubeMX IDE. I got this: Warn : UNEXPECTED idcode: 0x2ba01477 Error: expected 1 of 1: 0x1ba01477 I checked on the internet and I ...
0
votes
1answer
20 views

High output of NCP5104 (half bridge driver) is active in dead time zone. How can I solve it?

I try to drive BLDC motor. I have a problem in gate driver circuit. I use three NCP5104 gate driver. NCP5104 has 520ns internally fixed dead time. "The dead time is the time between the high side and ...
0
votes
1answer
39 views

Can I send an SSH command via Nucleo Board?

I'm in a very embryonal phase of my project, so I'm just putting the pillar on possible solutions. I'd like to have an opinion or suggestion by experts about this question: For the above-mentioned ...
0
votes
0answers
33 views

How to transmit the data from the buffer filled with ADC values through DMA on STM32F7

I am currently trying to a sample a signal between 25-40kHz with three microphones to calculate the time difference. I'm having difficulites understanding what to do after the ADC is activated and ...
0
votes
1answer
79 views

STM32F072C8T7 needs hardware reset upon power on to work!

When the device is connected to the ST_LINK, after firmware upload, it works perfectly fine. When I remove the ST_Link and then turn OFF and ON my device, it does not work, unless I initiate a hard ...
1
vote
1answer
54 views

The MOSI pin of SPI1 on STM32L073 is not giving output without pull-up resistor

I am working on SPI communication with STM32L073. I download the example program of ST to MCU but SPI1 did not work. So I looked at the SCK pin of MCU with oscilloscope and it works fine. But when I ...
1
vote
1answer
28 views

How to Receive STM32 UART echo command using HAL libraries?

I am using a STM32L Discovery board (monted device STM32L476xx), for a transmit and receive UART operation using HAL libraries. I am using a FTDI chip for serial to usb conversion as I am unable to ...
0
votes
0answers
28 views

How to configure an STM32 development board (MB1355C) to program external devices?

I have an STM32WB55 nucleo pack comprising a main board (MB1355C) and a USB dongle (MB1293C). I am able to program the main ...
0
votes
0answers
40 views

STM32CUBEIDE Clock configuration for USART

My MCU is STM32F072C8T7 and I am using the STM32CUBEIDE to initialize the peripherals and the clock configuration. In the clock configuration option (attached below), I can see the clock settings ...
0
votes
1answer
45 views

Current Transformer noise in idle state

[ *Violet is the bias voltage. Yellow is the CT output. You can see it drifting from bias volt a little. * I want to build a power measurement circuit using STM32F407. I am using LM324N opamp for the ...
0
votes
0answers
23 views

Order of disabling in `HAL_TIM_IC_Stop_DMA` function -STM32 HAL library-

Here is the function body of HAL_TIM_IC_Stop_DMA: ...
-1
votes
3answers
55 views

How is a Rising Edge defined on STM32?

I'm playing with an STM32F0 and the datasheet clearly defines what a HIGH and LOW signal level is, but I can't find a definition for a Rising Edge. Is it required to go from "LOW" to "HIGH"? I assume ...
0
votes
2answers
62 views

What is the pin mapping when we use an ADC in micro STM32F401?

If we wanted to capture continuous data and map it to a digital value we must use ADCs. But there is a problem. If we set multiple pins as analog inputs, what are the channels corresponding to each ...
0
votes
1answer
84 views

stm32f103 I2C Bare Metal Programming Question

I am trying to send a simple data from STM32f103 to another one. But I am having trouble with my code. I have been working on it since 2 weeks and I couldn't find any solution. I am using PROTEUS to ...
1
vote
1answer
46 views

STM Cortex M7 memory map

I suppose this is simple one, but for me as first time reader of STM32F769 datasheet it is confusing. Memory map in this datasheet declares ITCM RAM at zero address, while this programming manual (pg. ...
0
votes
1answer
26 views

Cannot initialize LPUART1 in STM32CubeIDE on b-l072z-lrwan1?

I was having a problem about initializing the LPUART1 on b-l072z-lrwan1 using the built-in CubeMX code generation in STM32CubeIDE. The problem was when I started debugging, the code seemed to run ...
0
votes
1answer
39 views

STM32F042K6U6 BOOT0 pin? Can not understand how to program it with DFU mode

I'm planning out a board and trying to make sure of how to go into DFU mode and the actual program on a STM32F042K6U6. I want to use the K6U6 for the small size, which also rules out using STLINK to ...
0
votes
1answer
34 views

Connect STM32F103 to MPU9250 over I2C with HAL (ERROR)

my experience in programming MCU is only Arduino (also STM32F103 over Arduino) I have now started to use the STM32CUBEIDE and an ST-Link V2 to program my STM32f103. I have tried the functions: ...
-1
votes
0answers
46 views

Connecting an image sensor to an STM32F103 Blue Pill

I am curious if the Blue Pill can be used to pull images from this Image Sensor over its parallel interface? I have found sample code that uses the ESP32 module. The ESP32 uses an STM32F4 chip, so ...
0
votes
1answer
70 views

Routing signal and power lines using MCU

I got an MCU (STM32F103C8T6) and a special device The device has 2 main lines of interest: ID and VCC. The VCC is 3V3 tolerant and takes around 100-250 mA depending on mode. And ID is used for ...
0
votes
1answer
46 views

STM32 ADC continue mode

I am using STM32F030F4P6 when I call this Function my ADC starts successfully and I can read ADC value in ADC callback but my MCU hangs at this function line what is the problem? My code is generated ...
0
votes
1answer
49 views

AC dimming with STM32 timers

I'm using an STM32 for AC dimming, for which I use a GPIO output (or timer channel out) to drive a triac, whenever I get a zero crossing detection (rising edge). Is there a way to solve this only ...
1
vote
0answers
51 views

STM32 standard method for remote firmware update

My question is about a special case for Bootloader sequence for The Discovery kit for STM32F0 series with STM32F072RBT6 MCU that we currently have implemented in some of our products in the field. I ...
0
votes
0answers
55 views

STM32 - HAL SPI receive interrupt not entering EXTI callback

I designed a breakout board for the STM32F401CEU6. (Schematic attached) I am using it to receive data from an ADC chip over SPI. The ADC chip has a data ready output which should be used as an ...
1
vote
1answer
32 views

STM32CubeIDE: Why does Serial Wire Viewer show Unknown Function?

I'm trying to use the STM32CubeIDE's Serial Wire Viever Statistical Profiling tool. The problem I face with is that the result table does not show all functions visited. I, especially, want to see the ...
0
votes
1answer
89 views

Stand-alone flashing of STM32

I'm developing a fixture tool to test a custom PCB with ST Bluenrg1 (STM32 M0 core + bluetooth). This fixture tool has its own MCU working at 5V. I would like to flash automatically first previous ...
0
votes
0answers
38 views

STM32duino can't detect MPU6050

I'm currently trying to read values from an MPU6050 using an STM32duino, but using an I2C scanner code, the STM32 can't detect the sensor. I've checked all the connections using an avometer and it all ...
0
votes
0answers
49 views

PPS Timer on STM32

The MCU used is a STM32F042 which is clocked by an OCXO oscillator (Abracon 10 MHz - 20 ppb). The subject of this thread is to get the best accuracy on one PPS Timer. For my application, I need to ...
0
votes
0answers
33 views

stm32 SPI and UART not working together

I am using an stm32f042k6 - Nucleo Board. I am using SPI and UART in non - blocking mode initialized through Cube-MX. I am trying to interface an RPI through SPI1 and a BMS through USART1. SPI1 is ...
0
votes
1answer
72 views

using ANSI C libraries for STM32 programs

In the internet, I often find examples of the source codes for programming STM32 MCUs at register-level. Strangely, some of those source codes include "#include < stdint.h >". In general, is it ...
0
votes
0answers
142 views

STM32 ADC over DMA Continuous Mode Too Greedy

I am trying to read ADC data via DMA on an STM32F412. The reading itself works fine but the rest of the program is not executed anymore so it's killed by the watchdog soon. I have an array of size 50 ...