Because some problem with EEPROM emulation on STM32 MCU may be add any EEPROM chip ? It can be connect to I2C pins or to auxiliary pins (non arduino pins)
May be add any EEPROM to next Maple platform ?
(24 posts) (9 voices)-
Posted 5 years ago #
-
Hmm, im not sure what you mean when you described the problem with "eeprom emulation?" Do you mean to achieve more congruence with arduino's progmem/eeprom access constructs? Im fairly certain we can wrap up a flash interface that obeys arduino's
Posted 5 years ago # -
i means hardware eeprom chip (any type) with arduino eeprom access. not a flash emulation of eeprom. Of course flash emulation helpfull but for some reason hardware eeprom chip more preffered. It's can be SOT23-5 small eeprom chip or SO8.
Posted 5 years ago # -
Hmmm. Can you argue in favor in adding this on the board? We are EXTREMELY hesitant to add new chips/features to the board - thats what shields are for. If we did add an EEPROM, perhaps we should add an RTC, and perhaps an FTDI chip as well, an SD card slot just makes sense, and if you throw a max232 chip and a serial port on there the serial port would actually be rs232....you see where I am going with this. I am not trying to be dismissive, I am just soliciting a bit more information about why you think this feature is important.
Posted 5 years ago # -
:) You are right.
There is no limit to perfection.
I say about EEPROM because Atmel has EEPROM on chip and some soft use it for storage. STM32 suggest only flash emulation for EEPROM but with a 10000 write cycles and other limitations.
Forget about it.Posted 5 years ago # -
To be honest, while I can see some use for an EEPROM, I've never once used it in my projects (not to say I won't), and if you do need it, it's not too hard to add one in to your design.
Posted 5 years ago # -
yea 10,000 writes is a pretty thin. We might go the SD flash route there to do better
Posted 5 years ago # -
I publish Maple library for EEPROM emulation on flash (2 flash pages needed).
http://akb77.com/g/mcu/maple-eeprom-emulation-library/Posted 5 years ago # -
x893: thanks for the library! would you mind us linking to this?
Posted 5 years ago # -
You can use this library as you want. Link to library in first line of post. I test it with 0.0.8 version and with ...RET6 and ...RBT6 MCU. flash_stm32 contain functions excluded from flash.c. If need you can mail me or skype (see contacts on site)
Posted 5 years ago # -
Hi,
I try to start with a smal project and need an eeprom emulation.
I use Maple IDE 0.10 Beta with an RET6 chip.If I try to compile the sample sketch I get many errors :(
The main problems I think are in flash_stm32.c with __ser_bits, __write, ...
Are there any changes between 0.8 and 0.10 oder between RET6 and RBT6?Please help, many thanks!
Posted 4 years ago # -
ratho,
Yes, there are many changes in the 0.0.10 software that will cause compatibility problems with software built on older versions of libmaple. It doesn't have to do with RBT6 vs. RET6.
However, the good news is that as of 0.0.10, the low-level C APIs are now stable, so if x893 is willing to update his library, it will work for the foreseeable future.
Posted 4 years ago # -
ok, now I can compile the code without errors. I added
#define __set_bits(addr, mask) *(volatile uint32*)(addr) |= (uint32)(mask) #define __clear_bits(addr, mask) (*(volatile uint32*)(addr) &= (uint32)~(mask)) #define __get_bits(addr, mask) (*(volatile uint32*)(addr) & (uint32)(mask)) #define __read(reg) *(volatile uint32*)(reg) #define __write(reg, value) *(volatile uint32*)(reg) = (value)
in flash_stm32.h
Posted 4 years ago # -
thanks
Posted 4 years ago # -
hello,
im trying to use the eeprom emulation library. With ratho's changes compiled succesfully in 0.012 IDE with RET6 board. Now i want this library for a program in my maple mini but when im trying to compile my sketch that uses the emulation for that board i get these errors..C:\....\maple-ide-0.0.12-windowsxp32\maple-ide-0.0.12-windowsxp32\libraries\EEPROM\flash_stm32.c:6: warning: "FLASH_BASE" redefined
C:\....\maple-ide-0.0.12-windowsxp32\maple-ide-0.0.12-windowsxp32\hardware\leaflabs\cores\maple/flash.h:55: note: this is the location of the previous definition
In file included from
C:\....\maple-ide-0.0.12-windowsxp32\maple-ide-0.0.12-windowsxp32\libraries\EEPROM\EEPROM.cpp:2:C:\....\maple-ide-0.0.12-windowsxp32\maple-ide-0.0.12-windowsxp32\libraries\EEPROM\/EEPROM.h:13: error: #error "No MCU type specified. Add something like -DMCU_STM32F103RB " "to your compiler arguments (probably in a Makefile)."
C:\....\maple-ide-0.0.12-windowsxp32\maple-ide-0.0.12-windowsxp32\libraries\EEPROM\/EEPROM.h:27: error: #error "No MCU type specified. Add something like -DMCU_STM32F103RB " "to your compiler arguments (probably in a Makefile)."
C:\....\maple-ide-0.0.12-windowsxp32\maple-ide-0.0.12-windowsxp32\libraries\EEPROM\/EEPROM.h:42: warning: scoped enums only available with -std=c++0x or -std=gnu++0x
C:\....\maple-ide-0.0.12-windowsxp32\maple-ide-0.0.12-windowsxp32\libraries\EEPROM\EEPROM.cpp: In constructor 'EEPROMClass::EEPROMClass()':
C:\....\maple-ide-0.0.12-windowsxp32\maple-ide-0.0.12-windowsxp32\libraries\EEPROM\EEPROM.cpp:284: error: 'EEPROM_START_ADDRESS' was not declared in this scope
C:\....\maple-ide-0.0.12-windowsxp32\maple-ide-0.0.12-windowsxp32\libraries\EEPROM\EEPROM.cpp:285: error: 'EEPROM_PAGE_SIZE' was not declared in this scope
Has anyone experienced the same problem?
Posted 4 years ago #
Reply »
You must log in to post.