I'm not sure where feature requests are supposed to go, so I'll put it here and hopefully someone can help me point it in the right direction.
The flashlib library is generally great, but it has one small and very limiting omission. I'm using the XC-2 demo board with an Atmel AT25DF041A on it. The only erase function in flashlib is the sector erase which is a bit inflexible and makes it really difficult to use the data section. The irony of this is that according to the spec config structure it's actually using the 4kB block erase to achieve the sector erase.
So, my request is, please could we have a function to do a sub-sector/block erase as specified in the config structure?
flashlib request
-
- XCore Addict
- Posts: 131
- Joined: Wed Aug 03, 2011 9:13 am
-
- XCore Expert
- Posts: 967
- Joined: Thu Dec 10, 2009 9:20 pm
- Location: Bristol, UK
-
- Experienced Member
- Posts: 104
- Joined: Fri Dec 11, 2009 8:29 pm
FYI. If you don't want to wait and want to modify the library yourself the source is on github:
https://github.com/xcore/sc_flash
https://github.com/xcore/sc_flash