Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
44 views

timer interrupt on STM32F303

I'm kind of a newbie so excuse me if this is a beginner's question. tried to find an answer but couldn't find one. I'm working on STM32f3Discovery eval board, with the stm32f303vc on it. The code ...
0
votes
0answers
22 views

Playback log files in can bus

I'm using MCP2515 CAN Bus controller and I'm connecting between two boards successfully. I have bough a can bus analyzer Ksaver, which allows to playback log files. I connect the logic analyzer DB9 ...
0
votes
0answers
24 views

Flash and debug of multiple STM32 in JTAG with J-LINK

I have a board where 3 STM32 are connected to a JTAG port. The 3 STM32 are daisy chained. I am using a JLINK EDU Mini with Atollic TrueStudio IDE. One STM32F746 is a master for the two slaves ...
0
votes
2answers
57 views

Exceeding voltage on STM32 Vbat pin

I want to power STM32F429 Vbat pin with an existing Lithium Ion battery on board. However, the maximum voltage on the discharging curve of this battery is 4.2v which is above the maximum operating ...
8
votes
2answers
440 views

Why are logically related bit fields in MCU registers often in separate locations?

Forgive me if this question has already been answered, but I was unable to find an answer either on this page or in the wider Internet. I'm an experienced developer with decent knowledge regarding ...
0
votes
1answer
41 views

STLink USB communication error when no board is connected

I'm new to using the ST-LINK, and I'm trying to isolate a connection problem, by checking if the ST-Link itself is working well with my computer. I connected the ST-LINK V2 by itself to a Windows 10 ...
-1
votes
0answers
45 views

STM32 SPI CRC polynominal must be even or odd number?

I used stm32cubemx for template generation. When I configure SPI in cube, it set CRC polynominal X1+X3 (1010 in decimal its 10 =) ). SPI use 16 bit length word and I think it polynominal not be ...
0
votes
0answers
21 views

stm32f103c8t6 program downloading

I got st link v2 mini usb driver and stm32f103c8t6. When I load a program from keil through st link v2 it says 'loading is OK' (programming pin connections are true) but PC13 led of stm32f103c8t6 is ...
1
vote
3answers
75 views

How to generate NACK on STM32F407

Is there a way to send a NACK on I2C on STM32F407? There is no way to do that using the HAL, and the datasheet says nothing about it.
0
votes
1answer
48 views

STM32 USB programming using the OTG interface [closed]

I'm new to ARM based STM32 controller. The Controller which I'm using STM32F427VIT6. It has USB OTG FS interface where I need to program it using the USB interface. Is it possible to program or I have ...
0
votes
1answer
31 views

FMPI2C on STM32F407

Is it possible to use Fast mode I2C on STM32F407 ? I looked everywhere for the I2CX pins GPIO but Can't find them at all.
0
votes
0answers
51 views

Interfacing A71CH with I2C

I'm trying to interface the following chip with STM32F4 https://www.nxp.com/docs/en/supporting-information/AN12207.pdf I'm currently trying to transmit a repeated start using hal sequential ...
4
votes
1answer
706 views

In an ADC, Does UART baud rate affect signal transmission even if they are stored and retrieved from memory? [closed]

If I'm using a NUCLEO-F401RE with ADC throughput rate greater than 2 MSPS and storing the value in an array/memory, will the UART baud rate affect transmission of the signals from memory? How are they ...
2
votes
0answers
49 views

STM32 read external FIFO through FSMC

I want to use FSMC of STM32F429 to read external FIFO implemented in an FPGA MAX10. Since no mode of FSMC can fit the FIFO interface precisely, I try to use the modified synchronous multiplexed PSRAM ...
0
votes
1answer
63 views

Why stm32 sends invalid data by spi?

Two boards: arduino nano and stmvldiscovery. Boards are connected by spi interface. Arduino is master device. Stm32vldiscovery is slave device. In the txBuf (transmit buffer) both board have the same ...
1
vote
0answers
42 views

I2C get stuck on busy with DMA interrupt

I'm trying to interface with NXP device using I2C. I'm initializing it that way ...
0
votes
2answers
73 views

How to choose UART maximum output speed?

