Skip to main content

All Questions

Tagged with or
Filter by
Sorted by
Tagged with
0 votes
0 answers
16 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
35 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 ...
4 votes
1 answer
1k views

FreeRTOS scheduler is not triggering the TASK

I am programming an STM32F103 for my project and recently switched from bare-metal to RTOS (FreeRTOS to be specific) without using CubeMX (code attached below.) For now, I am simply running an LED ...
0 votes
1 answer
343 views

STM32 I2C bus stuck

I'm trying to setup a mini OLED display I2C (SSD1306) with the STM32F411 (black pill). Sometimes it works, randomly. But always, after power off/on everything, it stops working and doesn't recover. If ...
1 vote
2 answers
679 views

STM32F746 Disco: Why doesn't the RTC generate an alarm A interrupt?

I'm trying to generate an interrupt every 60 seconds using alarm A. I put a HAL_GPIO_Toggle instruction inside the interrupt HAL_RTC_AlarmAEventCallback to turn an LED on to see if it triggers but I ...
3 votes
1 answer
521 views

Programming with OpenOCD config file - how do I know my layout_init signal?

we designed a custom board that contains wifi module: EWB-STERLING,(453-00014R ) with STM32F412 chip. I succeed in programming the module, but I noticed that it does not send a reset after each ...
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. ...
1 vote
2 answers
162 views

Stm32h743 write protect, Bootloader lock and RDP

I am trying to understand how you can lock an Stm32h743 so it can't accept unauthorized firmware while having physical access to it via USB and BOOT0 pin is tied to ground (meaning it always boots to ...
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
445 views

STM32F103R6 (Cortex-M3) trouble with rising edge detection

I'm using Proteus 8.6 for simulation of STM32F103R6 microcontroller with ports C0 connected to a LED and port C1 connected to a button. I'm trying to capture the rising edge of the button so that it ...
0 votes
1 answer
291 views

NOR flash ignores dummy cycle config (gd25b512)

I have existing code on a STM32F7 using qspi for a micron MT25QL512ABB that I am porting to use on a Gigadevice GD25B512ME. I am operating the bus at 108 MHz. The issue I'm facing is that the ...
1 vote
2 answers
1k views

STM32 CubeIDE Could not connect to target problem

I'm trying to code the stm32g030f6p6 microprocessor using J-link using STM32 CubeIDE, I get the warning "Could not connect to target, Please check power, connection, and settings". When I ...
0 votes
1 answer
62 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 ...
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 vote
1 answer
146 views

M2P DMA transfer with trigger from a different peripheral

The microcontroller on my board is STM32F429IGT6 and I want to use a timer as a trigger of a DMA -e.g. HTIM_SOUND_SAMPLER- and transfer my data from an array to CCP of another timer -e.g. ...
2 votes
1 answer
3k views

What does TIM_OCMode do on STM32F4?

I'm making locked antiphase drive for motor control on STM32F4 board. Im configuring Timer4's 4 channels to be in pairs, ch2 inverse of ch1 and ch4 inverse of ch3. Each pair will control its own motor....
2 votes
2 answers
702 views

STM32F446RC Failed to be detected by ST-LINK/V2

I am currently trying to connect the ST-LINK/V2 to my custom board which is using a STM32F446RC. I am able to detect the ST-LINK using both the STM32CubeIDE or the STM32 ST-LINK utility, however this ...
1 vote
1 answer
1k views

STM32F407VET6 - How can I handle frame and noise errors in UART?

I'm receiving data in UART Rx with DMA and I need to make it immune to disconnections. Now, sometimes I can recover the communication after a disconnection, but I need to recover it always. Using the ...
1 vote
2 answers
497 views

Connecting 25MHz crystal to STM32H7

I want to connect a 25MHz crystal to STM32H750. However, I've trouble finding a part which is suitable for use with this particular MCU. From AN2867: In addition: The gm for STM32H750 is 1.5 mA/V (...
0 votes
1 answer
195 views

Impedance required to protect stm32 from 48V

So I have a 48 V system with an STM32 controlling a gate driver which has a 12 V supply switching MOSFETs on the 48 V rail. Occasionally, for whatever reason that doesn't form part of this question, ...
0 votes
1 answer
142 views

STM32 HAL_CAN_ERROR_PARAM;

I want to connect two stm32 via CAN but I have the following problem, I have this configuration and this code: but i have this error, HAL_CAN_ERROR_PARAM: I can't see any signals on my oscilloscope....
-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
1 answer
144 views

STM32F103 SPI Clock Signal is not generated

I am trying to communicate with a Winbond W25Q (16 MBit) chip with Standard SPI connection. I am using Keil to code and debug. It looks like I am unable to generate the clock signal for the SPI line. ...
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 ...
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 ...
1 vote
2 answers
136 views

Need help for a trouble with Keil C window

I tried to program STM32 with Keil C but when I try to "Set Path" to the library, there is a problem like this: As you can see, the "Option for Target" window doesn't show all everything, there is ...
-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
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
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
160 views

PWM on STM32F411 is not working using timer1

I am trying to use this code to control brightness of a LED using channel 3 of Timer 1 (PA10 pin) on the STM32F411: ...
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
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 ...
0 votes
1 answer
4k views

Measuring speed with Input Capture Mode [STM32 & CubeMx]

I have the L432KC Nucleo. I'm trying to measure low speeds with a 1 PPR (pulse per revolution) sensor. For low PPRs, using the Period Measurement Method is suggested. If I get the period of the signal,...
-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
2 answers
166 views

PCB Design review for STM32 USB-UART bridge

Could anyone review the schematic for CH340 chip. My goal is to drive STM32F030C8T6 automatically into bootloader mode while uploading code. Unfortunately I am not able to program this board without ...
1 vote
1 answer
661 views

STM32 with encoder

I'm using STWINKT1 board connected to encoder to timer 3. I want to get a interrupt every time that the encoder count is 300, so the code in the interrupt is: ...
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 ...
0 votes
2 answers
162 views

STM32F4 USART: start bit detection sequence when oversampling by 8

I'm using the USART on an STM32F4 series MCU. I'm wondering how the receiver detects the start bit when oversampling by 8 is set. The reference manual says the start bit detection sequence is the same ...
-1 votes
3 answers
5k views

Keil Error: Not a genuine ST Device! Abort connection

I am using ST-link V2 for programming/ debugging my STM32F103C8t MCU using Keil. So the problem is that when I try to program the STM32 controller it shows a popup error Not a genuine ST Device! Abort ...
1 vote
2 answers
212 views

How can I get roll, pitch, and yaw data from an ISM330DLC sensor?

I have code to receive data from both the accelerometer and the gyroscope in X,Y Z axis. According to the datasheet, those are two's complement data. The data read by registers. Can you make sure that ...
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
477 views

STM32 SVPWM switch timing algorithm

I am designing a 3-phase to 3-phase matrix converter modulated using SVPWM on an STM32F767ZI and I am wondering how you guys would recommend I design the following timing algorithm: Figure 12 above ...
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
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
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,...
-1 votes
1 answer
597 views

NUCLEO-H723ZG HAL LWIP won't ping

I am having issues creating the simplest setup with this board. LWIP initializes, I can see my static IP address in the debugger. I can detect if cable is plugged-in/unplugged. MPU is configured and I ...

1
2 3 4 5
93