SPI NAND 驱动配置
Read time: 2 minute(s)
-
Baremetal 配置
在 Luban-Lite 根目录下执行 scons --menuconfig,进入 menuconfig 的功能配置界面,按如下选择。
Board options ---> [*] Using Qspi0 [ ] Using Qspi1 [ ] Using Qspi2 [ ] Using Qspi3 Qspi0 Parameter ---> (1) Max frequency(Hz) Set SPI0 bus width (Quad) ---> //配置 QSPI data width [*] QSPI0 Devices: SPINAND ---> --- QSPI0 Devices: SPINAND (100000000) SPINAND bus frequency(Hz) [*] Continuous Read Mode Enable //部分 SPI NAND 支持该模式 Drivers options ---> Peripheral ---> -*- SPINAND Driver library [*] Support Winbond SPI NAND //使能对应 spinand 芯片厂家配置 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) Set SPI0 bus width (Quad) ---> //配置 QSPI data width [*] QSPI0 Devices: SPINAND ---> --- QSPI0 Devices: SPINAND (100000000) SPINAND bus frequency(Hz) [*] Continuous Read Mode Enable //部分 SPI NAND 支持该模式 Drivers options ---> Peripheral ---> -*- SPINAND Driver library [*] Support Winbond SPI NAND //使能对应 spinand 芯片厂家配置 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