Skip to main content
ivainc
Associate III
October 5, 2020
Question

STM32CubeIde v1.4.2: ERROR: No source available for memcpy()....

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...

This topic has been closed for replies.

2 replies

TDK
October 5, 2020

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

"If you feel a post has answered your question, please click ""Accept as Solution""."
ivainc
ivaincAuthor
Associate III
October 5, 2020

Yes, I know about write steps. The project included is an example where the simple read flash operation also generate a error.