---
**[tickets:#464] Unexpected behavior of writing 512 page size NAND with
`oob_only` mode**
**Status:** new
**Milestone:** 0.12.0
**Labels:** nand flash
**Created:** Wed Feb 11, 2026 10:28 PM UTC by wuwbobo2021
**Last Updated:** Wed Feb 11, 2026 10:28 PM UTC
**Owner:** nobody
As far as I know, the `nand write` command is handled by
`handle_nand_write_command` in `flash/nand/tcl.c`, which initializes the input
data structure through `fileio` module and calls `nand_write_page` which calls
`nand_write_page_raw` under raw access mode (currrently the only available mode
for S3C series MPUs), which simply calls `nand_page_command` before
`nand_write_data_page`, and in `nand_page_command` there seems no support for
writing 512 page size NAND with `oob_only` mode, while it supports reading with
`oob_only` mode. But it does something without any warning.
Actually, this has caused a strange problem of damaging the first block at the
specific write offset.
---
Sent from sourceforge.net because [email protected] is
subscribed to https://sourceforge.net/p/openocd/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/openocd/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.