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
0answers
19 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
37 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
415 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 ...
-3
votes
0answers
27 views

I2C is Always busy STM32F407

I followed many posts about that issue, when I transmit something thru I2C I get a busy flag always. That happens on board discovery F407VG. I tried the solutions on the stackexchange but nothing ...
-2
votes
0answers
24 views

HAL I2C Commands on ST32F407 [on hold]

I would like to know what are the apis that i there to issue the following Hal write with no stop flag Hal read with repeated start flag. Note that I'm not interfacing with a memory so hal_write_mem ...
0
votes
1answer
22 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
34 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
20 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
67 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
39 views

STM32 USB programming using the OTG interface

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
24 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
39 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
637 views

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

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
20 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
60 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
32 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
62 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
74 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, ...
0
votes
0answers
40 views

Add CAN, UART and USB support to NUCLEO-H743ZI [closed]

I need to add CAN, UART and USB support to NUCLEO-H743ZI development board. What solutions could be recommended (besides the development of my own development board)? Update: the question is about ...
0
votes
0answers
50 views

STM32F02 Nucelo USART Erratic Behavior [on hold]

I have a project that currently has a blinky, 2 ADC channel on DMA circular which were successfully working . I have now implemented the USART2 on IRQ on my STM32F302 Nucleo. The USART2 is running at ...
0
votes
0answers
69 views

STM32 Interaction with External Power and Onboard LED [on hold]

I am using a STM32F4 board to control a motor via PWM and I have a push button toggling the onboard LEDs via external interrupt. The motor is powered by a 12V(220mA) AC wall adapter. Right now I ...
1
vote
1answer
60 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
30 views

Calling a function that uses HW_Delay inside timer interrupt

I have the following timer interrupt configuration ...
0
votes
3answers
121 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
13 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
72 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 ...
-1
votes
0answers
33 views

Read external FIFO with STM32 [on hold]

I want to insert a FIFO chip between STM32 and another chip as a buffer but I'm not sure which interface of STM32 can be used to read from external FIFO. Has anyone used STM32 to read data from FIFO? ...
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
42 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
57 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
76 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
34 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
71 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
31 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
37 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
25 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
20 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
106 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
28 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
48 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
36 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
58 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
0answers
5 views

Unable to upload code to my STM32 blue pill with FTDI tool [migrated]

I am unable to upload code to my STM32 blue pill. I am using a Mac and it was running very well, all of a sudden, after doing something in terminal, I am unable to use it since then. I tried uploading ...
0
votes
3answers
91 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
46 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
121 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
79 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 ...