SPI NAND 配置
SPI NAND 驱动配置
- Baremetal 配置在 Luban-Lite 根目录下执行
scons --menuconfig
,进入 menuconfig 的功能配置界面,按如下选择:Board options ---> [*] Using Qspi0 [ ] Using Qspi1 [ ] Using Qspi2 [ ] Using Qspi3 Qspi0 Parameter ---> (100000000) Max frequency(Hz) [*] QSPI0 Devices: SPINAND ---> --- QSPI0 Devices: SPINAND (100000000) SPINAND bus frequency(Hz) [*] Continuous Read Mode Enable //部分 NAND 支持该模式 Drivers options ---> Peripheral ---> -*- SPINAND Driver library [*] Support Winbond SPI NAND AIC Bare Driver ---> [*] Enable AIC MTD Bare Driver
为了方便配置, 使能 AIC_QSPI0_DEVICE_SPINAND 后, 会自动选上 AIC_SPINAND_DRV, LPKG_USING_SPINAND, AIC_MTD_BARE_DRV
- RTOS 配置在 Luban-Lite 根目录下执行
scons --menuconfig
,进入 menuconfig 的功能配置界面,按如下选择:Board options ---> [*] Using Qspi0 [ ] Using Qspi1 [ ] Using Qspi2 [ ] Using Qspi3 Qspi0 Parameter ---> (100000000) Max frequency(Hz) [*] QSPI0 Devices: SPINAND ---> --- QSPI0 Devices: SPINAND (100000000) SPINAND bus frequency(Hz) [*] Continuous Read Mode Enable //部分 NAND 支持该模式 Drivers options ---> Peripheral ---> -*- SPINAND Driver library [*] Support Winbond SPI NAND Rt-Thread options ---> RT-Thread Components ---> Device Drivers ---> -*- Using MTD Nand Flash device drivers
为了方便配置, 使能 AIC_QSPI0_DEVICE_SPINAND 后, 会自动选上 AIC_SPINAND_DRV, LPKG_USING_SPINAND, RT_USING_MTD_NAND