mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-09-23 10:18:30 +08:00
fix(airbrainh743): re-enable the W25N NAND flash driver (#28675)
The NuttX 12.12.0 defconfig refresh dropped CONFIG_MTD_W25N and CONFIG_W25N_SPIFREQUENCY from this board while the other W25N boards (kakuteh7mini, kakuteh7v2) kept them. The option still exists in NuttX 12.12 and defaults to off, and the board's init.c only registers the flash under #ifdef CONFIG_MTD_W25N, so the onboard 128 MB NAND was no longer initialised: no /fs/flash, no logging, no flash-backed dataman. Restore both options with the 104 MHz SPI frequency the board used before. Signed-off-by: Julian Oes <julian@oes.ch>
This commit is contained in:
@@ -133,6 +133,7 @@ CONFIG_MTD=y
|
||||
CONFIG_MTD_BYTE_WRITE=y
|
||||
CONFIG_MTD_PARTITION=y
|
||||
CONFIG_MTD_PROGMEM=y
|
||||
CONFIG_MTD_W25N=y
|
||||
CONFIG_NAME_MAX=40
|
||||
CONFIG_NSH_ARCHINIT=y
|
||||
CONFIG_NSH_ARGCAT=y
|
||||
@@ -250,4 +251,5 @@ CONFIG_USBDEV=y
|
||||
CONFIG_USBDEV_BUSPOWERED=y
|
||||
CONFIG_USBDEV_MAXPOWER=500
|
||||
CONFIG_USEC_PER_TICK=1000
|
||||
CONFIG_W25N_SPIFREQUENCY=104000000
|
||||
CONFIG_WATCHDOG=y
|
||||
|
||||
Reference in New Issue
Block a user