jingfei195887 commented on PR #16642: URL: https://github.com/apache/nuttx/pull/16642#issuecomment-3061127566
> 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`? @michallenc It's my mistake. Yes, you're absolutely right—there is indeed an issue here. From the context, the code is trying to create sub-partition devices based on the main MTD device progmem_mtd. I will fix this on my end. -- 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