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.

Filter by
Sorted by
Tagged with
0
votes
0answers
22 views

STM32F030CC reset into system memory after NRST deassertion

I did lots of search before this post here. The problem I met is STM32F030CC reset into system memory after NRST deassertion. The burned-in-flash program can run well after POR, but not any more after ...
0
votes
2answers
42 views

stm32f107 uart frame and noise error

I made a device with a stm32f107 and sim800l gsm module . Module is in data mode(PPP) and I'm using LWIP library . My MCU clocks at 72MHz . My problem is that I get frame error and noise error when ...
-5
votes
1answer
97 views

Protect my C source code [on hold]

I'm working on a company that produces instruments and transmitters such as temperature transmitter, pressure transmitter, etc... . I have local libraries that I wrote years ago and they are belonged ...
-1
votes
0answers
36 views

Software jpeg decoding using STM32 performanceq [on hold]

I have implemented my 2.5k SRAM STM32 (F3 running at 72MHz) jpeg decoder, but have no idea if it works efficiently enough. My frame rate using 320x240 is about 2.4FPS. Using not compressed images - ...
-1
votes
4answers
91 views

Is my STM32F103C8T6 bricked? [on hold]

]2I recently started learning how to develop on the STM32F103C8T6. I got the Mastering STM book and followed it to run the first program, which was blinking the onboard LED. I ran the code and made ...
0
votes
1answer
41 views

STM32 - 2 MegaByte DMA Transfer ADC To SDRAM

I want to transfer 2 MB of converted ADC data into SDRAM. I'm using STM32F429 Discovery board which is shipped with a 4-bank SDRAM (1 Meg Bits x 16 Bits x 4 Banks (64-MBIT)). I've configured the ADC ...
0
votes
1answer
72 views

STM32L053C8 Questions on power schematic [on hold]

I am developing a low power board using the STM32L053C8T6TR and have written a schematic to power the board with a 3V coin cell battery and have a few questions. The datasheet mentions N x 100nf + 1 ...
-1
votes
2answers
59 views

How to connect STM32F103C8t6 to computer when using USART?

I'm an electrical engineering student and I've just started to learn microcontrollers.I want to know is there any way to connect my board(I uploaded its picture)to computer when I'm using USART ...
0
votes
1answer
54 views

STM32F103C8T GPIO output voltage difference between two boards [on hold]