When I open up a project in STM32CubeMX and configure a UART, there's a Maximum output speed configuration (under GPIO Settings) that defaults to Very High. The options are: Low Medium High Very High ...
1
vote
3answers
82 views

Questions on STM32 multiple GPIO names

I started designing the development board for STM32F427VIT6 of LQFP100 package. Its has multiple USART and UART pins. The USART names in the datasheets are USART1, USART2, USART3, UART4, UART5, ...
1
vote
1answer
76 views

STM32 skips UART frames after framing error

I am currently developing a DMX512 receiver with an STM32F767ZI. DMX512 is basically a protocol transmitting a byte array via RS485. In summary it works like this: > 92us low signal (called break) > ...
0
votes
0answers
32 views

Calling a function that uses HW_Delay inside timer interrupt

I have the following timer interrupt configuration ...
0
votes
3answers
138 views

stm32 - is there a factory reset?

for the past couple of months I have been developing software for a custom build board. Due to a non disclosure agreement i am not allowed to share the schematics , PCB layout or software of the board....
0
votes
0answers
15 views

atcab_get_pubkey Blocks the code until break point is set

I'm using the cryptoauthentiction lib from microship, and I'm trying to get a public key from it using the function in the code listing below. atcab_get_pubkey https://github.com/ALLTERCO/mongoose-...
0
votes
1answer
78 views

One led is blinking too frequently using the hardware timer (stm32f103vdh6)

i recently started my internship using embedded C and i'm having some trouble with one of the tasks: Two leds should be blinking at 1Hz, one using the hardware timer, and the other one using the RTX ...
0
votes
1answer
21 views

MultiByte data integrity with DMA on STM32F3

Despite low-pass hardware filters on ADC inputs I am having a lot of erratic readings. There are 8 single-ended channels in DMA sequence and it is configured for cyclic sampling. Sampling time is set ...
0
votes
1answer
44 views

stm32f407 isn't flashing

I'm having problems when I try to update programs in my STM32F407 discovery. It was working well until I tried to use the PA13 pin as an input in my program. I tried to update the program, it didn't ...
2
votes
0answers
61 views

How to implement multiple functions on single push button

I am using a STM32 Nucleo MCU and trying to pull a multi-function single-button method. I need a way to implement this form of functionality for a single push-button: Push 1: function 1 Push 2: ...
0
votes
2answers
82 views

How to design an STM32 board with UART over a USB connection?

Sorry if this seems a stupid question but I'm designing a custom PCB based on the STM32F303RE microcontroller and am slightly confused as to how the UART should be connected in the hardware in order ...
0
votes
0answers
46 views

STM32 USB Connection

I have a Nucleo f303re development board with support of ST's own USB Device library. Onboard USB port is for ST-LINK so I don't want to unplug its connections. So I tried to implement another USB ...
0
votes
1answer
75 views

Problem getting board to board I2C communication to work on STM32

I have two boards working on STM32F030R8 and F030C6 respectively. I have been trying to get the boards communicate with each other using I2C but so far, no good. One of my boards run at 48MHz and the ...
0
votes
1answer
36 views

How to query APB1 clock frequency?

I'm trying to query the current value of the APB1 clock frequency to input into a USART configuration. Ideally, I could just query whatever the USART2 clock source is on an STM32F302xx, in case I ...
0
votes
0answers
42 views

Can't use the Wake-on-Motion functionality of an MPU9250 with STM32

Hi there :) I'm trying to use the Wake-on-Motion functionality of this particular MEMS (MPU9250) with my STM32L152C-Discovery board: if the MPU9250 sense a motion, the INT pin will be high. To achieve ...
0
votes
0answers
27 views

LSM6DSM unreliable MISO unless disconnected

I'm having an issue with bringing up an ST IMU (LSM6DSM on an MKI189V1 eval board). I am using SPI to connect my host micro to the IMU and trying to read back the device ID. The issue I'm facing is ...
0
votes
0answers
22 views

Two KSZ8851SNL on STM32, working like a hub

https://www.microchip.com/forums/tt.aspx?forumid=173 Two KSZ8851SNL on STM32, working like a hub I have two KSZ8851SNL connected to an STM32H7 board. In a certain operating mode, I would like to ...
-2
votes
2answers
108 views

