Category "stm32"

"memory allocation error: block too big" doing simple integer division

I have a weird issue. LUA 5.3.5, compiled on STM32F429. Free RAM is about 1Mb (memory allocation is using external SDRAM, not the more limited internal RAM on

radio init planting with i2c communication

I'm using a STM32WL55JC in dual core configuration to communicate with LoRa protocol. I'm also working on an OLED display interface using I2C communication on t

STM32F469-discovery CAN BUS configuration

I initialized the CAN2 via STM32CubeIDE (from .ioc file) but the stm32f4xx_hal_can.c file is not imported in the Drivers/STM32F4xx_HAL_Driver folder. So I have

Yocto Build with HDMI STM32MP1-DK1 no display

Ive been following the Digi-Key introduction to Yocto project on the STM32MP1-DK1: link here Ive gone through all the tutorials and had success setting up a cus

STM32 Multi-Channel ADC. Unexpected behaviour when unpopulated

I have added ADC functionality to my Nucleo-F446RE development board. 4 channels, DMA enabled, scan and continuous conversion mode enabled, DMA continuous reque

Why would ch341-uart is disconnected from ttyUSB?

Here's the deal, I want to flash my stm32 board with my USB serial port. And my stm32 board comes with an extended board which carries CH340. When I connected t

Blackpill STM32F411CEU6 - PWM with libopencm3 not working

I'm trying to get PWM working with timer 3, I've followed the reference manual and believe i have everything correct but i get nothing on the output. My code is

How to set up interrupt registers on the stm32 microcontrollers?

I wanted to toggle a led status by reading a push button status's using interrupt instead of polling. I'm using a Nucleo board F411 and a register based program

Stm32CubeProgrammer not connecting (no error msg) using ST-LINK V2 dongle and Lora E5 mini board

I've tried countless settings in an attempt to program my stm32 board. The main tutorial I followed is https://wiki.seeedstudio.com/LoRa_E5_mini/. I have connec

Code for increasing clock speed of STM32F401 not working

I was trying to increase the clock speed of STM32F401 to 84Mhz using PLL. I tried for log time. But the code is not working. Can anyone check what needs to be d

Why are periperal registers 16 bit only on 32 bit MCUs such as STM32 and GD32VF103?

On 32 bit microcontrollers such as the ST STM32F103 (ARM core) or the GigaDevices GD32VF103 (RISC-V core) there are many registers for dealing with peripherals.

Qemu STM32 Emulation

I run stm32 blinky example on windows using Qemu plugins with eclipse. (https://www.youtube.com/watch?v=Zvbarf1CSGs&t=628s) I can see green led on and off a

c code to paint an embedded stack with a pattern say (0xABABABAB) just after main begins?

I am working on dynamic memory analysis using stack painting/foot print analysis method. dynamic-stack-depth-determination-using-footprint-analysis basically t

How to fix STM32CubeProgrammer No STM32 Target Found

Hello guys Any one here faced this problem before ? After I run my code into my stm32f446re I couldn't upload any code after my last code and give me this erro

Callback in STM32 isn't called

Trying to make simple PWM transmitter i faced with a problem. I have TIM2 with Channel2 (in PWM Generation mode) on board NUCLEO F042K6 and USART1 connected to

stm32f103 usb failed with "No open pipes!"

I am trying connect my stm32f103c8 board to PC with several examples from internet, but all of them face the same issue, they can not be installed successfully.

if the data is the same add it to the array only one time

I have predefined addresses (address1,address2 and address3) and i want to : If each address variables is equal to the first 6 variables of my data then i want

What is the difference within the compiler between debugging and running the code? (STM32)

somehow when i am running my code, it seems like one GPIO Port isn't being initialized, meanwhile if i am debugging, it is. I am initializing two sensors: struc

STM32 HAL Library RTC Alarm

I am having a problem about RTC Alarm configuration. First of all, I tried example code which is provided by Cube, and It works. But in my code, it doesn't work

STM32 HAL Library RTC Alarm

I am having a problem about RTC Alarm configuration. First of all, I tried example code which is provided by Cube, and It works. But in my code, it doesn't work