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

CAN Rx Line between STM32 and MCP2561

I discover a problem on my design, with a STM32F042K6 MCU and a MCP2561 Can Transceiver. I can send some frames on the CAN Bus but i can't receive any frames. When i put my scope probe on the CAN Rx ...
0
votes
0answers
15 views

What to do if LPTIM1 used as a Timeout wakeup unit in STM32L476 takes too long to wake the MCU from Stop 2 mode for the first time?

I am using STM32L476. I want to enter the Stop 2 mode and use LPTIM1 as a Timeout wakeup unit. The code is written such that the LPTIM1 wakes up the MCU from Stop 2 mode after every second. The ...
0
votes
1answer
20 views

Clarification on interrupt triggered DMA transfer in an STM32

I'm trying to learn about DMA and its use in the STM32L4S9VI platform. One thing I'm confused about is what binds the DMA transfer to any one specific interrupt? In the below example, I'm curious ...
0
votes
0answers
17 views

Which sector of flash to store “user configuration” bytes in? STM32F303K8

I'm working on a project in which I'd like to store about 10 "configuration" bytes somewhere in flash, as I'd like to have the same firmware run on different boards with different settings. It doesn't ...
0
votes
1answer
41 views

Problems with understanding memory map STM32F446RE

I have a problem with the understanding of the memory map of the STM32F446RE. In the datasheet is the system memory (0x1FFF0000 - 0x1FFF7A0F) 30kb big. But in the AN2606 the system memory is only ...
-1
votes
2answers
57 views

how to find GSM service level of a IP-connection?

I am using a GSM modem to send data to a remote server over TCP/IP connection. I am using STM32F103 for the software. I want to connect 3 LED's with the 'F103 to indicate which connectivity and ...
1
vote
0answers
51 views

How to program STM32f411RE chip?

I've developed a prototype using the STM NUCLEO (NUCLEO-F411RE) board and now that I am happy with design I am now in the process of testing everything together on my own PCB. All the other components ...
0
votes
2answers
47 views

What is the difference between IQRn 0 and IRQn 1?

I am using STM32CubeMX to program my chip. Essentially I have a timer that i am trying to set to one ms, and every time that timer reaches a ms I want to toggle a pin. My question is that does it ...
0
votes
0answers
30 views

Usart2 on STM32F401RE is not working after cutting st-link

As I know, Virtual COM port of ST-Link connection is connected to Usart2 on a STM32F401Re. When, ST-Link part is still attached everything is working fine on Usart2. However, after cutting ST-Link ...
0
votes
0answers
16 views

Using use the STM32F103C8T6 board with the Arduino [migrated]

last two days I am trying to programm my blue pill with arduino ide, helplessly... Actually, I managed to install simple blink program, but after that, all other attempts ended up with: ...
-2
votes
1answer
52 views

STM32 Usart Forwarding [on hold]

Please I cant figure it out this whole week about How to program a usart forwarding function in Atolic for Stm32. The function is like Aduino IDE's "uart2.write(uart1.read());" for Stm32 with Atolic ...
-2
votes
0answers
19 views

uc1609 LCD driver

How to connect LCD Display HEM19264-05 with UC1609C LCD driver to stm32l476g-disco? I'm confused by the UC1609C. I could not find any datasheet on UC1609C. There are unusual pins. I found just pinout ...
0
votes
2answers
97 views

STM32 MCU gets shorted

I've been trying to make a simple audio player using the STM32F302CBT6, however, the VCC and GND pins of the MCU keeps on getting internally shorted when a 3.3V power supply is provided and a faint ...
0
votes
1answer
40 views

STM32 Reset Reason - detect debug reset

In my project I want to set the configuration of the RTC based on the reset source. If a reset is done via hardware reset NRST, the RTC shall be set to zero.If there was a reset due to wake up from ...
0
votes
0answers
14 views

STM32H7 - MDMA with DCMI

