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.

3
votes
3answers
2k views

STM32F303K8T6 custom board

I try to make a custom board for the STM32F303K8T6 and I am not sure if I do it right. Actually the design is oriented on the STM32F3Discovery. I will not run time critical applications so that I don'...
0
votes
1answer
5k views

STM32F7 Bootloader unable to jump to application

My problem is that my bootloader is not jumping to the application, or maybe it is but then jumps back to the bootloader because of an interrupt. To give you something to work with here are some info: ...
1
vote
4answers
256 views

Which is give better result for find angular position of device using 9-axis IMU snesor.?

I'm Using LSM9DSO 9 axis Sensor Which gives output of Accelerometer , gyroscope , Magnetometer Output data. i want to find the angular position of the device using this sensor. currently i'm trying ...
1
vote
0answers
1k views

STM32 non-blocking mode UART reception with HAL driver

I'm learning micro controller using STM32F429I-DISCOVERY board and have a question about non-blocking mode UART reception. I compiled this example project(UART_TwoBoards_ComIT) and flashed the STM32 ...
6
votes
1answer
2k views

STM32 interrupts and C++ don't go well together [duplicate]

I set up TIM3 to fire an interrupt in my project and it just wouldn't work. I tried everything I could and still couldn't find whats the problem. Then I created a clean project and copy/pasted only ...
2
votes
0answers
463 views

USART on STM32F411 reads junk after MCU wakes up from STOP mode

I am working on a board that uses an STM32F411 connected to a bluetooth module over USART. One of the goals is to enable Low-power consumption in STOP mode. A brief summary of the platform: The ...
-1
votes
1answer
432 views

STM32F4 bugs in DMA, is there bug-free version?

Producer has confirmed that if there will be concurrent AHB and APB2 transfers using DMA2, then data corruption will occur (source). The bug discovery is from 2012, many years ago. Is the STM32F4 ...
0
votes
1answer
712 views

Proper way of storing a register address on ARM Cortex M4?

I am writing a program on STM32F4 Discovery where I have to store address of Timer's CCR register into a pointer and then change register via this pointer, ie ...
3
votes
0answers
1k views

STM32F0 USB device - unexpected Device_Qualifier descriptor request

Edit I may not have asked the correct questions here. Please do not attempt to answer before I edit again to remove this message. Summary I'm developing firmware for a USB device, and I can't get ...
4
votes
1answer
6k views

STM32F74x Flash page size and sectors

I am writing data to the internal flash of a STM32F746 and I'm wondering what the difference between pages and sectors is? And what is the purpose of using sectors instead ? Notice that I'm very new ...
2
votes
2answers
947 views

What does TIM_OCMode do on STM32F4?

I'm making locked antiphase drive for motor control on STM32F4 board. Im configuring Timer4's 4 channels to be in pairs, ch2 inverse of ch1 and ch4 inverse of ch3. Each pair will control its own motor....
0
votes
1answer
2k views

Long and short button press with stm32f0

I'm trying to understand timer of stm32f0 without using the stm library, in particular I'm using the stmf051 discovery board. What I'm trying to do is a simple program that detect when a button is ...
8
votes
1answer
2k views

Cannot Program a Custom STM32 Board

I've designed a simple STM32 board. Below are the schematic and pcb layout pictures: Schematic: PCB layout: PCB layout with VDD hightlighted: PCB layout with GND highlighted: Only the parts of ...
3
votes
1answer
1k views

STM32F072 - Working with HAL and FatFS

I am trying to make small data logger project with STM32F072 as an opportunity to get more familiar with STM's HAL. With CubeMX I generated HAL code that has SPI and also includes FatFS. Right now I ...
0
votes
1answer
543 views

STM32L4 SystemCoreClock access crashes the program during HAL initialization

I'm trying to blink an LED on a Nucleo-L476 with CubeMX and ST's HAL. It worked perfectly on Windows (System Workbench). Now, I'm trying to do the same on Linux with CubeMX and Qt Creator (my favorite ...
0
votes
2answers
536 views

STM32L011 temperature sensor - almost constant output

I am trying to use the internal temperature sensor of STM32L011 (Nucleo-32 board), but I get almost a constant reading (ADC code) in the 100-120 (decimal) range that changes little to none with ...
0
votes
1answer
906 views

What is the use of a capacitor between Vdd and Vss (or Vcc and Vee)? [duplicate]

I'm trying to make my STM32 communicate VIA Can. Therefore I'm making use of the CAN transceiver MCP 2551. In many circuits I've seen a 100 nF between Ground and Vdd. What is the reason for that? Here ...
3
votes
1answer
888 views

How to obtain exactly the same state after deepsleep() mdbed function on a STM32L073RZ?

I try to configure my STM32 to obtain the lowest power consumption. For that I'm using deepsleep() function from mbed librairies. Before that I disable GPIO with this function ...
5
votes
1answer
845 views

I2C Slave ACK not driving down sufficiently

My I2C slave is not pulling down the bus all the way for the ACK. I have tried replacing 1.5k pullup with 10k pullup, but the ACK voltage remains the same (1.6V). System Voltage: 2.5V Master: ...
0
votes
1answer
560 views

STM32F7 Discovery LTDC unit - changing system clock

I have strange experiences with display on my F7 Discovery board. When working with 216MHz system clock, the display (LTDC) works properly. However after changing to 120MHz (using CubeMX, so the app ...
0
votes
1answer
473 views

Open Error on host while using VCP on STM32

I use STM32F407G-DISC1 board. I have run some examples with VCP based on STD library. Everything is OK. Then I have tried to generate code by CubeMX. And something interesting happens. If not to add ...
0
votes
1answer
166 views

STM32F373 Input Capture

I am having an issue trying to get Input capture to work on one of the stm32f373 pins (PB0, TIM3 CH2 ). The reason why i'm stuck with this pin is because m doing this on my own personalized board with ...
0
votes
1answer
1k views

STM32F7 CubeMX FreeRTOS and USB CDC

I'm using FreeRTOS generated with the help of CubeMX. Everything was working fine until I added USB CDC unit. When I used CDC_Transmit_FS() before starting kernel, I could receive data over USB. ...
2
votes
1answer
387 views

RTC power supply

The main task is to power STM32L476 RTC directly from li-po battery (3,7V-4,2V). Unfortunately I don't have enough space for supercap or extra battery. The RTC needs only about 450 nA and has quite ...
0
votes
0answers
473 views

ST-Link refuses to find my STM32F3 discovery board

The ST-Link Utility software I installed doesn't recognize the board. It looks like I connected the board before installing drivers and even after multiple trials of installing and uninstallling the ...
1
vote
1answer
169 views

STM32F072 3.3V on UART with Wi-Fi ESP 8226

I do have STM32F072RB microcontroller which works on 5V but also have output power pins on 3.3V. I do have Wi-Fi module (ESP 8226) that works on 3.3V. I can power it with STM easily but what about ...
2
votes
2answers
2k views

STM32 custom board

I want to make a custom board from STM32F4. Suppose I follow schematics with the minimum required components, like crystal, reset switch, voltage regulator, JTAG connection, etc. and assemble them on ...
1
vote
1answer
2k views

STM32L011 RTC wakeup function

I have a battery-constrained device with STM32L011. Right now I am using Nucleo-32 development board. In the end I want to use suspend mode with RTC to wake up every couple of minutes. First I want ...
2
votes
2answers
6k views

STM32 SPI, can't get it working

SOLUTION: CubeMX set the MOSI pin to be on another bus/port on the nucleo board (not sure why). Setting MOSI to the required GPIO pin manually worked. I'm trying to set up a basic SPI interface using ...
5
votes
1answer
573 views

STM32: the purpose of Even/Odd frame field for isochronous USB transfers

Implementation of USB isochronous transfers in (at least some) STM32 microcontrollers has a very weird feature. It's called EONUM (Even/Odd frame) field. Basically, the value of the field determines ...
1
vote
2answers
3k views

Should I connect unused STM32 pins to ground?

I'm designing some circuit using STM32L152RBT6 microcontroller. I'm using STM32L-DISCOVERY scheme as a reference of good STM32 practices. I've noticed that free pins of programmer's MCU aren't ...
0
votes
1answer
186 views

How to use the xprintf function on stm32f429?

can you help me? I'm a new one. How to use this ''xprintf''? I have connected my uart2, but it's no use. Should I choose the MicroLib in keil? Or rewrite the _wrtie() and _read()? I didn't use the ...
5
votes
2answers
755 views

How to correctly configure deepsleep for STM32L0xx

I'm trying to configure my Nucleo Board with a STM32L073RZ in deepsleep mode to get the lowest power consumption. To do that I use the mbed librairies with the deepsleep() function (This function use ...
0
votes
1answer
2k views

STM32F7 CAN message stuck in mailbox and error frames on bus

Since I am rather new to using CAN I'm not sure what information that is relevant but I will try and describe the best I can. I have a STMF746 that I want to use the CAN bus on. I have PD0(CAN1_Rx), ...
3
votes
3answers
9k views

STM32 HAL UART transmission

I'm trying to send data by STM32f103 to an Arduino board using UART. Data isn't received properly. The code is generated using STM32CUBEMX and here is the part I added: STM32 code (Transmit): ...
0
votes
1answer
1k views

I2C Problem on STM32F4 Discovery connecting to CS43L22

I'm trying to use the internal beep generator of CS43L22 on my STM32F4 Discovery. I'm using the HAL libary and can access the Chip via I2C but only for 4 Bytes (read or write) then the function ...
7
votes
5answers
18k views

STM32: Busy flag is set after I2C initialization

For the reference: the same problem is described there, but the author's solution doesn't work for me - I2C busy flag strange behaviour I used STM32CubeMX to generate project template with I2C ...
1
vote
1answer
2k views

STM32F4 doesn't boot after reset and enables read out protection

Sometimes my STM32F4 board doesn't boot after a power-off, power-on reset. All voltages are fine, but the code does not execute. What is interesting, when I connect to the board with ST-link utility, ...
0
votes
2answers
802 views

FTP Bluetooth and STM32F4 [duplicate]

Is there a specific bluetooth module for FTP? Or any bluetooth module can be used for FTP.. Because when i see the modules they are specified as being Serial. Will HC 06 be to FTP? If not to what to ...
2
votes
2answers
922 views

STM32 NaN value for floating point operations on global variables

I am trying to implement a simple Odometry computation loop. Which is being run in a while loop. Following is the code: ...
1
vote
1answer
1k views

Using STM32 to transfer a file via bluetooth

So far I have been doing projects with Arduino, RPi, ATtiny etc. But now I have project in mind where these things doesnt seem to suit. I need your help. OK, now on the project: I have a file on my ...
1
vote
0answers
1k views

Use 2 RTC Alarm on STM32L073RZ

I'm trying to configure two different alarms on my STM32L073RZ with the given example by StMicroelectronics. The problem is, when I try something like the script below, only the first Alarm turned on ...
2
votes
1answer
533 views

STM32 handmade USART driver

I designed a new electronic card which has a STM32F4 microcontroller on it. Each peripheral except the Wifi module works. Wifi module is supposed to communicate with the controller via USART channel ...