Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Writing Half word (16-bit) instead of Word(32-bits) #5

Open
HamzaHajeir opened this issue Mar 4, 2020 · 6 comments
Open

Writing Half word (16-bit) instead of Word(32-bits) #5

HamzaHajeir opened this issue Mar 4, 2020 · 6 comments

Comments

@HamzaHajeir
Copy link

Hi

What would happen if I decided to store 16-bits variables instead of 32-bits ? Would that free up spaces ? As it's mentioned in ST EEPROM Emulation Docs

Or it's prohibited ?

Also, Can you provide an example to know where to start ? ST eeprom emulation has an example and clear way to use that lib. (EE_init() is the starter ofcourse.) But here it's confusing and don't know where to start, Don't know how it work, or how should it work. As whether it label pages in headers or not..

Thanks

@nimaltd
Copy link
Owner

nimaltd commented Mar 4, 2020

Hello. You can convert any data type to uint32 array by memcpy function.

@HamzaHajeir
Copy link
Author

Thanks,

How about the straight use of the library, Can you provide a demo example ?

@nimaltd
Copy link
Owner

nimaltd commented Mar 5, 2020

I dont have yet. But its simple.

@michelkeijzers
Copy link

First, thank you for creating this EEPROM library. I'm using it and it works. However, I'm wondering why in eepromConf.h, _EEPROM_USE_FLASH_PAGE is a define/constant. If it would be a variable, than some wear level machinism could be built in... is there a specific reason for it being constant?

@nimaltd
Copy link
Owner

nimaltd commented May 9, 2020

@michelkeijzers . waiting for next version :)

@michelkeijzers
Copy link

@michelkeijzers . waiting for next version :)

I already made changes, but in my own git repository https://github.com/michelkeijzers/FuzzTester2 ... Note however, I removed also a bit of code (for STMF0 since I will not use it), and I added some variables and extra functions, which might slow down (slightly) performance and memory usage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants