STM32CubeIde v1.4.2: ERROR: No source available for memcpy()....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-05 3:32 PM
The simple project below is created in v1.4.2 and generate a 100% recreatable error for me. I cannot find a way how to fix it and need help. I'm new in STM32 and may be it's a simple error. I want to attend a read/write FLASH access (the last flash page of STM32F030F4P6). When I try to read it the "No source available for memcpy()...." appears...
- Labels:
-
STM32CubeIDE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-05 3:38 PM
You can't treat FLASH as if it were RAM. To write to flash, you need to unlock, erase the page, write the data, and relock the flash.
If you're trying to emulate eeprom, see this for one possible implementation:
https://www.st.com/en/embedded-software/stsw-stm32117.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-05 3:54 PM
Yes, I know about write steps. The project included is an example where the simple read flash operation also generate a error.
