xiaoxiang781216 commented on PR #16642:
URL: https://github.com/apache/nuttx/pull/16642#issuecomment-3062542397

   > I replaced `ftl_initialize` and `bchdev_register` with 
`register_mtddriver` call, but it seems all data are now written to a 
pseudofile in RAM memory, not to the physical device. I did the same changes as 
you in `boards/arm/samv7/common/src/sam_progmem.c`, so the registration process 
should be fine (also tested on progmem, that has same issues). Maybe we should 
use `register_partition_with_mtd` or `register_mtdpartition` here instead of 
`register_mtddriver`?
   
   do you pass the right file name to open? if you enable 
CONFIG_PSEUDOFS_FILE(https://github.com/apache/nuttx/blob/master/fs/vfs/Make.defs#L46-L48)
 and pass the wrong name, a pseudo file will be created on RAM.


-- 
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