cancel
Showing results for 
Search instead for 
Did you mean: 

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

ivainc
Associate III

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

2 REPLIES 2
TDK
Guru

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
Associate III

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