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
1
vote
1answer
34 views

Strange STM32L476RG GPIO behaviour when leaving STOP mode 2. Is it a silicon bug?

Before I enter the stop mode 2 I save all the GPIO MODER, OSPEEDR and PUDPR registers, configure pins as analogue (to save some power) and enter the STOP mode 2. When I exit the stop mode (I use RTC ...
2
votes
3answers
848 views

Driving Nokia TFT LCD with STM32

How do I increase the refresh rate of a Nokia LCD that I'm driving using the STM32F103 microcontroller? The LCD is 132*162 and takes a 9-bit instruction/DATA with RGB for each pixel in 565 format. ...
3
votes
1answer
2k views

How do I find out at compile time how much of an STM32's Flash memory and dynamic memory (SRAM) is used up?

I have the answer for Flash memory, but the RAM question still eludes me. Arduino has this super nice feature which displays flash and RAM usage right at compile time. Ex. in the image below you can ...
0
votes
0answers
28 views

STM32L496 - AT Commands

I initially had complete connection with the STM32L496 Discovery board (with STMod+) and my laptop through Tera Term and was configuring it to only use the NB1 network. This was successful and the ...
0
votes
2answers
763 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
131 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
77 views

Can I add more RAM to the stm32f103c8t6? [on hold]

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 ...
0
votes
1answer
90 views

STM32L053C8 Questions on power schematic

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 ...
3
votes
1answer
650 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
17 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
78 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
31 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
51 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
36 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
votes
4answers
95 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 ...
-1
votes
0answers
41 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 - ...
-6
votes
1answer
113 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
vote
1answer
901 views

STM32f4 Port to HAL : USB HID dropping packets [on hold]

I am trying to port a working custom HID code from Standard peripheral to HAL.I am sending two consecutive reports in a single while loop. In Standard Peripheral code the following is called twice for ...
1
vote
1answer
49 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
2answers
116 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
3answers
674 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
60 views

How to connect STM32F103C8t6 to computer when using USART? [on hold]

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
57 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
325 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
38 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
135 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
752 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
434 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
861 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
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 ...
-2
votes
1answer
92 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
9k 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
890 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
145 views

STM32CubeIDE HAL_Delay not working

I am trying to toggle the GPIO port 8 with: ...
0
votes
0answers
42 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
75 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
57 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
87 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
1k 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
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 ...