The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
30 views

FMC controller conflict issue

I have 2 FMC controllers on my STM32F429 design. The first controller is an SDRAM controller which is used by LTDC&DMA2D as video buffer; The second controller is a PSRAM controller which is ...
0
votes
2answers
57 views

Where does the SWD header in this schematic connect to the microcontroller?

Edit: better quality schematic I'm designing a PCB that includes the STM32f103C8T6 and I want to program it via SWD (with the ST-Link v2 USB connector). I'm using the Blue Pill dev board schematic (...
1
vote
2answers
87 views

STM32 firmware upgrade (In-System Programming) over USB?

There are many ways to program an STM32 chip (in my case STM32L4R5): USB DFU mode (using DFuSe utility from ST) UART Serial Port (through something like FTDI chip)...
0
votes
1answer
64 views

STM32: Interrupt latency for serial protocol implementation

I am implementing a synchronous serial interface (SDLC) using an STM32. My original implementation for the RX side is running on a ARM7 which uses the FIQ to set an interrupt on the clock line, in ...
0
votes
0answers
51 views

Is VBUS sensing necessary for USB on a self-powered device? [duplicate]

I'm currently designing a self-powered PCB with a STM32L432KCU6 and USB. After having done some research, it seems that it is necessary to connect the VBUS pin for detection purposes. However, is it ...
0
votes
1answer
32 views

Is this circuit for Piezo Transducer and corresponding resistor values correct?

I want to drive this piezo transducer (https://www.mouser.com/datasheet/2/670/cpt-9019s-smt-1310960.pdf) at 3V and 4kHz with STM32F0 microcontroller. This is a follow-up to my previous question (Is ...
2
votes
1answer
68 views

Repurposing PWM output for D- of USB

I'm currently designing a self-powered PCB with a STM32L432KCU6 MCU on it. I want to use USB, but D- is already used for a different purpose. According to the datasheet, D- and D+ have to be ...
2
votes
1answer
93 views

STM32: SPI hardware to implement custom serial interface

I want to implement SDLC communication on an STM32 (assume I can pick any one up to M7) using the existing HW in it. SDLC is a full duplex synchronous serial interface. In my case, it uses ...
0
votes
1answer
129 views

Connecting an STM32 at Ethernet

I am trying to connect the STM32F103 (blue pill) with the specific w5500 module via the SPI bus. The physical connection I made was ...
0
votes
0answers
37 views

STM32 SD Card SPI no response

I am using an STM32F0 to communicate with an SD card over SPI. However, when I send CMD0 after performing the required initialization, the SD card does not respond with anything on MISO. What's ...
1
vote
3answers
61 views

Meaning of (*(__IO uint16_t*)PAGE0_BASE_ADDRESS) variable declaration

There is a variable declaration: uint16_t status = (*(__IO uint16_t*)PAGE0_BASE_ADDRESS); __IO is the precompiler directive ...
0
votes
1answer
34 views

nrf24l01+ returning incorrect payload value

I have 10 nrf24l01 modules, 5 from the german web shop, 5 from the local finnish offline store. I'm using them in pair, one module sends exactly one byte to another one module with period of ~100ms. ...
0
votes
0answers
91 views

Function fails, but code works if not in function

I'm using STM32 and FATFS with an SD card, and want to check if a file exists. That works when I use it in main, but when I use it in a function, it results in a hardfault. This works in main: ...
2
votes
0answers
57 views

STM32F4 HardFault caused by Timer?

I built a STemwin Project with Cubemx and run this project on STM32F429ii based PCB. Every time when it reached the GUI_INIT() which was related to the memory allocation, it ran into HardFault_Handler(...
0
votes
1answer
61 views

Accessing the STM32L412KB Serial Wire Debugger (SWD) Connections (Novice User) [closed]

I am attempting to program an STM32L412KB device using ST-Link/V2-1, a Raspberry Pi 3B+ and OpenOCD software. To do this however, I require access to the SWDIO connection and the SWDCLK connection of ...
0
votes
2answers
63 views

STM32F103rb datasheet mentions 4gb address space, while only 128kb flash and 20kb RAM?

I am trying to advance my way into the STM32F103RB, and I don't understand the address space mapping defined in chapter 3.2 in the the STM32F103RB datasheet. It states: Program memory, data memory,...
1
vote
0answers
80 views

Looking for help improving power control circuit

I am looking for ideas on improving the circuit below. Any constructive criticism is very much appreciated as well. The following is a long explanation how I arrived at this monstrosity, it can be ...
0
votes
0answers
88 views

STM32H7 on-chip temperature sensor reading stable on 'Y' revision, but unstable on 'V' revision chip

using the STM32H753VIT6, I like to monitor the on-chip temperature sensor. The environmental temperature can become about 50 degrees Celsius, and the board is housed is a small plastic (DIN-rail) ...
0
votes
1answer
48 views

How to program STM32_F4VE with ST-LINK/V2/01-0 [closed]

I am using keil uvision 5. I haveSTM32_F4VE development board and ST-LINK/V2/01-0. How to program this board with ST-Link v2? If you can suggest some website link also it would be helpful.
1
vote
0answers
59 views

Write protection error on STM32F779II while erasing flash

I'm trying to erase flash for STM32F779II. The start up file starts with that section: ...
0
votes
0answers
37 views

STM32 UART receive ISR callback

I am using the STM32CubeIDE to setup the UART peripheral. I can check 'USART1 global interrupt' checkbox in the NVIC settings tab. But when I save and generate the source files, I can't find any ...
1
vote
1answer
69 views

STM32 UART How to receive 9 bit?

I am trying to understand how I can setup the UART peripheral to receive 9 bit data blocks. I am using the ST IDE (STM32 cube IDE) and the Nucleo-F103RB board. I can setup the peripheral in 9bit mode ...
1
vote
1answer
70 views

STM32 HAL vs LL

I'm exploring the world of STM32 microcontrollers. I must say, so far it's a huge puzzle. I find that there are many documents provided by ST, but none of them really teach me anything. And it's ...
0
votes
1answer
41 views

Adapt EEPROM EMULATOR STM32F103VE

I'm working with STM32F103VE and STM32F746, and i want to use my Flash memory as EEPROM EMULATOR for writing and reading data easily. I have searched for axemples of Emulation of EEPROM for my board ...
0
votes
1answer
71 views

STM32 trying to communicate with 2 I2C. But second one fails

I am trying to communicate with a battery using SMBUS. Battery has 2 sections so it uses 2 separate SMBUS lines. I am trying to read SOC information from two section by using STM32F103C8. First ...
2
votes
3answers
63 views

STM32 product line in a spreadsheet?

There is a staggering number of variants of the STM32 family of MCUs. I have been led to believe that a list of the available STM32 microcontroller parts and their various features is available ...
1
vote
0answers
46 views

STM32 I2C Fast Mode Issue

Currently, I am implementing I2C communication with Interrupt. STM32 serves as the slave and Arduino serves the master. MCU: STM32L152RDT6 For previous work, I2C communication in standard mode is ...
1
vote
2answers
60 views

How can I run an STM32L with an unpowered ST-Link connected?

I have an STM32L476RG on a custom board that I have to leave connected to an external ST-Link/V2 so that I can reprogram it without accessing the hardware. I'm also forced to do this via a USB hub due ...
3
votes
5answers
867 views

STM32 cannot reach individual registers and pins as PIC

I used to work with PIC and now I need to use STM32 chip. I was using HAL library but it gave me some problems so now I want to use it without HAL_Library. There are some questions I could not get any ...
0
votes
0answers
25 views

CRC error from CMD8 during intialization process?

I am trying to initialize SD card for a project I managed to get reply for CMD0 with 0x01 but when i send CMD8 I get response of 0x09 which means CRC error however I am sending the correct value for ...
1
vote
3answers
76 views

triggered PWM from ADC end of conversion

I am making a full bridge control on D-SMPS and I want to trigger PWM from ADC to keep output voltage constantly stable. I am using STM32f103xx as microcontroller. The problem is that looks like in ST'...
0
votes
1answer
50 views

STM32 I2C transmitting no data and cannot change the data that is being transmitted

I am trying to establish a SMBus connection by using STM32 chip. When I try to transmit data to battery (0x0D) I see 0x0B with oscilloscope. When I change the data that is being transmitted to 0x00 or ...
0
votes
1answer
75 views

PWM logic level issue

I am facing new problems everyday at embedded system. I have designed D-SMPS and put an stm32f103 to drive mosfets.I have tested micro controller and it works well while giving outputs as GPIO.It is ...
0
votes
0answers
31 views

Partially functioning code of stm32f407vg board to toggle leds using a push button as an external interrupt

I have written a simple code using CMSIS library functions of Stm32 to blink one built-in led during normal operation and another one when an external interrupt is generated by an interfaced push ...
1
vote
1answer
51 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 ...
0
votes
0answers
45 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
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 ...
1
vote
1answer
92 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 ...
4
votes
2answers
104 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 ...
0
votes
1answer
54 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
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 ...
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 ...
-6
votes
1answer
134 views

Protect my C source code [closed]

I want to give somebody a project, but i used my own libraries on that and i want to protect my code. I'm currently working with C in STM32 systems. What can i do?
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 ...
0
votes
1answer
106 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 ...
-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 ...
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
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 ...
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 ...
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 ...