I am using DCMI peripheral on STM32H7 to capture an 320x240 monochrome image (1 byte per pixel) and DMA to transfer it to D1 SRAM. DMA uses FIFO, Threshold: Full, Data width: Word for both source and ...
0
votes
0answers
41 views

STM32CubeIDE HAL_Delay not working

I am trying to toggle the GPIO port 8 with: ...
0
votes
0answers
26 views

Does the STM32F469I DISCOVERY board allows the user to perform Digital to Analog Conversion?

I have a question on DAC (Digital to Analog Conversion) capability of the STM32F496I DISCOVERY board, which uses the STM32F469NIH6 (216 pins) microcontroller. According to the microcontroller's user ...
-3
votes
0answers
61 views

How to Program ST Microcontrollers for Real Time Control Applications by using SIMULINK? [closed]

I am a beginner who wants to work with STM32 microcontrollers. My field of study is mechanical engineering. My background in C language is primitive. I would like to use MATLAB/SIMULINK packages for ...
1
vote
2answers
70 views

STM32 Memory Alignment unclear

As I'm reading the Mastering STM32 Book, I came across this graphic describing the memory map So what I'm trying to figure out is whether my understanding of memory is wrong, or if the graphic is. ...
2
votes
1answer
53 views

Digital to Analog Conversion with STM32F7 Discovery Board

I am a mechanical engineer interested in Data Acquisition and Closed-Loop Control projects. As a beginner who wants to work with STM32 microcontrollers, I have a specific question about the STM32F7 ...
2
votes
3answers
151 views

What's a opened solder bridge signifies?

