vedderb / bldc

The VESC motor control firmware
2.09k stars 1.31k forks source link

Feature Request: Keep track of write-erase cycles #653

Open 1zun4 opened 9 months ago

1zun4 commented 9 months ago

Some people are concerned about the flash endurance of the STM32F405RGT6 being worn out by the odometer. It is probably not a big deal in reality, but I think VESC should keep track of the count and give the user a warning when they are about to hit 10k.

image

tmgofer commented 9 months ago

Hi, I'm new to the project, so obviously I don't know much about environment and constraints... But how about implementing wear leveling of flash memory? EEPROM emulation could come in handy. (ref. AN3969 Application note EEPROM emulation in STM32F40x/STM32F41x microcontrollers)