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

Size of buffer during NVM read #137

Open
ArkadiuszKuleta opened this issue Feb 13, 2023 · 0 comments
Open

Size of buffer during NVM read #137

ArkadiuszKuleta opened this issue Feb 13, 2023 · 0 comments
Labels
question Further information is requested

Comments

@ArkadiuszKuleta
Copy link

Hello

I am porting hardware driver to another MCU. NVM driver has function
static uint32_t DrvNvmRead (uint32_t start, uint8_t * buffer, uint32_t size)
which copy data from NVM to buffer with selected size.

I would like to use safe memcpy function to implement it but I need size of buffer where data is copied.
What is size of buffer when DrvNvmRead?
If its called from many modules what is worst case (smallest buffer)?
I can assume that you check that interanally, that size bytes will fit to buffer but it will be better to get that information.

Thanks,
Arek

@michael-hillmann michael-hillmann added the question Further information is requested label Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants