All Questions
4,627 questions
0
votes
0
answers
14
views
Cannot Get STM32 F746ZG To Play Sound Through Speakers w/ MAX98357A?
I am trying to make the stm32 nuclei to play sound through the amp to the speakers. I have tried different tutorials like https://github.com/afiskon/stm32-i2s-examples/blob/master/sine-wave-example/...
-4
votes
0
answers
34
views
Can the DMA memory generated by the DAC be accessed/read? [closed]
Can the data generated by DMA in memory be accessed and used as data?
0
votes
0
answers
31
views
Power efficient firmware update over USB between 2 pairs of STM32 chips
I have a very specific project and as I am new to using the USB features I am unsure what MCU to choose and how to design my USB port on my board. If possible I would like to use an STM32, simply ...
0
votes
1
answer
91
views
Tamper detection
I am working on a tamper detection system for a drone using an STM32F103C8T6 microcontroller and a Quectel EC200U-CN GSM module. Here's an overview of the setup and my query:
The tamper box has a ...
0
votes
1
answer
61
views
Generating a continuous sine wave using I2S on STM32
I am able to generate a sine wave "burst" using I2S on a STM32 microcontroller (Chinese version:PUYA PYF32F403, almost identical to STM32F407). I have followed examples on the Web such as ...
1
vote
0
answers
49
views
STM32 debugger shows wrong stack pointer
Before explaining the problem I want to say as a disclaimer that I am a total beginner with baremetal coding in ARM, so the problem could be anywhere.
I am following this guide to move my first steps. ...
0
votes
0
answers
39
views
STM Microcontroller + MCF8316C Driver
I am currently designing a FOC motor driver with a MCF8316C chip from TI and I am having quite a lot of troubles to get it to work. I plan on controlling it with a PWM signal coming from a Nucleo-...
-1
votes
0
answers
32
views
Simulation speed in Proteus 8 slowing down
In Figure 1, the PA8 pin of the STM32 in the upper-left corner is disconnected from the control terminal of the transmission gate formed by the MOS. After starting the simulation, the speed remains ...
-1
votes
0
answers
12
views
B-L475E-IOT01A2 256 kpbs BLE baud rate
I'm just starting to work with STM32 processors and I'm having trouble achieving a max baud rate of 256 kbps on the BLE platform in B-L475E-IOT01A2 Discovery Kit board.
So this board has a "...
1
vote
1
answer
81
views
Weird I2C communication issue with INA226 tested on Arduino UNO and STM32F4
I have been working with the ina226 sensor for a while using this cheap dev board I never had any problems with:
I ordered more new of this sensors from AliExpress and they look like this:
Main ...
0
votes
0
answers
57
views
Using two UARTs to receive causes one UART to save data from another
I am working with the STM32-H7 microcontroller and am attempting to receive bytes from another microcontroller and then printing to Putty using the USB UART. I am using USART 2 and 6 with interrupts ...
0
votes
0
answers
18
views
SPI issue in arduino and STM32F4 connection
I wanted to play with SPI on STM32f4 nucleo (made it MASTER) and communicate with slave - arduino pro micro.
Idea is that whatever i type on serial terminal connected to nucleo is passed to arduino ...
-1
votes
2
answers
98
views
After lightning and thunderstorm my STM32 chip got damaged [closed]
My STM32 breakout board was connected to a 15 V power supply which was then stepped down to 3.3 V by a buck converter.
After lightning and thunderstorm, the STM32 MCU got damaged but the buck ...
0
votes
2
answers
99
views
Powering STM32 Directly with a DC-DC Converter: Considerations and Recommendations
I'm a bit concerned about directly powering an STM32 with a DC-DC converter. For a project, I want to supply 3.3V at 20mA from a 12.6V 55mA power source, and I’m considering using a DC-DC converter ...
0
votes
1
answer
75
views
Issue with VCAP voltage
I am currently working on a board designed around the STM32H725RGV6 and have encountered issues with it being recognised by STM32CubeProgrammer as I get the message "target not found" when ...
0
votes
2
answers
65
views
ADC REF on STM32F103
I am building a project with STM32F103, where I need to measure couple of external voltages (From sensors, that produces analog voltage output) using ADC. I have printed 10 pcbs and it seems like the ...
0
votes
1
answer
64
views
STM32, how it works when NRST is LOW?
I was wondering because I wanted to use SWDIO and SWCLK as GPIO but how does NRST works then ? I hold NRST button to take it LOW.
The MCU is in reset state and what works in that state ? GPIO are now ...
-1
votes
0
answers
25
views
Using Analog Discovery V2 to Generate 16.384 MHz for ADE7880 CLKin Pin - Connection and Setup Advice Needed
I'm new to electronics and I'm working with the ADE7880 IC and having trouble with its clock configuration. This IC is quite specific about its crystal selection, and currently, I'm unable to ...
0
votes
0
answers
44
views
Using STM32 to have audio communication over bluetooth
I want to connect to a phone via Bluetooth using STM32 and transfer audio through a speaker and a microphone. What would be your recommendation for which controller to use and which codec to use?
I ...
1
vote
1
answer
76
views
Scaling down the voltage [e.g. +/- (50V to 3.3V)] and shifting it from bipolar (+/- 3.3V) to unipolar (0 to +3.3V)
VG1 is an AC (sine wave) signal with a voltage of ±50V. I need to scale down this voltage and shift it from bipolar (±3.3V) to unipolar (0 to +3.3V) using an op-amp. The op-amp should operate with ...
0
votes
1
answer
31
views
Connecting standard clock oscillator to STM32L073 - OSC_OUT pin has to be connected?
Trying to connect ASE-14.31818MHZ-LC-T standard clock oscillator to STM32L073. According to datasheet, oscillator output signal should be connected to OSC_IN pin:
...
0
votes
0
answers
51
views
Issues with Relay Control in STM32 Applications
Recently, I've been experiencing frequent issues with relay control using STM32 microcontrollers. My relays typically operate with a 12V DC coil voltage and are used to switch 230V loads. For instance,...
0
votes
1
answer
43
views
Issue with STM32WB55RGV6 MCU Recognition on Custom PCB – Need help!
I've designed a small PCB intended for controlling sensors. This PCB includes an STM32WB55RGV6 MCU, and I created two versions to implement the antenna (one using MIFA and the other a chip antenna). I ...
0
votes
0
answers
58
views
Back EMF-Based Speed Measurement of Single-Phase Induction Motor
I want to determine the speed of a single-phase fan directly on the PCB by measuring the current and voltage values without using any external sensors. My plan is to utilize an ACS712 IC as the ...
1
vote
1
answer
67
views
STM32 RTC Issues When Powered with Transformer
I am currently trying to figure out a problem that I couldn’t understand the reason for.
Here is the schematic of the circuit:
Last weekend, I soldered a PCB on a prototype board. The circuit ...
0
votes
2
answers
56
views
What does it mean by Continous Current Control for a 24 Volts AC solenoid?
I have BERMAD irrigation 24V AC solenoid series S-390-3-D. Link has been attached of the product.https://www.bermad.com/app/uploads/IR_Accessories-Solenoid-S-390-3W_Product-Page_English.pdf. I would ...
0
votes
0
answers
31
views
Motor sensorless Control with STM32
I would kindly need the feedback of someone who has used stm32 and MC Workbench software.
I'm driving a BLDC motor (14 poles) with stm32 MC Workbench (using Motor Pilot tool) and I connect it to STM32 ...
0
votes
1
answer
43
views
STM32F103C6T8 max PWM frequency and phase delays
I want to use the STM32F103C6T8 with a base clock of 72 MHz and a timer using an external clock source with a varying frequency of 6-10 MHz. The output should be a PWM with a 25% duty cycle and a ...
1
vote
2
answers
86
views
STM32H745 sometimes crashes when setting the system clock speed to 480MHz
As the title reads I have a STM32H745 on custom hardware and when I run the following code the device crashes about 50% of the time at some point after switching the system clock to PLL1. By "...
0
votes
0
answers
60
views
STM32F4 ADC square wave distortion
I'm building what is essentially a signal recorder based on STM32F401CCU6 ("black pill" board) and the waveform as evaluated by the ADC contains strange artifacts compared to the scope plot ...
0
votes
2
answers
67
views
STM32F103RB: using cap designing in power supply
I'm currently designing hardware using STM32F103 MCU. I'm reading AN2586 and NUCLEO-F103RB schematic as reference.
I'm designing the power supply now, and AN2586 says to connected to use 100 nF caps ...
2
votes
1
answer
101
views
Issue after bootloader on STM32F072RBT6: Stack Pointer not jumping to application address
I am currently working on a project using the STM32F072RBT6 microcontroller, where I have implemented a custom bootloader to load an application program into flash memory. However, after the ...
4
votes
0
answers
140
views
The MOSFET of H-bridge Inverter always explode
I met some difficulties these days.
I use 4 MOSFETs to put on a H-bridge inverter which output power is 1300 W. The dc input of inverter is 310-400 V. The Ids of MOSFET is 80 A and the Vds is 650 V. ...
0
votes
0
answers
49
views
Why my serial monitor receive reverse byte from STM32F407 UART?
I am using Keil STMF407ZGT6's USART1 to send some data(encoded in UTF-8) which is "00000" to my pc(x86_64). My usart setting is 9600 baud rates, 8 bits data without parity, 1 stop bit. But I ...
0
votes
1
answer
43
views
Weird build error on Keil µVision
I'm building a project based on modbus. The problem happens at the header file (.h). Even there are commas at the array, when I build, it gives error as [...
0
votes
0
answers
43
views
STM32F4 SDIO keeps failing CRC check
I'm trying to get 4-bit SDIO with FATFS working on an NUCLEOF411RE board and so far, it isn't going well. Here's my current code to start.
...
0
votes
0
answers
50
views
STM32H7S3L8 measuring HAL_Delay(20) with basic timers TIM6 and TIM7
I am trying to set up timers on STM32H7S3L8.
Here is clock configuration:
I am using TIM6 and TIM7 and as I understand both of them get clock source equal to 300MHz.
I have set their prescalers equal ...
1
vote
1
answer
145
views
STM32H7S3L8 Error
I am using STM32 Nucleo-144 development board with STM32H7S3L8 MCU.
I get this comment when trying to run code that cubeIDE generated initially: ...
0
votes
1
answer
114
views
USB-C device doesn't work
I made a USB device based on STM32 blue pill board (STM32F103C8T6) having USB-C female socket. It works well when connected via a type C to type C cable. The Blue Pill board itself doesn't have any ...
0
votes
5
answers
97
views
STM32: Can I use the Data RAM to store data persistently?
I'm currently working with an STM32F1 MCU and I'm storing data persistently in Flash memory.
I'm looking, however, at this STM32H7 and it has very little user flash memory (enough for my main ...
0
votes
1
answer
68
views
Powering STM32WB55 with Alkaline Batteries
I am designing a portable device based on the STM32WB55 with alkaline batteries as a power source. I want to use either AAs or AAAs as they are more readily available for the average user. In terms of ...
0
votes
1
answer
40
views
STM32L432 sleep mode and wake up through RTC
I am developing a application for a battery-based 4G gateway so most of the time I want my microcontroller in sleep mode. I am using Standby mode as I require least power consumption. The requirement ...
0
votes
0
answers
33
views
STM32L412 organization of option bytes and memory dump
I am trying to retrieve the firmware from an STM32L412 using an ST-LINK/V2-1 debugger-programmer. According to the datasheet, the option bytes are located at address ...
0
votes
0
answers
114
views
What does it mean if the ST-LINK/V2 LED doesn't stop blinking red and green after the code is uploaded successfully to the MCU?
I have used the ST-LINK/V2 plenty of times and from what I have noticed, while the code from STM32cubeIDE is downloading on the MCU, the ST-LINK LED is blinking red and green and it stops once the ...
0
votes
1
answer
40
views
STM32 - compile in debug and release mode - can it be done per file?
Maybe a stupid question - but I searched cand couldn't find a good solution...
I'm running into an issue with memory on my STM32 project.
Is there a way to compile all files in release mode (smaller ...
0
votes
0
answers
104
views
Booting from Cortex-M33 on STM32MP2
We have a significant portion of our application written with STMCubeIDE and running on a Cortex-M4.
We would like to migrate to an STM32MP2 microprocessor, which features A35 and M33 cores. However, ...
1
vote
1
answer
51
views
Beginning STM32 and PWM generation
I'm at beginner level STM32, which is a bit more complicated than Arduino. I'm trying to generate PWM, and have watched some videos. But I really don't understand what is going on, because the PA6 or ...
0
votes
1
answer
42
views
Do I need USB to program the stm32 via SWD?
I designed a PCB that has a STM32F405RGT6 as its MCU. I took out the USB in the design because I thought that I only need it for the power. Now I am wondering if I can program it via SWD with only the ...
0
votes
0
answers
44
views
STM32F030 Not able to Connect with ST-Link
I am connecting the CLK, RST, DIO, 3.3 & GND from ST-Link to the STM32 via a jumper. When I try to connect 3.3 & GND, the ST-Link disconnects immediately. Can anyone have a look & see if ...
0
votes
0
answers
91
views
I2C pins running at 3.5 V instead of 3.3 V
I'm using the I2C on a Nucleo STM32H723 and have a scope connected to pins PB8 and PB9.
When I use the internal pullups for the I2C, I can see that the voltage on the line is 3.5 V.
If I don't use ...