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
2answers
844 views

Configuring ADC in STM32F3

I'm trying to enable an ADC converter. I'm using STM32F3 Discovery with SPL Library. I measure voltage on PA1 pin. I don't know why it doesn't work. What have I missed? The value of 'value' variable ...
1
vote
2answers
132 views

freeRTOS semaphore

I am new freeRTOS and i am using stm32F4 . Requirement is to create a task it should the sd card every after 15min what is the best possible solution ?? ...
1
vote
1answer
91 views

Can I add more RAM to the stm32f103c8t6? [closed]

I am currently working on my project using the "super blue pill" which uses the stm32f103c8t6. This board has about 20kb of RAM so there is not too much to work with here. So far I have managed to ...
3
votes
1answer
663 views

EEPROM Emulation driver does not work when Page Sizes are 2KB

I am trying to implement EEPROM Emulation on an STM32F07x using the driver supplied by ST. Problem is on attempting to initialise the emulated flash, the driver fails and always returns NO_VALID_PAGE. ...
0
votes
0answers
23 views

Necessity of PDM processing on the data given by an interfaced condenser microphone through ADC channel on stm32f4 discovery

I want to interface a condenser microphone with my stm32f407vg discovery board and obtain the audio output through the DAC audio jack. For the audio processing should I first convert the input digital ...
4
votes
2answers
102 views

STM32F power supply sequencing with 5-volt tolerant pins

The STM32F427 is powered by 3.3V but many of it's pins are 5V tolerant. This allows external chips to drive it's logic I/O pins at 5V without damaging the device. I have a board design with at ...
-2
votes
1answer
1k views

STM32F0 restart by itself

My STM32F051C8T6 is restarting spontaneously every about 400ms. NRST pin is decoupled with 100nF capacitor. I think that it isn't hardware reset - even with 220R pull-up it is still restarting. ...
0
votes
1answer
51 views

STM32F103RCT6 custom design check

With little experience with electronics and comming from an Arduino background I am designing my first STM32 PCB. My question here is, since this is my first attempt, I would like to have some advice ...
0
votes
2answers
64 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 ...
0
votes
0answers
41 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 ...
1
vote
1answer
65 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 ...
1
vote
3answers
785 views

__HAL_TIM_GetCounter with STM32F103

I found a lot of tutorial to get counter value from an interrupt timer something like: ...
-1
votes
2answers
66 views

How to connect STM32F103C8t6 to computer when using USART? [closed]

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
2answers
402 views

STM32CubeMX USB error “Unknown USB Device(Descriptor Request Failed)”

My STM32 project has an issue about VCP on a CubeMX generated project. When the USB cable is plugged in, the windows10 can't recognise it and in the device manager panel, it says "Unknown USB Device(...
1
vote
1answer
55 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
2answers
144 views

STM32F407 50 Ohm PCB

For STM32F407, it is recommended by the company that a 4-layer PCB be used to realize impedance matching. However in the Discovery STM32F407, a 2-Layer PCB is used. Now I am designing a PCB for ...
2
votes
2answers
898 views

STM32 3-wire SPI MOSI high impedance

I have a sensor with a 3-wire SSC interface, which is SPI compatible, but only has one bidirectional data line. Now I try to read this sensor (https://www.infineon.com/dgdl/Infineon-...
0
votes
1answer
465 views

STM32405 ADC on Update Event of Timer 1 or 8

I'm not sure what I should be asking for because some of the terminology is confusing to me, but what I'm trying to do is use the two motor timers (TIM1 and TIM8) on the STM32F405 to sample BEMF on a ...
2
votes
2answers
916 views

STM32F0 ADC reads wrong values

I am using STM32F030F4P6 MCU for a project. This MCU has no Vref+ pin and using VDDA pin for A/D conversions, PLL etc. While prototyping the circuit that I am going to use on my project, I shorted ...
0
votes
1answer
2k views
0
votes
0answers
41 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 ...
-2
votes
1answer
107 views

Evaluation A/D and D/A converter

If I need to read and write data over TRRS to and from headphone (i.e. I read from standard (iphone/galaxy) headphone mic. and write to standard headphone earphones). This is a schema of what I want ...
1
vote
2answers
10k views

STM32F20x ADC sampling time/rate

I need to calculate the exact sampling time or sampling rate for my setup on a STM32F205. I have the ADC setup as follow: ...
10
votes
4answers
936 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
232 views

STM32CubeIDE HAL_Delay not working

I am trying to toggle the GPIO port 8 with: ...
0
votes
0answers
49 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 ...
1
vote
1answer
102 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 ...
0
votes
0answers
71 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 ...
1
vote
1answer
95 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 ...
-1
votes
3answers
2k views

“Can not connect to target!” using STM32F0 discovery board as ST-Link [closed]

(first posting here so bear with!) Hi, I'm a very novice embedded programmer and have hit a wall trying to use an STM32 discovery board as an ST-Link programmer to an external STM32F051K8T. I know ...
0
votes
0answers
30 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 ...
2
votes
2answers
233 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
519 views

STM32 GPIO Clock

Why do we need to ENABLE a GPIO pheripheral's clock by RCC_AHB register while we are using of that GPIO's pins as an another Peripheral(e.g. ADC) Input/Output pin(Alternate Function)? For instance ...
1
vote
4answers
100 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
48 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
58 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
62 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 ...
-1
votes
1answer
116 views

STM32 interrupt from Matlab Code

I'm using the STM32 MAT plugin and embedded coder for Simulink to generate C-Code out of my models to compile them onto an STM32F4. As IDE I use TrueStudio and for my MCU Configuration I use CubeMX. ...
1
vote
2answers
124 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 ...
0
votes
2answers
64 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 ...
0
votes
0answers
43 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'...
3
votes
1answer
85 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
1answer
2k views

Is the STM32 DMA destination address restricted?

I'm using a stm32f446 and would like to use the TIM4_CH2 request with the DMA1 in ...