xiaoxiang781216 commented on PR #6850:
URL: https://github.com/apache/incubator-nuttx/pull/6850#issuecomment-1215580496

   > I’m not sure how this would work. The Pico does have a flash chip where 
the program is loaded but no file system is configured by default. If we had a 
filesystem we could easily copy the chip firmware as it is supplied by pico-sdk 
as a binary file which we could read from anywhere. Putting this on a 
filesystem would not actually help though. It is easy enough to add the binary 
data to the NuttX image, and it would wind up stored on the same flash chip 
anyway. Why add file system overhead.
   
   If you don't have the real file system, you can try ROMFS which is bundled 
into your image directly, here is an example ROMFS usage:
   
https://github.com/apache/incubator-nuttx/blob/master/boards/sim/sim/sim/src/Makefile#L58
   
   > Loading the nvram image is more of a problem. It is only available from 
pico-sdk as an include file. That is useless at run time, and if I were to pull 
the data out of that include to make a file that could be loaded at run-time, 
I’d still need to store it somewhere in the repo, which it the issue we’re 
trying to avoid.
   
   nvram image is normally specific to your hardware design, so it's always 
good to put into your board specific folder instead of the common place.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to