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 ...
1
vote
1answer
48 views

STM32F746 Nucleo with FMC LCD

I am configuring a new LCD screen with parallel 8080 protocol (screen controller is SSD1351). I am using ST CubeMX to generate code for FMC (attached picture of the configuration). My problem is that ...
0
votes
0answers
26 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
30 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
61 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
443 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 ...
2
votes
0answers
48 views

Address Sent bit is not set on STM32F4 Disco

I am trying to interface my STM32F4 Discovery board with a sensor that works over i2c, since the sensor required a specialized i2c protocol, I decided to implement my functions using registers. But ...
0
votes
1answer
52 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 ...
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
80 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
54 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
32 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
53 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
709 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
52 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
53 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
79 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 ...
3
votes
2answers
96 views

How to program custom STM32F103 board [closed]

I am currently cloning the STM32F103C8T6 (blue pill) into a new board. The the bill of material of my new board is exactly same (because I just simply cloned it), only the shape of the board is ...
1
vote
3answers
83 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
87 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 ...
1
vote
2answers
124 views

STM32F7 device freeze: cannot access registers

I am encountering random freezes with the STM32F7. This issue is difficult to debug as any debug session launched in Eclipse crashes when trying to halt the core, which makes it impossible to see ...
0
votes
3answers
147 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
79 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
vote
0answers
29 views

OpenOCD flash writing failure with STM32L071C8 MCU

I have designed custom-made PCB with STM32L071C8 MCU. I'm using OpenOCD 'master' branch and SWD interface via FT2232H to debug the MCU. I successfully did some RAM reading and Flash writing, erasing ...
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
63 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
85 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
48 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
37 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
45 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
28 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 ...