I'm new to STM32. Recently I'm trying to understand the schematic of it. I came across the term "soldering bridge" default: open. Does it signifies that the two pins are opened (which means not ...
0
votes
0answers
46 views

Cube IDE : Error: unknown type name 'HAL_StatusTypeDef'

I am taking code from a stm32f0 series and trying to convert it to a stm32l4 series dev kit. I have already changed the necessary addresses and include files that I needed to migrate, but I keep on ...
0
votes
0answers
27 views

Eclipse Plugins for STM32Cube-IDE

I am trying to explore this new IDE, but also have no hands on experience with Eclipse IDE.. "The new IDE is fully compatible with Eclipse, meaning STM32CubeIDE supports the thousands of plugins for ...
0
votes
0answers
47 views

PX4FLOW (Optical Flow sensor) - Powering with 5v. Does it work with OmniNXTF7 I2C SCL/SDA at 3.3v?

I want to use PX4FLOW with OmniNXTF7 flight controller. This flight controller has 3.3v I2C SCL/SDA and no PullUp-resistors. I use the PX4FLOW only with I2C port, with 5v at VCC (not 3.3v). Does ...
1
vote
0answers
33 views

how correctly disable wakeup pin in STM32f0?

We need to disable wake up pin in some time, during stm32f0 run. we have used HAL_PWR_DisableWakeUpPin(PWR_WAKEUP_PIN1); but it doesn't work. Should we do ...
4
votes
5answers
1k views

Heap allocation on a microcontroller

I'm working on STM32F303VC. How does the heap allocation work? When I declare the arrays outside main() it allocates them on the heap - SRAM - 0x2000000 and forth in this MCU. But what determines the ...
-1
votes
2answers
49 views

External oscilator on stm32f030

I am not sure if I calculated R_ext right. I am planning to use this oscilator. According to the document the calculation for R_ext is: ...
0
votes
1answer
45 views

DMA, Interrupt and UART connection in STM32 for detecting chararcters

I am trying to make a project and am planning to use DMA for my UART from one STM32 to another STM32. Here are some details of what am I using: Chip: STM32F107RB debugger and programmer: Atollic for ...
0
votes
1answer
31 views

Basic timer that doesn't work STM32L4

I'm trying to use timer2 in STM32L475 but it doesn't start firing the interrupt at all. I would like to configure the timer for a minute. ...
0
votes
2answers
97 views

How does the DMA know “when to send” the next byte?

I'm transferring data from memory to a peripherial's register in an STM32 uC. For example take 20 bytes. I understand that after sending all the 20 bytes, the "Transfer Complete" interrupt will occur. ...
1
vote
1answer
31 views

Using the logic analyser in Keil uVision5 with an stm32 nucleo F030R8

as the title says, I'm attempting to use the logic analyser that is built in uVision5 with the above development board. The debugger that I am using is the on-board ST-Link Debugger. I've looked at ...
1
vote
1answer
42 views

Configuring STM32 timer as frequency counter

I am trying to configuring one of the timer inputs on a STM32 to behave as a frequency counter for an external signal. The STM32 datasheet describes a "input capture mode" in section 17.3.6 (page 342) ...
0
votes
2answers
41 views

Stm32 SmartCard Reader with 3 slots

Trying to implement smart card reader with 3 slots on stm32f072. The reader for one card works quite well, but as soon as I try to add two more slots - there are problems. Knowing that CCID supports ...
0
votes
1answer
81 views

How to best use SPI (master/slave)?

This is a follow/new insight regarding my previous question Messages for SPI protocol. One idea from that question is to use the SS line to know a new message is being sent from the master to the ...
0
votes
0answers
88 views

stm32 USB composite device

There is a need to implement on stm32 usb composite device. The problem is that all USB devices are the same, will not work in parallel (three smart card readers connected to one UART). That is, you ...
0
votes
1answer
34 views

JSON for GSM Comm on STM32

I am making a remote monitoring system using STM32F1 MCU in which there are few digital and analog sensors attached and I would send their readings to a remote server periodically. Can I use JSON ...
0
votes
1answer
29 views

Is DS28EC20 (20Kb 1-Wire EEPROM) a secondary address of I2C?

I have a MCU (nucleo64 L476RG), connected with I2C, and I2C is connected with DS2482-100 (Single-Channel 1-Wire Master), then to a DS28EC20 (20Kb 1-Wire EEPROM). I create project from stm32cubeMX and ...
0
votes
0answers
29 views

stm32f072rbt6 PCSC SmartCardReader with multiple slots

I use the CCID driver for STM32F072RB, converted to the Hal library. There was a need to make a multi-slot Smart Card Reader (specifically - there will be 3 slots for smart card). In the process, I ...
0
votes
2answers
72 views

How to find I2C address of DS2482-100?

I am using stm32cubemx to create an I2C project. I am using nucleo64 L476RG to connect with I2C ds2482-100, and another 1-wire DS28EC20 is connected with I2C. I am very new to this project. The first ...
0
votes
2answers
51 views

How to create a static library for a UART sensor for STM32?

I am working on a project using the NUCLEOF103RB development board that interfaces with a fingerprint sensor over UART. I am using the TrueStudio IDE and would like to develop a "library" for the ...
2
votes
3answers
150 views

Bare minimum FreeRTOS

My only requirement is time triggered cooperative scheduler. I heard they are more reliable and predictable. If I want to use only the 'cooperative scheduler' of FreeRTOS for STM32F103 then is it ...
0
votes
1answer
35 views

Tasks inside Interrupt Handler

Is there any schedular that exists for STM32F103 in which the 'tasks' are run at the ISR() level while the Schedular() code runs in the main() thread?
0
votes
1answer
39 views

Blocking code in Task of FreeRTOS

Today is my first day on FreeRTOS. I want to use it in STM32F103 for simple task handling as reading data from analog sensor and sending remotely using GSM module. I want to know what are the do's ...
1
vote
0answers
50 views

Is JTAG faster than SWD for debugging on an STM32F with STLINK-V3SET programmer?

There is a new STLINK-V3SET programmer that someone dropped off on my desk today. It supports USB 2.0. My thinking is that if SWD is the bandwidth limiter in the signal chain then a new programmer isn'...