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
21 views

Initialize IWDG with two difference handles

I am implementing a watchdog in my project, where i am using a IWDG in STM32F4 series controller. I am trying to initialize the watchdog twice with different handles, since it is implemented in two ...
0
votes
1answer
97 views

STM32 Custom Bootloader Jump to Application

I wrote a custom bootloader for the STM32F4 microcontroller and I'm able to write an application to the flash memory at the address of 0x08008000. The issue I have is when I use the jump function the ...
-1
votes
1answer
111 views

How to set up SPI Communication between STM32F401REtx and MCP2515

master-STM32F401REtx (stm32 nucleo) slave - MCP2515 i connected mcp2515 with ** 1.crystal oscillator (20Mhz + two 15pf external capacitors) 2.power supply(3.3 v0lts) with a bypass capacitor(...
0
votes
1answer
52 views

Accessing MCP4451 Digital Pot with STM32 using HAL for i2c?

I am using an STM32 NUCLEO-F042K6 dev board to interact with a MCP4451 digital pot. I want to be able to adjust the wiper values through i2c. I am using the STM32CubeIDE and the HAL library to ...
0
votes
0answers
22 views

How to configure bq25700a (charger ic) in stm32cubeIDE

I am trying to do communication between Charger IC(BQ25700A) and STM32 controller by using I2C communication protocol.For taking the status of charging/discharging current of battery from charger ic,i ...
0
votes
1answer
35 views

Having problem in blinking the LED on Nucleo-L073 board, through HAL library

Could you please advice me where I make the mistake, the LED is on but it does not blink. ...
1
vote
0answers
51 views

Different library for STM32 without interrupt, with interrupt or DMA?

I am an OO programmer, and since some time I'm spending time (as a hobby) with an STM32. For a hobby project I'm using a shift register (74HC595), and LCD. For both I wrote a class to easily ...
0
votes
2answers
83 views

Reading a negative and positive voltage from an STM32F4 ADC

I'm working on an application which requires me to read a curve on an analogue signal. Depending on external influence the curve could either be a negative voltage or positive voltage. The shape of ...
23
votes
3answers
4k views

UART signal is “rounded”

I am trying to debug a UART driver for the STM32F405. It does not work above a certain baud rate (about 50 kBd). I connected it to a logic analyzer with analog capability, and I saw that the signal is ...
0
votes
1answer
50 views

STM32F411 - Timer interrupt not firing

I setup TIM3 on my STM32F411 using the following code: ...
0
votes
2answers
50 views

Can I re-use pins that are labeled as the same physical STM32G4 Nucleo pin?

Poorly written question. Let me elaborate. The Nucleo-32 board I'm developing (STM32G431KB) in STM32CubeIDE shows on the CubeMX "pinout view" that there are 4 distinct pins ...
0
votes
1answer
40 views

Embedded Development Support plugin does not generate CMake files in CLion on Ubuntu 19.10

I can build, run and debug my old projects. But when I try to import new STM32CubeMX project, nothing happens. No CMakeLists.txt file created. Pressing '...
0
votes
1answer
65 views

How accurate are the crystals on ST's Nucleo boards?

I got myself a cheap ST Nucleo-L053R8 on discount, to play around with a couple ideas. The main STM32L053R8 only has a low-frequency 32.768 kHz crystal for RTC, but it can also be provided with an 8 ...
0
votes
1answer
26 views

STM32 f401re power issue?

I get the following error when I try and upload code Error in initializing ST-LINK device. Reason: No device found on target. The voltage is across VCAP1 is 0 which I find a bit odd. I have ...
0
votes
1answer
97 views

74HC14 for debouncing: output is too low with Vcc=3.3V

I'm trying to make a keypad for STM32 MCU using a 74HC14D.653 for debouncing. Datasheet says that it can be fed with 3.3V Vcc so I will not have to make level-shifting between it and MCU. The circuit ...
0
votes
0answers
16 views

OpenOCD Interpreter Flag

I'm using OpenOCD and GDB to program an STM32 processor. I'm planning to programatically interface with the GDB server that OpenOCD runs using a Python library: pygdbmi. The library states: To ...
0
votes
0answers
58 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
41 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
48 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
48 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
1answer
114 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
66 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
73 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
37 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
808 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
78 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
71 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
33 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
73 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
34 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
58 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
88 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
58 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
38 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 ...
0
votes
1answer
209 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
21 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
59 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
44 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
81 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
67 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
85 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
52 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
66 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
50 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
27 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
75 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
65 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
140 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
53 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
61 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 ...

1 2
3
4 5
56