STM32 MCUs Products

Ask questions, find answers, and share insights on STM32 products and their technical features.

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Resolved! I am having an issue with my STM32F446 where I am experiencing a hardfault right after calling HAL_FLASH_Program to write data to internal flash, when I check the CFSR registerI see that the UNDEFINSTR flag is set to high.

I am using the following code to write data to flash memory:#include "stm32f4xx_hal.h"#include "stm32f4xx_hal_flash.h"#define DATA_SIZE 4int main(void){   uint32_t data[DATA_SIZE] = {0x12345678, 0x90ABCDEF, 0xDEADBEEF, 0xCAFEBABE};   uint32_t address...

I have written a simple application that takes characters from one UART and relays them to another. main is empty. Only two callbacks of HAL Rx and Tx are used.

Why, when transmitting at 115200 baud, after transmitting the Tx stop bit, the callback occurs after 8.5us? Does HAL add more delay? When using GPIO I measure the time on the scope from stop bit to stop bit I get 100us instead of 87us. Configuration ...

MPoll.1 by Associate
  • 529 Views
  • 2 replies
  • 0 kudos

FW Memory limitations.

Let's say that i am programming a FW that should read data from peripherals.How could I know what are my stack and heap and in general, my memory limitations?I am working with STM32U585 and searched in the reference manual, but could not find the ans...

bmn by Associate II
  • 1388 Views
  • 5 replies
  • 0 kudos

The way to disable ADC completely?

I am using STM32G070 with CubeMX HAL code.  The system runs into STOP mode from time to time. I need turn off the ADC before it entering the STOP.  Here is my testing:If running the MCU without ADC by commenting out MX_ADC1_Init(), the system shows 3...

STM32H7 SPI CS Question

I have been having a bit of trouble getting an SPI CS line to behave as I expect it should. I have attached a snippet from the technical reference manual below that describes the operation modes of the CS line:I am currently trying to send packets of...

0693W00000aJmNZQA0.png 0693W00000aJmOXQA0.png
AMerc.8 by Associate II
  • 1563 Views
  • 5 replies
  • 0 kudos

can anyone tell me why its not continue read ,write and erase is not happening...in this program, only one time it will done read write and erase and next time when its again going in the while loop nothing happening...

 while (1) {  /* USER CODE END WHILE */ uint32_t Page=0x000000C8; //0x08040000 uint32_t B =FLASH_BANK_2 ;   FLASH_PageErase(Page,B); HAL_FLASH_Unlock(); __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_ALL_ERRORS); uint64_t d={0x1111111111111123};...

SDhka.1 by Associate II
  • 1068 Views
  • 5 replies
  • 0 kudos