I am using Arduino IDE to program my stm32f103c8t6 on a bluepill development board. Using the library in stm32duino package I have utilized the Emulated EEPROM for storing data. However, the default size for this EEPROM is only 1kb and I need more space(at least 4kb). Is there a way to increase the size of this emulated EEPROM? my micro controller has 128kb flash memory size.
Asked
Active
Viewed 745 times
0
-
1If you are using EEPROM library that came with stm32duino, the EEPROM is already defined as 4k, see the [source code](https://github.com/stm32duino/Arduino_Core_STM32/blob/master/libraries/EEPROM/src/utility/stm32_eeprom.h#L59-L61). – hcheung Mar 12 '21 at 14:40
-
But the ```EEPROM.length()``` returns 1024. Am I doing sth wrong? – Hamid Rajabi Mar 12 '21 at 19:18
-
1Which library you are using? – hcheung Mar 13 '21 at 00:26
-
EEPROM library provided in the examples for GENERIC stm32F1. – Hamid Rajabi Mar 13 '21 at 17:48
-
@hcheung Is there a possibility that I am using the wrong library? – Hamid Rajabi Mar 15 '21 at 08:21
-
The source code link that I provided on the previous comment is the one from STM32duino library, I don't see a method called `EEPROM.length()`. – hcheung Mar 15 '21 at 13:36
-
In this library https://github.com/stm32duino/Arduino_Core_STM32/blob/master/libraries/EEPROM/src/EEPROM.h] in line 223 is the ``length()`` method. – Hamid Rajabi Mar 15 '21 at 20:08
-
@hcheung Is this the right place? – Hamid Rajabi Mar 21 '21 at 18:19