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
1
vote
0answers
10 views

STM32 SWO & OpenOCD with Variable SysClock

I have been using SWO with STM32 chips for debugging for a number of years. I have managed to side-step this issue until now. I would like to be able to use SWO for debugging while varying the ...
0
votes
0answers
9 views

Interfacing STM32F103C8T6 Board with tf card module in Arduino IDE

I have an stm32f103c medium density board. I recently got an a tf card reader module for arduino. I am unable to interface the card reader with stm32. The module works just fine with my arduino nano. ...
0
votes
1answer
23 views

Why Nucleo-STM32G474RE HAL_GPIO_ReadPin returns wrong value?

I am using the on board user button, which is connected to the port C13 and has an external pull up resistor. The HAL_GPIO_ReadPin function returns 0 when the button is not pressed and returns 1 when ...
0
votes
0answers
18 views

CubeIDE firmware missing?

When I start a new STM32 project, I chose Nucleo F030R8 board, type in project name and click "Finish", the program downloads and unzips required firmware, but then I get the following error message: ...
0
votes
2answers
40 views

Detect IDLE status of SPI protocol under STM32

I need to know the start and stop of SPI transmission under STM32 MCUs. In my project, I send 10bytes(array) and the receiver puts them into its array. If the receiver joins with a delay, it might ...
0
votes
0answers
30 views

STM32f107 SPI in receving mode

I configure my STM to receive data from SPI. The data/CLK are available on MOSI, CLK pins (checked by oscilloscope) but I received 0 value. what is my mistake? ...
0
votes
1answer
54 views

Flash memory to hold flags

I'm trying to write bootloader code and I needed to be able to use an address in flash memory as a flag to the bootloader to let it know if it should enter bootloader or the application. I'm able to ...
0
votes
1answer
23 views

Problems with interfacing Nucleo-F446RE and ADF4153 via SPI

I am trying to interface with a ADF4153 device via SPI, the problem is that the ADF4153 is not responding. I expect the problem is with the SPI connection. The pin connections are as follows; MOSI -> ...
0
votes
0answers
21 views

Piconet with STM32's BlueNRG 2 Development Kit

I would like to develop a piconet using STM32 BluenRG 2 development kit by setting up one master device and multiple slave devices. Every slave is connected to an analog sensor and the master should ...
0
votes
1answer
78 views

STM32 standby mode power consumption is too high

I'm experimenting with standby mode on STM32F407VGT6. I know how to put MCU into standby mode(or I think to know that). I'm doing that with this init function: ...
-1
votes
0answers
78 views

Simulating a protocl such as SPI on STM

I need to receive 42bits by sending 42 pulses such as SPI protocol but without any interruption between each byte (it mean by sending each pulse on CLK data I receive a bit from data pin). I checked ...
1
vote
1answer
61 views

CMSIS without HAL

Is it possible to create a project in System Workbench for STM32 with CMSIS but without HAL library? My target microcontroller is STM32L053R8 on a Nucleo board. When I create a with HAL and delete all ...
0
votes
3answers
76 views

Proper way to turn off PWM channel on STM32

I am using STM32F4 to drive a 3 phase BLDC motor and i'm using TIM1 peripheral to generate 6-step PWM(complementary pwm) but when i change the configuration and i disable 1 channel it takes some time ...
0
votes
0answers
32 views

B-L072 Discovery STM32 Board - DFU Mode

I am seeking to activate the DFU mode in the B-L072 Discovery Module using the Murata CMWX1ZZABZ-091 module. https://www.st.com/resource/en/user_manual/dm00329995.pdf I have kept BOOT0 pin to HIGH ...
0
votes
2answers
46 views

STM32f103 and St-link

I designed this circuit on PCB (ARM:STM32f103) My crystal freq is 25Mhz. After connecting st-link in Keil I got this error: Invalid ROM Table ST-Link However, after changing the crystal value to ...
1
vote
1answer
38 views

9V 1A adapter and 2*3.7V battery IRF9630 produce sound and gets very hot 9V battery not (metal detector)?

I am not an expert at electronics.I am trying to build a pulse induction metal detector. I have this circuit from that Book I am using it with stm 32 blue pill but I have to stabilize the 9v supply ...
0
votes
1answer
36 views

Difference between I2C STM32 HAL functions

I'm using I2C in a project on STM32, and i was wondering what's the difference between HAL_I2C_Master_Transmit and HAL_I2C_mem_write, and the difference between HAL_I2C_Master_Receive and ...
1
vote
1answer
49 views

STM32 dynamically change PWM compare value

I have set up stm32 timer to work as PWM to control the servo drive. The control code looks like this: ...
0
votes
1answer
17 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
71 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
88 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
42 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
20 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
32 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
46 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
71 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
44 views

STM32F411 - Timer interrupt not firing

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

ask-measure and determine power line phase on 2 different places wirelessly

I want to measure 1 of the 3 phases on a power line which is around 100 meters away from the source and match it with source's phase and determine which phase it is (R,S,or T) wirelessly assuming that ...
0
votes
2answers
38 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
23 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
56 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
24 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
71 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
55 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
39 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
46 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
29 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
74 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
40 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
63 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
34 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
792 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
48 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
48 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
31 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
70 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
29 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
51 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 ...

1 2 3 4 5 55