STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

FLASH_WaitForLastOperation returns error in STM32G070

I try to erase a page using this code:bool EraseFlash() { uint32_t FirstPage = 0, NbOfPages = 0; uint32_t PageError = 0; int i; FLASH_EraseInitTypeDef EraseInitStruct = {0};   HAL_FLASH_Unlock(); FirstPage = GetPage(FLASH_START);   /* Get the ...

rickard2 by Associate III
  • 5658 Views
  • 10 replies
  • 0 kudos

Resolved! Running a function on ITCMRAM

Hello, ı want to run a function in ITCMRAM area. But as long as i call the function i enter HardFaultI added code snippet below(just the ITCMSection part) to the linker script.SECTIONS { /* The startup code goes first into FLASH */ .isr_vector : ...

Resolved! STM32G0B1RCT6 USB_DRD_FS Doubt

hi,Using STM32G0B0CET6USB_DRD_FS---Host_Only_FS,USB_HOST---Mass Storage Host Class,FATFS---USB DiskUSB Interrupt---Enable. My requirement: i just want to create  and write the file to usb_host.c and whenever i pluged the usb, the file automatically c...

Screenshot 2024-09-26 145107.png

CAN Bootloader in STM32L433 Nucleo-64

Hi,  I'm trying to use built in can bus bootloader in STM32L433 Nucleo Board. To enter the bootloader, I configure the Flash option byte as below:       void configure_bootloader_option_bytes(void) { // Define a structure to hold the option byte ...

KAhmed_0-1727207197556.png KAhmed_1-1727207307621.png
KAhmed by Associate II
  • 924 Views
  • 4 replies
  • 0 kudos

Resolved! LED won't toggle

I am trying to toggle one of the LED lights of STM32 NUCLEO-L552ZE-Q board. I am working with the latest version of STM32CubeIDE 1.16.1. The steps I followed are given in the picture. However, I find this error when I debugg:set *(int *)0xE000EDFC=*(...

emb_rf by Associate III
  • 4012 Views
  • 23 replies
  • 6 kudos

Resolved! Configuring DQS Delay for OctalFlash on STM32U5A9J-DK.

Hello STM Community,I am currently working on the STM32U5A9J-DK board and interfacing with an OctalFlash memory. I need assistance in optimizing the data capture process using the DQS (Data Strobe) signal.In my setup, the OctalFlash sends both DQS an...

sohm by Associate III
  • 1527 Views
  • 7 replies
  • 2 kudos

I2C Communication Between STM32F446RE and MCP4725

Hello everyone,I'm working on a project with an STM32F446RE, a MCP4725 DAC, and a potentiometer to simulate the throttle of an electric racing motorcycle. My goal is to read the potentiometer value through the ADC of the STM32 and then transmit it vi...

Soniaa12 by Associate
  • 744 Views
  • 1 replies
  • 0 kudos