6 years, 7 months ago.

Write internal Flash Memory on xDot mbed 0s 5 (stm32l151ccu6)

Hi ! I 'm trying to write in the internal flash memory of an xDot (stm32l151ccu6) using xDotlib and mbed0s5 without success. I follow this example https://github.com/ARMmbed/mbed-os-example-fat-filesystem/blob/master/main.cpp , but in the line 36 i got this error:

[INFO] Opening a new file, numbers.txt. [INFO] Failure. 2

that means that the file could not be created, and the fopen returns null. I would apreciate if someone giveme a tip to solve this issue.

Thanks in advance.

Be the first to answer this question.