Browse
STMicroelectronics Community
FAQs
Sign In
Product forums
STM32 MCUs
STM32 MCUs Products
STM32 MCUs Boards and hardware tools
STM32 MCUs Software development tools
STM32 MCUs Embedded software
STM32 MCUs TouchGFX and GUI
STM32 MCUs Motor control
STM32 MCUs Security
STM32 MCUs Wireless
STM32 MPUs
STM32 MPUs Products
STM32 MPUs Boards and hardware tools
STM32 MPUs Embedded software and solutions
STM32 MPUs Software development tools
MEMS and sensors
MEMS (sensors)
Imaging (sensors)
Automotive and Transportation
Automotive MCUs
AutoDevKit Ecosystem
GNSS positioning
Edge AI
Interface and connectivity ICs
Power management
ST25 NFC/RFID tags and readers
STM8 MCUs
Others: hardware and software
Analog and audio
Knowledge base
STM32 MCUs
STM32 MPUs
MEMS and sensors
Analog and audio
EMI filtering and signal conditioning
Interface and connectivity ICs
Power management
Quality & reliability
Academy
About
Community guidelines
Feedback forum
Community blog
Developer news
AMaha.1
Associate
since
2020-01-21
2023-06-14
User statistics
2
Posts
0
Solutions
0
Kudos given
0
Kudos received
STMicroelectronics Community
About AMaha.1
Options
Report User
User Activity
Posts
Replies
I'm using STM32F030K6T6TR and i'm trying to use the flash memory. It worked to erase the pages that i need but when i write i get a hard fault error
2020-01-21
#define FLASH_USER_START_ADDR 0x0800FC00UL#define FLASH_USER_END_ADDR 0x08010000UL uint32_t Address = 0, PageError = 0; __IO uint32_t data32 = 0 , MemoryProgramStatus = 0; /*Variable used for Erase procedure*/ static FLASH_EraseInitTypeDef Era...
Re: I'm using STM32F030K6T6TR and i'm trying to use the flash memory. It worked to erase the pages that i need but when i write i get a hard fault error
2020-01-21
Yes i wanted to try the FLASH_TYPEPROGRAM_DOUBLEWORD but i forgot to put the FLASH_TYPEPROGRAM_WORD back. It's still not working with the other options