I have two blue pills. The setup is like this: the board is connected to 5V PB6 is configured as gpio output push-pull (max 2MHz, probably irrelevant to the question) the output is only enabled (not ...
0
votes
2answers
101 views

IoT vehicle monitoring interface

Creating an IoT vehicle monitoring interface using the Arduino CAN-bus shield and the STM32L496 discovery kit to transfer the received data to cloud. What pins should be physically wired between the 2 ...
1
vote
1answer
37 views

STM32 LTDC - Maximum resolution

I am planning to interface a STM32H753XI to a 1400x480 display. Here is the reference manual. Now, the maximum resolution given for the STM is 1024x728. I understand that this is the maximum frequency ...
0
votes
0answers
34 views

How to adjust STM32 PWM start time dynamically

I have two devices that I need to keep synced using a PWM of 1 second on and one second off. I have control over telling one to start a new cycle (this is done once every 60 seconds using a gps), and ...
0
votes
0answers
41 views

Can't wake SIM800L from sleep mode

I am having some trouble with my SIM800L module. Basically I set the DTR pin to high and then used AT+CSCLK=1\n to put the module into sleep mode. Then, to wake it ...
10
votes
4answers
884 views

Bare-metal start-up code for Cortex M3 .bss region initialization

I have developed inspired from here a bare metal start-up code for arm cortex M3. However, I encounter the following problem: suppose I declare an uninitialized global variable, say of type unsigned ...
1
vote
1answer
70 views

Use STM32 BOOT0 to boot custom bootloader instead of ST bootlaoder

I have read AN2606 about the native ST bootloader, but for various reasons decided to write my own bootloader to update the firmware on my application running on a STM32F412. My bootloader is able to ...
1
vote
1answer
85 views

Where should hardcoded variables typically be stored in FLASH on a microcontroller?

I want to store calibration data on a microcontroller (namely the STM32 line) however with a large amount of flash memory available to ustilise, I wondered if there is a standard area of memory that ...
0
votes
0answers
55 views

STM32 HSE clock is affected by LTDC_DE signal?

My STM32F429 project works fine before I added the LTDC module generated by CubeMx. After I added LTDC, the FMC interface began to lost data occasionally which was good before. I thought it may be ...
0
votes
0answers
27 views

How to read with a B-L0727Z-LRWAN1 the signal from an AWG

I am trying to read the signal from an AWG with a B-L0727Z-LRWAN1. I don't what pin do I need to use. I would like to know how to link that pin to the control software. I am using the example code ...
1
vote
2answers
155 views

What is the best way to implement a microseconds precise delay/measurement [closed]

I recently saw some people saying that configuring a timer so that it triggers an interrupt each 1us is not a good way of doing that. Also, I assume that; ...
0
votes
1answer
43 views

Which STM32 development board is suitable for a beginner? [closed]

I am trying to learn STM32 programming. My goal is make my own embedded system using STM32 chip on separate PCB. There are several development board in ST. What is the most suitable one for a ...
0
votes
0answers
57 views

Can't program STM32F4

I am really confused and helpless. I made a custom PCB with the STM32F446VE (LQFP100) chip and got it programmed (SWD). After that I made a second PCB where I wanted to solve some Problems regarding ...
0
votes
0answers
23 views

STM32 simultaneous PWM output with variable frequency and duty cycle

I've been designing a capacitor discharge welding machine for a while, So the working principle is when the button has been pushed, 3 output will initiate simultaneously which 2 of them is variable ...
0
votes
2answers
46 views

How to connect MCU input pin with LED and Button?

I want to connect a LED and Push button on the GPIO input pin of a MCU, STM32F103 so that when the push button is pressed then the state of LED indicates the button is pressed. Is it possible to ...
-1
votes
0answers
44 views

reading ADS1232 adc with stm32

I'm trying to read ADS1232 adc value with stm32f1 with this function. ...
0
votes
0answers
24 views

Configuring the clock and LTCD stm32f7

I'm interfacing an LCD using LTDC. That LCD has a touch sensor that works for 400KHz. The touch sensor is interfaced using I2C. My problem is how to configure the clock for both to work. Right now I'...
1
vote
2answers
65 views

Bootloader and Vector Table on STM32F051

I'm going through my company's code for a Bluetooth remote that uses a bootloader to download the main application over Bluetooth. The remote is pre-programmed with the bootloader application. Once ...
3
votes
1answer
71 views

Why does DMA send the first byte as soon as it is enabled?

I'm using DMA to send data to GPIOF which is configured as a parallel bus. DMA is being driven by update events on TIM8. TIM8 is configured in slave mode and starts on an output compare event from ...
1
vote
4answers
91 views

What happens if an interrupt callback execution is interrupted by the same interrupt?

I have a microsecond timer (generates interruption every microsecond) for which I implemented a "HAL_TIM_PeriodElapsedCallback" function. What occurs if the ...
0
votes
1answer
52 views

Interfacing SD card with STM32F44

I'm using STM32F44VET6 controller(using cubemx code configurator), I need to interface a 64GB SD card,and this controller has SDIO pheripheral also But I'm confused how to choose interface type SPI ...
1
vote
1answer
24 views

Conversion error in STM32 MIPI-DSI app note?

I'm trying to teach myself about the MIPI-DSI interface on STM32 F4 MCUs and came across this graphic and accompanying description: As I understand it, the data being transferred is actually 0x94 and ...
-2
votes
0answers
45 views

Reading touch data from sensor

I'm having that touch sensor ST IC ST1633i. It's integrated into an LCD. I'm trying to interface with it, but don't know or understand the actual protocol. I already get ACK and everything is correct ...
1
vote
0answers
51 views

Interfacing touch sensor with stm32f7

I'm having that touch sensor ST IC ST1633i. It's integrated into an LCD. I'm trying to interface with it, but don't know or understand the actual protocol. Here is the protocol So I'm trying to ...
4
votes
3answers
451 views

Interrupt control in STM32

I am trying to learn about STM32 programming. I started to read some references before start the programming. I am currently reading this ST presentation. It says: When an interrupt request ...
2
votes
0answers
54 views

STM32F103 timer behaves differently after hardware reset instead of st-flash reset

I'm learning to program the STM32F103C8 Cortex-M3 (on a BluePill board) and was playing around with the general purpose timers (TIM2 to TIM5) because I wanted to time some routines. In my simple ...
0
votes
1answer
63 views

Why cannot I use the USB port directly to communicate via PC with STM32F4-DISC

I will keep it short and clean, if it won't be enough please let me know and add more details. When using an Arduino UNO, a serial communication can be achieved by the same USB connection which is ...
1
vote
2answers
49 views

stm32f103 ADC strange behaviour

I am using stm32f103c8t6 discovery board and I was doing a practise by using ADC peripherals. While using keil debugger I have realized something so strange to me.If discovery board is not connected ...
-1
votes
0answers
30 views

LTDC Animation with no internal memory

I'm using that LCD TFT 320*240. Here is its datasheet https://www.avnet-integrated.eu/fileadmin/user_upload/Files/Displays/Colour_TFT/UMSH-8252MD-1T.pdf I'm using STM32F7 for driving it. My ...
0
votes
1answer
65 views

Arduino (STM32) and MOSFET switch with digital pin

What circuit can I use to switch on a speaker with an arduino (stm32 board)? Ideally the speaker will run longer (automatic off after some time-0.5s) I have a stopwatch program in STM32 (...
0
votes
0answers
29 views

Interfacing DCMI with SDIO and FMC on STM32F446VE

I am attempting to implement a system which involves capturing 1080p images via a camera connected over 8 bit parallel DCMI and saving them to an SD card via SDIO. If I understand correctly I cannot ...
0
votes
1answer
69 views

STM32F4 and SIM800L logic level

I am currently using an STM32F401RE that I have to interface with a SIM800L GSM module via UART. In a first "toy example" I used Arduino and found no problems, but passing to the STM MCU I am unable ...
0
votes
0answers
45 views

STM32F4 ADC Analog Watchdog

I have an STM32F4 Discovery board and I am trying to read ADC inputs from two channels. I want an analog watchdog guarding one channel and no such watchdog in another. I set the AWDEN bit to 1, the ...
1
vote
0answers
38 views

stm32 does not exit sleep

When trying to implement sleep mode it appears the code enters and exits sleep mode once and then gets stuck in sleep mode after and will not wake back up. I posted some code below of what I believe ...
0
votes
1answer
46 views

MPU6050 connection problem

TL, DR: I experience communication breaks while using GY-521(MPU6050 based) with STM32F4 in I2C communication. And looking for the result of these breaks. Also should I give a 5V Vcc or 3V Vcc to GY-...
0
votes
0answers
71 views

STM32F0 programming through system bootloader using UART

I am writing a python script similar to STM32Loader that can write a hex formatted program to the flash of an STM32F0. I have managed to use the system boot-loader to write the hex file to the chip ...
0
votes
0answers
50 views

Interfacing OV7670 camera with STM32F4 (no FIFO)

I have to interface my STM32F401RE with an OV7670 camera module without external AL422. I followed some of the many tutorials for Arduino, and I was able to capture images using Arduino UNO. ...
0
votes
2answers
68 views

Migrating Cortex Application from Development Board to microcontroller chip [closed]

I have been working on different micro-controllers and I am new to Arm cortex architecture. I have developed an application on NUCLEO-F207ZG (powered by STM32F207ZG). The application is supposed to ...
0
votes
1answer
59 views

STM32L4 μs delay

I am trying to implement a onewire protocol on an STM32L432KCU, so I need quite precise timing (need delay precise as 2μs). I was wondering if there is any way to do this using the HAL drivers (...
0
votes
0answers
35 views

STM32F4 USB - Software switch from HOST (MSC class) to DEVICE (CDC class) and viceversa

My application is based on STM32F411VE and, at first, has been configured to work just as a host for usb key devices (please take at look at attached schemes). After some practising I managed to get ...
0
votes
1answer
65 views

Is it possible using two 3.3v LDOs from one SMPS AC-DC 5V to power 2 MCUs?

I'm planning to use two 3.3V LDOs to supply power for two MCUs, one is STM32, one is ESP-12. Input power of these two LDOs come from one SMPS module 5V, 3W (HLK-PM01). The reason for two seperate LDOs:...
0
votes
0answers
67 views

STM32 SDIO FATFS

I'm using SDIO (1-bit mode) with an STM32F429 Discovery board to read from and write to an SD card. The code below works, I've seen that it does, the problem is it seems to randomly choose when to ...