LCD display is garbled in between operations on STM32

I'm using a 16x2 LCD for a project on STM32F030R8. I wrote a library for interfacing and everything was working fine until recently. It displays garbled junk values in between operations, especially ...
0
votes
2answers
36 views

STM32 EXTI does not trigger interrupt

I am working on a device with a button that is supposed to turn it on (when pressed briefly) and off (when held longer). The MCU is an STM32L432. The button is connected to PB0. I want to use EXTI as ...
1
vote
1answer
53 views

Using the GPIOs of an STM32 Discovery board

I would like to start learning how to program an STM32, because of this I bought the STM32L152C Discovery board. It's a very nice board, full of goodies, but I would like to use just part of them: ...
0
votes
0answers
55 views

CAN bus bit timing STM32F7 (bxCAN)

I am struggling with a bit timing of CAN bus. Perhaps, someone will be able to explain me, how it actually works. There are two configurations of the CAN controller inside STM32 (bxCAN). The desired ...
0
votes
0answers
19 views

FSMC on STMF407xx [duplicate]

According to the datasheet and the picture .. Is That mean that I can interface an external SRAM of 256 MB and a NAND Flash of 512 MB as a maximum size ?
-1
votes
1answer
52 views

Supplying two IC within a circuit with different voltage range (1.8v to 3.6v) and ( 4v to 5v) with battery power [closed]

We are designing a circuit that has two ICs with different supply range. it will use micro batteries as supply unit. What is the efficient way to feed two ICs together and waste minimum energy. Of ...
0
votes
1answer
65 views

Microcontrollers (STM32) and GPIO with momentary buttons

I have six momentary buttons and an STM32 Discovery board. I want to check the button presses. As far as I understand, I create a continuous loop that will check each GPIO consecutively. (I am aware ...
0
votes
3answers
98 views

What code issues could persist past a reset? (STM32F103)

I have a project running off a Bluepill board (STM32F103C8T6) that ceases to function only after it runs for ~6 hours. Up to that point it behaves totally normally, and UART logs don't indicate ...
0
votes
1answer
34 views

Timer capture STM32

I have some questions about timer capture in the STM32. Is it possible to capture a digital signal? Like this: Actually, I'd like to know how many clock ticks between rising and falling edge, in ...
0
votes
1answer
58 views

STM32 interrupt from Matlab Code

I'm using the STM32 MAT plugin and embedded coder for Simulink to generate C-Code out of my models to compile them onto an STM32F4. As IDE I use TrueStudio and for my MCU Configuration I use CubeMX. ...
0
votes
0answers
180 views

STM32H7 SPI DMA

On STM32H7 I'm using DMA for SPI transfer. I use SPI1 and SPI4, both in D2 domain, together ...
1
vote
3answers
81 views

SPI and I2C connections by using mosfet (high side, low side)

I need to design sensors card in altium for sensors connected I2C and SPI. When I searched modules on internet, while some used mosfet to handle high and low side others did not use mosfets. I could ...
0
votes
2answers
54 views

STM32 TFT not displaying solid color

I am trying to use this display with an STM32F0 using SPI. I begin by setting up the peripherals using the following ...
4
votes
3answers
231 views

How to properly use STM32 flash memory as an EEPROM?

I have to save certain parameters to the flash memory and these values should be non-volatile. But my program will change these parameters and I want the changes updated to the flash. I understand to ...
0
votes
0answers
52 views

STM32L4 External SPI NOR FLASH WinBond W25Q80DV

I am attempting to communicate with a winbond memory chip over SPI with the STM32L4VG. I am first just trying to read the manufacturing ID and my results are never consistent. Running the same code ...
1
vote
2answers
195 views

STM32F3 I2C hangs on busy flag (interrupts)

I am using two STM32F303K8 Nucleos and hooked up the SDA/SCL (GPIO B PIN 6 & 7) pins to 3.3V across roughly 4.7K resistors to 3V3. When I check the voltage on the pins, both are 3V3 so it's not ...
3
votes
2answers
304 views

How to configure DMA to receive variable length USART messages?

I am trying to receive USART messages on a microcontroller originating from PC which will command it to execute certain tests. I am using STM32F4, I chose to use DMA as messages on the same USART ...