Send from ROM memory #3270
Replies: 2 comments 1 reply
-
Perhaps you should do that by storing your data in an embedded file system. The concept of that tutorial is not about constant data. I don't envision we might pursue anything other than that, as in our measurements the copy overhead is negligible. |
Beta Was this translation helpful? Give feedback.
-
I think using the filesystem virtualization layer, i can model my ROM as a file system with a single file, then the client can request this "file". And i think it would work for my ROM use case. Perhaps can close then. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've read the tutorial here about sending large amounts of data and find it a little lacking in the scenario where memory is stored in ROM. The premise of the huge response tutorial is that embedded devices should chunk up requests into smaller chunks, because embedded devices have limited RAM.
However, it is possible to send large amount of data from ROM. We can bypass any mem copies into the io buffers and simply maintain state of how much is left to send by tracking sent bytes on each call from poll, and simply increase a index tracking a pointer in memory in ROM.
There are a few use cases for this scenario.
We have an embedded system that logs events into it's persistent storage. A client would like to read this log history from the persistent storage.
You can also serve packed web images from const memory instead of copying into io buffers.
probably more!
Beta Was this translation helpful? Give feedback.
All reactions