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.
0
votes
0answers
14 views
USART/pyserial issues on STM32L476 (Nucleo)
So...I've been busting my head on this one for a while and I'm starting to run out of options, and would like some help in finding out what conclusion I'm jumping to.
I'm trying to use the USART port ...
1
vote
1answer
46 views
ADC STM32L476RG : Why do I have an offset when connected to 0V?
I'm working on a software solution which set the Pin PC2 to "reset state" if my input signal (connected to ADC) is above 2V.
I testing my code with STM32 Studio to watch in real time the digital ...
-1
votes
0answers
55 views
How do I run python rest API server on bare-metal ST micro controller?
I am working on a project that will be getting data from sensors using the STM32 micro controller. I am currently using C, but was wondering if I can run a lightweight flask rest api server as well? ...
0
votes
1answer
57 views
Does STM32 USB OTG support all USB 2.0 flash memories?
I'm using STM32F105 USB OTG standard libraries to drive USB flash in mass storage mode. It works fine with some USB memories models but not with all models. In the ST documents is written "Complies ...
1
vote
1answer
30 views
How to configure STM32F4s TIM1 and 8 for PWM
I have configured timer 4 for PWM with following code and connected LED to the configured pin. It is working.
...
1
vote
2answers
83 views
Standalone STM32F030CC minimal configuration
I'm making a PCB with the STM32F030CC microcontroller and have been reading up on the minimal configuration in the datasheet. They don't include a minimal setup diagram, but I found some information ...
3
votes
2answers
102 views
How to _disable_ USB on STM32F1xx?
I have a battery-powered device using an STM32F107. The device works and I am currently working on minimizing its power consumption.
One of the bigger current draws is the USB subsystem itself, using ...
1
vote
1answer
51 views
Entering stop mode on STM32L011 only works first time
I have a very typical application here - long periods of minimal current consumption (15 minutes to 24 hours sleep duration) with short periods of activity in between. In my particular case, this is ...
0
votes
1answer
61 views
Error using TIM1 for PWM on STM32F0
I'm trying to isolate this as much as possible (by commenting out the working TIM3 code for comparison). I've got PWM to work fine on TIM3, but have not seen anything on TIM1. Originally, the issue ...
-1
votes
0answers
47 views
Still Problems with STM32 based CAN Communication [duplicate]
It's me again... the guy who wants to let two STM32 communicate with each other via CAN. Therefore I'm using two STM32f103C8T6 and two MCP2551 Transceiver. I want one of them to send messages in a ...
1
vote
2answers
76 views
Problem with CAN on STM32
I want to let two STM32 communicate via CAN bus. One as transmitter and the other as receiver. In order to do that, I combined each with a MCP2551 transceiver. As long as the CAN operating Mode was ...
0
votes
1answer
57 views
STM32F103 - NVIC Confusion
While reading the RM0008 reference manual I got confused about how to use the NVIC to configure interrupts. The manual basically redirects the reader to the PM0056 programming manual which, in my ...
1
vote
2answers
69 views
What Development board should I choose if my final target is STM32F030CC [closed]
I'm thinking of using a STM32F030CC for its 6 U(S)ART ports, but I can't find a development kit for that specific microcontroller. Is there another development kit that's compatible with STM32F030CC?
...
0
votes
1answer
61 views
Aren't pull-up / pull-down options documented for STM32F103?
While trying to configure the GPIOs using CMSIS on a NUCLEO-F103RB board, I couldn't seem to find in the reference manual how one is supposed to choose between internal pull-up and pull-down resistors....
0
votes
3answers
114 views
Are there any wifi chipsets out there that don't have an internal uC or require Linux? [closed]
For the past few days I've been browsing wifi chipsets and their development tools. I noticed that all of them either require Linux for running (at least that's what the forums say) or have an ...
0
votes
2answers
62 views
What is the use of both I²C and UART in Bluetooth module BM78SPPS5MC2? [closed]
I am interfacing the Bluetooth module BM78SPPS5MC2 with the STM32F417IGH6 microcontroller as a host, but how do I use the two serial communication protocols to communicate?
3
votes
1answer
89 views
STM32 - Clock signal generator using a timer - STM32CubeMX generated code
I am trying to generate a clock of 1.4 MHz using the STM32F103C8Tx using STM32CubeMX.
First of all, in my code I have pin PB13 as output and in main I toggle it every two seconds. This works.
...
1
vote
1answer
70 views
MicroSD card reading problem with an STM32 chip
I am practicing the microSD card on a PCB board with the STM32F405 chip. The testing program is generated by STM32CubeMX. The code is very easy to understand.
The problem is that an error happens ...
3
votes
1answer
42 views
Problem initializing SPI TX interrupt in STM32F103
I am trying to establish SPI communication from master to slave. I am able to send bytes over to slave, and is now trying to send when the TX interrupt is triggered.
Below is code I used for master ...
3
votes
2answers
68 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
0answers
49 views
STM32 - [DMA] sine table memory to TIM->CCRx
I use STM32F031 board and i'm quite a beginner.
I want to copy values from sine table directly into TIM->CCRx peripheral.
I use 2 timers, one for generating PWM and the other as output capture for ...
0
votes
1answer
85 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:
...
0
votes
3answers
64 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
57 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 ...
4
votes
1answer
75 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 ...
-1
votes
1answer
66 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 ...
3
votes
0answers
81 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 ...
1
vote
1answer
56 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 ...
0
votes
1answer
46 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 ...
6
votes
1answer
117 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 ...
0
votes
1answer
93 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
81 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
103 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
51 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
...
0
votes
0answers
33 views
How to calculate the frequency and control a dc motor using PWM technique employing a trapezoidal control profile?
I am slightly getting confused in fundamentals here. I want a soft ramp start and a soft ramp stop. I am using a stmf1xxx series controller and tried pwm using a for loop and the HAL_TIM_SetCompare ...
0
votes
0answers
23 views
Getting an address (offset) of a segment (PIE)
Good day!
I'm trying to use PIE on ARM (STM32F4DISCOVERY, GCC ARM Embedded Toolchain).
Here is linker script:
...
4
votes
1answer
209 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
54 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
98 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
61 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
1answer
72 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 ...
0
votes
1answer
39 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 ...
0
votes
2answers
137 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 ...
0
votes
1answer
51 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
1answer
117 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 ...
2
votes
0answers
45 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
149 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 ...
4
votes
2answers
333 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
60 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), ...
0
votes
0answers
34 views
Interfacing STM32F429 with SD card: can one use the internal pull-up resistors? [duplicate]
Currently working on STM32F429 (208 - pins version) board, interfacing with LCD, SDRAM, SD cards and USB. The SD card is interfaced with 2 GPIO input lines: Card Detect and Write Protection and with ...