From 42e01a80a063a00efb39ab55ad0dae23a7f74c97 Mon Sep 17 00:00:00 2001 From: Zhang <1310125025@qq.com> Date: Wed, 3 Apr 2024 10:34:02 +0800 Subject: [PATCH] =?UTF-8?q?[bsp][nxp]=E5=9F=BA=E4=BA=8EMCXN947=E7=9A=84spi?= =?UTF-8?q?=5Fdriver=E6=B7=BB=E5=8A=A0spi7=E8=AF=BB=E5=86=99W25Q64=5FFlash?= =?UTF-8?q?:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/nxp/mcx/mcxn/Libraries/drivers/drv_spi.c | 53 +- bsp/nxp/mcx/mcxn/frdm-mcxn947/.config | 26 +- .../mcx/mcxn/frdm-mcxn947/applications/main.c | 1 + bsp/nxp/mcx/mcxn/frdm-mcxn947/board/Kconfig | 4 + .../board/MCUX_Config/board/pin_mux.c | 6 + bsp/nxp/mcx/mcxn/frdm-mcxn947/project.uvoptx | 1420 +++++++++++++++- bsp/nxp/mcx/mcxn/frdm-mcxn947/project.uvprojx | 1478 ++++++++++++++--- bsp/nxp/mcx/mcxn/frdm-mcxn947/rtconfig.h | 14 + 8 files changed, 2697 insertions(+), 305 deletions(-) diff --git a/bsp/nxp/mcx/mcxn/Libraries/drivers/drv_spi.c b/bsp/nxp/mcx/mcxn/Libraries/drivers/drv_spi.c index 9752e20795..e664035b8d 100644 --- a/bsp/nxp/mcx/mcxn/Libraries/drivers/drv_spi.c +++ b/bsp/nxp/mcx/mcxn/Libraries/drivers/drv_spi.c @@ -20,6 +20,9 @@ enum #ifdef BSP_USING_SPI3 SPI3_INDEX, #endif +#ifdef BSP_USING_SPI7 + SPI7_INDEX, +#endif }; @@ -61,41 +64,25 @@ static struct lpc_spi lpc_obj[] = .name = "spi3", }, #endif +#ifdef BSP_USING_SPI7 + { + .LPSPIx = LPSPI7, + .clock_attach_id = kFRO_HF_DIV_to_FLEXCOMM7, + .clock_div_name = kCLOCK_DivFlexcom7Clk, + .clock_name = kCLOCK_FroHf, + .tx_dma_request = kDmaRequestMuxLpFlexcomm7Tx, + .rx_dma_request = kDmaRequestMuxLpFlexcomm7Rx, + .DMAx = DMA0, + .tx_dma_chl = 2, + .rx_dma_chl = 3, + .name = "spi7", + }, +#endif }; - -struct lpc_sw_spi_cs -{ - rt_uint32_t pin; -}; - - - - -rt_err_t rt_hw_spi_device_attach(const char *bus_name, const char *device_name, rt_uint32_t pin) -{ - rt_err_t ret = RT_EOK; - - struct rt_spi_device *spi_device = (struct rt_spi_device *)rt_malloc(sizeof(struct rt_spi_device)); - struct lpc_sw_spi_cs *cs_pin = (struct lpc_sw_spi_cs *)rt_malloc(sizeof(struct lpc_sw_spi_cs)); - - cs_pin->pin = pin; - rt_pin_mode(pin, PIN_MODE_OUTPUT); - rt_pin_write(pin, PIN_HIGH); - - ret = rt_spi_bus_attach_device(spi_device, device_name, bus_name, (void *)cs_pin); - - return ret; -} - - - static rt_err_t spi_configure(struct rt_spi_device *device, struct rt_spi_configuration *cfg) { rt_err_t ret = RT_EOK; -// struct lpc_spi *spi = RT_NULL; -// spi = (struct lpc_spi *)(device->bus->parent.user_data); -// ret = lpc_spi_init(spi->SPIx, cfg); return ret; } @@ -119,11 +106,11 @@ static rt_ssize_t spixfer(struct rt_spi_device *device, struct rt_spi_message *m struct lpc_spi *spi = (struct lpc_spi *)(device->bus->parent.user_data); - struct lpc_sw_spi_cs *cs = device->parent.user_data; +// struct lpc_sw_spi_cs *cs = device->parent.user_data; if(message->cs_take) { - rt_pin_write(cs->pin, PIN_LOW); + rt_pin_write(device->cs_pin, PIN_LOW); } transfer.dataSize = message->length; @@ -165,7 +152,7 @@ static rt_ssize_t spixfer(struct rt_spi_device *device, struct rt_spi_message *m if(message->cs_release) { - rt_pin_write(cs->pin, PIN_HIGH); + rt_pin_write(device->cs_pin, PIN_HIGH); } return message->length; diff --git a/bsp/nxp/mcx/mcxn/frdm-mcxn947/.config b/bsp/nxp/mcx/mcxn/frdm-mcxn947/.config index 338bd6419c..7219603bb1 100644 --- a/bsp/nxp/mcx/mcxn/frdm-mcxn947/.config +++ b/bsp/nxp/mcx/mcxn/frdm-mcxn947/.config @@ -140,7 +140,7 @@ CONFIG_RT_SERIAL_RB_BUFSZ=64 # CONFIG_RT_USING_I2C is not set # CONFIG_RT_USING_PHY is not set # CONFIG_RT_USING_ADC is not set -# CONFIG_RT_USING_DAC is not set +CONFIG_RT_USING_DAC=y # CONFIG_RT_USING_NULL is not set # CONFIG_RT_USING_ZERO is not set # CONFIG_RT_USING_RANDOM is not set @@ -150,7 +150,18 @@ CONFIG_RT_SERIAL_RB_BUFSZ=64 # CONFIG_RT_USING_PM is not set # CONFIG_RT_USING_RTC is not set # CONFIG_RT_USING_SDIO is not set -# CONFIG_RT_USING_SPI is not set +CONFIG_RT_USING_SPI=y +# CONFIG_RT_USING_SPI_BITOPS is not set +CONFIG_RT_USING_QSPI=y +# CONFIG_RT_USING_SPI_MSD is not set +CONFIG_RT_USING_SFUD=y +CONFIG_RT_SFUD_USING_SFDP=y +CONFIG_RT_SFUD_USING_FLASH_INFO_TABLE=y +CONFIG_RT_SFUD_USING_QSPI=y +CONFIG_RT_SFUD_SPI_MAX_HZ=50000000 +CONFIG_RT_DEBUG_SFUD=y +# CONFIG_RT_USING_ENC28J60 is not set +# CONFIG_RT_USING_SPI_WIFI is not set # CONFIG_RT_USING_WDT is not set # CONFIG_RT_USING_AUDIO is not set # CONFIG_RT_USING_SENSOR is not set @@ -1030,6 +1041,7 @@ CONFIG_PKG_RT_VSNPRINTF_FULL_VER="latest" # CONFIG_PKG_USING_ARDUINO_SEEED_LTC2941 is not set # CONFIG_PKG_USING_ARDUINO_SEEED_LDC1612 is not set # CONFIG_PKG_USING_ARDUINO_CAPACITIVESENSOR is not set +# CONFIG_PKG_USING_ARDUINO_JARZEBSKI_MPU6050 is not set # # Display @@ -1056,6 +1068,7 @@ CONFIG_PKG_RT_VSNPRINTF_FULL_VER="latest" # CONFIG_PKG_USING_ARDUINO_KALMANFILTER is not set # CONFIG_PKG_USING_ARDUINO_ARDUINOJSON is not set # CONFIG_PKG_USING_ARDUINO_TENSORFLOW_LITE_MICRO is not set +# CONFIG_PKG_USING_ARDUINO_RUNNINGMEDIAN is not set # # Data Storage @@ -1108,16 +1121,21 @@ CONFIG_SOC_MCXN947=y # # On-chip Peripheral Drivers # -# CONFIG_BSP_USING_DMA is not set +CONFIG_BSP_USING_DMA=y CONFIG_BSP_USING_PIN=y CONFIG_BSP_USING_UART=y CONFIG_BSP_USING_UART4=y CONFIG_BSP_USING_UART5=y CONFIG_BSP_USING_UART2=y # CONFIG_BSP_USING_I2C is not set -# CONFIG_BSP_USING_SPI is not set +CONFIG_BSP_USING_SPI=y +CONFIG_BSP_USING_SPI3=y +CONFIG_BSP_USING_SPI7=y +CONFIG_BSP_USING_SPI8=y # CONFIG_BSP_USING_ADC is not set +# CONFIG_BSP_USING_DAC is not set # CONFIG_BSP_USING_SDIO is not set +# CONFIG_BSP_USING_ETH is not set # CONFIG_BSP_USING_RTC is not set # CONFIG_BSP_USING_WDT is not set # CONFIG_BSP_USING_HWTIMER is not set diff --git a/bsp/nxp/mcx/mcxn/frdm-mcxn947/applications/main.c b/bsp/nxp/mcx/mcxn/frdm-mcxn947/applications/main.c index 2cecd6c694..2609527439 100644 --- a/bsp/nxp/mcx/mcxn/frdm-mcxn947/applications/main.c +++ b/bsp/nxp/mcx/mcxn/frdm-mcxn947/applications/main.c @@ -13,6 +13,7 @@ */ #include +#include #include "drv_pin.h" #define LEDB_PIN ((0*32)+10) diff --git a/bsp/nxp/mcx/mcxn/frdm-mcxn947/board/Kconfig b/bsp/nxp/mcx/mcxn/frdm-mcxn947/board/Kconfig index 3e335d22cf..437a701717 100644 --- a/bsp/nxp/mcx/mcxn/frdm-mcxn947/board/Kconfig +++ b/bsp/nxp/mcx/mcxn/frdm-mcxn947/board/Kconfig @@ -64,6 +64,10 @@ menu "On-chip Peripheral Drivers" bool "Enable Flexcomm3 as SPI" default n + config BSP_USING_SPI7 + bool "Enable Flexcomm7 as SPI" + default n + config BSP_USING_SPI8 bool "Enable Flexcomm8 as High Speed SPI" default y diff --git a/bsp/nxp/mcx/mcxn/frdm-mcxn947/board/MCUX_Config/board/pin_mux.c b/bsp/nxp/mcx/mcxn/frdm-mcxn947/board/MCUX_Config/board/pin_mux.c index 392a3ef26b..c95e8d454a 100644 --- a/bsp/nxp/mcx/mcxn/frdm-mcxn947/board/MCUX_Config/board/pin_mux.c +++ b/bsp/nxp/mcx/mcxn/frdm-mcxn947/board/MCUX_Config/board/pin_mux.c @@ -64,6 +64,12 @@ void BOARD_InitBootPins(void) // PORT1->PCR[4] = PORT_PCR_MUX(2) | PORT_PCR_PS(0) | PORT_PCR_PE(0) | PORT_PCR_IBE(1); /* FC3_4 D[3] */ // PORT1->PCR[5] = PORT_PCR_MUX(2) | PORT_PCR_PS(0) | PORT_PCR_PE(0) | PORT_PCR_IBE(1); /* FC3_5 D[2] */ + /* QSPI */ + PORT3->PCR[8] = PORT_PCR_MUX(3) | PORT_PCR_PS(0) | PORT_PCR_PE(0) | PORT_PCR_IBE(1); /* FC7_P0, MOSI */ + PORT3->PCR[9] = PORT_PCR_MUX(3) | PORT_PCR_PS(0) | PORT_PCR_PE(0) | PORT_PCR_IBE(1); /* FC7_P2, MISO */ + PORT3->PCR[7] = PORT_PCR_MUX(3) | PORT_PCR_PS(0) | PORT_PCR_PE(0) | PORT_PCR_IBE(1); /* FC7_P1, CLK */ + PORT3->PCR[0] = PORT_PCR_MUX(3) | PORT_PCR_PS(0) | PORT_PCR_PE(0) | PORT_PCR_IBE(1); /* FC7_P1, CS */ + PORT1->PCR[8] = PORT_PCR_MUX(2) | PORT_PCR_PS(0) | PORT_PCR_PE(1) | PORT_PCR_IBE(1); /* FC4_UART */ PORT1->PCR[9] = PORT_PCR_MUX(2) | PORT_PCR_PS(0) | PORT_PCR_PE(1) | PORT_PCR_IBE(1); /* FC4_UART */ diff --git a/bsp/nxp/mcx/mcxn/frdm-mcxn947/project.uvoptx b/bsp/nxp/mcx/mcxn/frdm-mcxn947/project.uvoptx index 8c8f6ed470..46e469b20e 100644 --- a/bsp/nxp/mcx/mcxn/frdm-mcxn947/project.uvoptx +++ b/bsp/nxp/mcx/mcxn/frdm-mcxn947/project.uvoptx @@ -73,11 +73,11 @@ 0 - 0 + 1 0 1 - 0 + 8 0 1 @@ -181,4 +181,1420 @@ + + Applications + 1 + 0 + 0 + 0 + + 1 + 1 + 1 + 0 + 0 + 0 + applications\main.c + main.c + 0 + 0 + + + + + Compiler + 1 + 0 + 0 + 0 + + 2 + 2 + 1 + 0 + 0 + 0 + ..\..\..\..\..\components\libc\compilers\armlibc\syscall_mem.c + syscall_mem.c + 0 + 0 + + + 2 + 3 + 1 + 0 + 0 + 0 + ..\..\..\..\..\components\libc\compilers\armlibc\syscalls.c + syscalls.c + 0 + 0 + + + 2 + 4 + 1 + 0 + 0 + 0 + ..\..\..\..\..\components\libc\compilers\common\cctype.c + cctype.c + 0 + 0 + + + 2 + 5 + 1 + 0 + 0 + 0 + ..\..\..\..\..\components\libc\compilers\common\cstdlib.c + cstdlib.c + 0 + 0 + + + 2 + 6 + 1 + 0 + 0 + 0 + ..\..\..\..\..\components\libc\compilers\common\cstring.c + cstring.c + 0 + 0 + + + 2 + 7 + 1 + 0 + 0 + 0 + ..\..\..\..\..\components\libc\compilers\common\ctime.c + ctime.c + 0 + 0 + + + 2 + 8 + 1 + 0 + 0 + 0 + ..\..\..\..\..\components\libc\compilers\common\cunistd.c + cunistd.c + 0 + 0 + + + 2 + 9 + 1 + 0 + 0 + 0 + ..\..\..\..\..\components\libc\compilers\common\cwchar.c + cwchar.c + 0 + 0 + + + + + DeviceDrivers + 1 + 0 + 0 + 0 + + 3 + 10 + 1 + 0 + 0 + 0 + ..\..\..\..\..\components\drivers\core\device.c + device.c + 0 + 0 + + + 3 + 11 + 1 + 0 + 0 + 0 + ..\..\..\..\..\components\drivers\hwtimer\hwtimer.c + hwtimer.c + 0 + 0 + + + 3 + 12 + 1 + 0 + 0 + 0 + ..\..\..\..\..\components\drivers\ipc\completion.c + completion.c + 0 + 0 + + + 3 + 13 + 1 + 0 + 0 + 0 + ..\..\..\..\..\components\drivers\ipc\condvar.c + condvar.c + 0 + 0 + + + 3 + 14 + 1 + 0 + 0 + 0 + ..\..\..\..\..\components\drivers\ipc\dataqueue.c + dataqueue.c + 0 + 0 + + + 3 + 15 + 1 + 0 + 0 + 0 + ..\..\..\..\..\components\drivers\ipc\pipe.c + pipe.c + 0 + 0 + + + 3 + 16 + 1 + 0 + 0 + 0 + ..\..\..\..\..\components\drivers\ipc\ringblk_buf.c + ringblk_buf.c + 0 + 0 + + + 3 + 17 + 1 + 0 + 0 + 0 + ..\..\..\..\..\components\drivers\ipc\ringbuffer.c + ringbuffer.c + 0 + 0 + + + 3 + 18 + 1 + 0 + 0 + 0 + ..\..\..\..\..\components\drivers\ipc\waitqueue.c + waitqueue.c + 0 + 0 + + + 3 + 19 + 1 + 0 + 0 + 0 + ..\..\..\..\..\components\drivers\ipc\workqueue.c + workqueue.c + 0 + 0 + + + 3 + 20 + 1 + 0 + 0 + 0 + ..\..\..\..\..\components\drivers\pin\pin.c + pin.c + 0 + 0 + + + 3 + 21 + 1 + 0 + 0 + 0 + ..\..\..\..\..\components\drivers\serial\serial.c + serial.c + 0 + 0 + + + 3 + 22 + 1 + 0 + 0 + 0 + ..\..\..\..\..\components\drivers\spi\spi_core.c + spi_core.c + 0 + 0 + + + 3 + 23 + 1 + 0 + 0 + 0 + ..\..\..\..\..\components\drivers\spi\spi_dev.c + spi_dev.c + 0 + 0 + + + 3 + 24 + 1 + 0 + 0 + 0 + ..\..\..\..\..\components\drivers\spi\spi_flash_sfud.c + spi_flash_sfud.c + 0 + 0 + + + 3 + 25 + 1 + 0 + 0 + 0 + ..\..\..\..\..\components\drivers\spi\spi_msd.c + spi_msd.c + 0 + 0 + + + 3 + 26 + 1 + 0 + 0 + 0 + ..\..\..\..\..\components\drivers\spi\spi-bit-ops.c + spi-bit-ops.c + 0 + 0 + + + 3 + 27 + 1 + 0 + 0 + 0 + ..\..\..\..\..\components\drivers\spi\sfud\src\sfud.c + sfud.c + 0 + 0 + + + 3 + 28 + 1 + 0 + 0 + 0 + ..\..\..\..\..\components\drivers\spi\sfud\src\sfud_sfdp.c + sfud_sfdp.c + 0 + 0 + + + 3 + 29 + 1 + 0 + 0 + 0 + ..\..\..\..\..\components\drivers\spi\qspi_core.c + qspi_core.c + 0 + 0 + + + + + Drivers + 1 + 0 + 0 + 0 + + 4 + 30 + 1 + 0 + 0 + 0 + board\MCUX_Config\board\clock_config.c + clock_config.c + 0 + 0 + + + 4 + 31 + 1 + 0 + 0 + 0 + board\MCUX_Config\board\pin_mux.c + pin_mux.c + 0 + 0 + + + 4 + 32 + 1 + 0 + 0 + 0 + board\board.c + board.c + 0 + 0 + + + 4 + 33 + 1 + 0 + 0 + 0 + ..\Libraries\drivers\drv_pin.c + drv_pin.c + 0 + 0 + + + 4 + 34 + 1 + 0 + 0 + 0 + ..\Libraries\drivers\drv_uart.c + drv_uart.c + 0 + 0 + + + 4 + 35 + 1 + 0 + 0 + 0 + ..\Libraries\drivers\drv_spi.c + drv_spi.c + 0 + 0 + + + + + Finsh + 1 + 0 + 0 + 0 + + 5 + 36 + 1 + 0 + 0 + 0 + ..\..\..\..\..\components\finsh\shell.c + shell.c + 0 + 0 + + + 5 + 37 + 1 + 0 + 0 + 0 + ..\..\..\..\..\components\finsh\msh.c + msh.c + 0 + 0 + + + 5 + 38 + 1 + 0 + 0 + 0 + ..\..\..\..\..\components\finsh\msh_parse.c + msh_parse.c + 0 + 0 + + + 5 + 39 + 1 + 0 + 0 + 0 + ..\..\..\..\..\components\finsh\cmd.c + cmd.c + 0 + 0 + + + + + Kernel + 1 + 0 + 0 + 0 + + 6 + 40 + 1 + 0 + 0 + 0 + ..\..\..\..\..\src\clock.c + clock.c + 0 + 0 + + + 6 + 41 + 1 + 0 + 0 + 0 + ..\..\..\..\..\src\components.c + components.c + 0 + 0 + + + 6 + 42 + 1 + 0 + 0 + 0 + ..\..\..\..\..\src\idle.c + idle.c + 0 + 0 + + + 6 + 43 + 1 + 0 + 0 + 0 + ..\..\..\..\..\src\ipc.c + ipc.c + 0 + 0 + + + 6 + 44 + 1 + 0 + 0 + 0 + ..\..\..\..\..\src\irq.c + irq.c + 0 + 0 + + + 6 + 45 + 1 + 0 + 0 + 0 + ..\..\..\..\..\src\klibc\kstdio.c + kstdio.c + 0 + 0 + + + 6 + 46 + 1 + 0 + 0 + 0 + ..\..\..\..\..\src\klibc\kstring.c + kstring.c + 0 + 0 + + + 6 + 47 + 1 + 0 + 0 + 0 + ..\..\..\..\..\src\kservice.c + kservice.c + 0 + 0 + + + 6 + 48 + 1 + 0 + 0 + 0 + ..\..\..\..\..\src\mem.c + mem.c + 0 + 0 + + + 6 + 49 + 1 + 0 + 0 + 0 + ..\..\..\..\..\src\mempool.c + mempool.c + 0 + 0 + + + 6 + 50 + 1 + 0 + 0 + 0 + ..\..\..\..\..\src\object.c + object.c + 0 + 0 + + + 6 + 51 + 1 + 0 + 0 + 0 + ..\..\..\..\..\src\scheduler_comm.c + scheduler_comm.c + 0 + 0 + + + 6 + 52 + 1 + 0 + 0 + 0 + ..\..\..\..\..\src\scheduler_up.c + scheduler_up.c + 0 + 0 + + + 6 + 53 + 1 + 0 + 0 + 0 + ..\..\..\..\..\src\thread.c + thread.c + 0 + 0 + + + 6 + 54 + 1 + 0 + 0 + 0 + ..\..\..\..\..\src\timer.c + timer.c + 0 + 0 + + + + + libcpu + 1 + 0 + 0 + 0 + + 7 + 55 + 1 + 0 + 0 + 0 + ..\..\..\..\..\libcpu\arm\common\atomic_arm.c + atomic_arm.c + 0 + 0 + + + 7 + 56 + 1 + 0 + 0 + 0 + ..\..\..\..\..\libcpu\arm\common\div0.c + div0.c + 0 + 0 + + + 7 + 57 + 1 + 0 + 0 + 0 + ..\..\..\..\..\libcpu\arm\common\showmem.c + showmem.c + 0 + 0 + + + 7 + 58 + 2 + 0 + 0 + 0 + ..\..\..\..\..\libcpu\arm\cortex-m33\context_rvds.S + context_rvds.S + 0 + 0 + + + 7 + 59 + 1 + 0 + 0 + 0 + ..\..\..\..\..\libcpu\arm\cortex-m33\cpuport.c + cpuport.c + 0 + 0 + + + 7 + 60 + 2 + 0 + 0 + 0 + ..\..\..\..\..\libcpu\arm\cortex-m33\syscall_rvds.S + syscall_rvds.S + 0 + 0 + + + 7 + 61 + 1 + 0 + 0 + 0 + ..\..\..\..\..\libcpu\arm\cortex-m33\trustzone.c + trustzone.c + 0 + 0 + + + + + Libraries + 1 + 0 + 0 + 0 + + 8 + 62 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_clock.c + fsl_clock.c + 0 + 0 + + + 8 + 63 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_flexcan.c + fsl_flexcan.c + 0 + 0 + + + 8 + 64 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_edma.c + fsl_edma.c + 0 + 0 + + + 8 + 65 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_flexio_mculcd.c + fsl_flexio_mculcd.c + 0 + 0 + + + 8 + 66 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_crc.c + fsl_crc.c + 0 + 0 + + + 8 + 67 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_lpspi.c + fsl_lpspi.c + 0 + 0 + + + 8 + 68 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_mrt.c + fsl_mrt.c + 0 + 0 + + + 8 + 69 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_lpuart.c + fsl_lpuart.c + 0 + 0 + + + 8 + 70 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_lpspi_edma.c + fsl_lpspi_edma.c + 0 + 0 + + + 8 + 71 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_cmc.c + fsl_cmc.c + 0 + 0 + + + 8 + 72 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_flexio_spi_edma.c + fsl_flexio_spi_edma.c + 0 + 0 + + + 8 + 73 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_flexio_mculcd_edma.c + fsl_flexio_mculcd_edma.c + 0 + 0 + + + 8 + 74 + 2 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\arm\startup_MCXN947_cm33_core0.s + startup_MCXN947_cm33_core0.s + 0 + 0 + + + 8 + 75 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_dac.c + fsl_dac.c + 0 + 0 + + + 8 + 76 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_lptmr.c + fsl_lptmr.c + 0 + 0 + + + 8 + 77 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_common_arm.c + fsl_common_arm.c + 0 + 0 + + + 8 + 78 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_reset.c + fsl_reset.c + 0 + 0 + + + 8 + 79 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_lpadc.c + fsl_lpadc.c + 0 + 0 + + + 8 + 80 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_vref.c + fsl_vref.c + 0 + 0 + + + 8 + 81 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_flexio_uart_edma.c + fsl_flexio_uart_edma.c + 0 + 0 + + + 8 + 82 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_lpi2c_edma.c + fsl_lpi2c_edma.c + 0 + 0 + + + 8 + 83 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_irtc.c + fsl_irtc.c + 0 + 0 + + + 8 + 84 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_usdhc.c + fsl_usdhc.c + 0 + 0 + + + 8 + 85 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_erm.c + fsl_erm.c + 0 + 0 + + + 8 + 86 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_dac14.c + fsl_dac14.c + 0 + 0 + + + 8 + 87 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_gpio.c + fsl_gpio.c + 0 + 0 + + + 8 + 88 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_lpi2c.c + fsl_lpi2c.c + 0 + 0 + + + 8 + 89 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_flexspi.c + fsl_flexspi.c + 0 + 0 + + + 8 + 90 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_flexspi_edma.c + fsl_flexspi_edma.c + 0 + 0 + + + 8 + 91 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_ewm.c + fsl_ewm.c + 0 + 0 + + + 8 + 92 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\system_MCXN947_cm33_core0.c + system_MCXN947_cm33_core0.c + 0 + 0 + + + 8 + 93 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_spc.c + fsl_spc.c + 0 + 0 + + + 8 + 94 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_flexio_i2c_master.c + fsl_flexio_i2c_master.c + 0 + 0 + + + 8 + 95 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_ctimer.c + fsl_ctimer.c + 0 + 0 + + + 8 + 96 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_flexio_uart.c + fsl_flexio_uart.c + 0 + 0 + + + 8 + 97 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_enc.c + fsl_enc.c + 0 + 0 + + + 8 + 98 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_i3c.c + fsl_i3c.c + 0 + 0 + + + 8 + 99 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_cache_lpcac.c + fsl_cache_lpcac.c + 0 + 0 + + + 8 + 100 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_enet.c + fsl_enet.c + 0 + 0 + + + 8 + 101 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_lpflexcomm.c + fsl_lpflexcomm.c + 0 + 0 + + + 8 + 102 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_flexio.c + fsl_flexio.c + 0 + 0 + + + 8 + 103 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_edma_soc.c + fsl_edma_soc.c + 0 + 0 + + + 8 + 104 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_evtg.c + fsl_evtg.c + 0 + 0 + + + 8 + 105 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_itrc.c + fsl_itrc.c + 0 + 0 + + + 8 + 106 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_cache.c + fsl_cache.c + 0 + 0 + + + 8 + 107 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_eim.c + fsl_eim.c + 0 + 0 + + + 8 + 108 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_cdog.c + fsl_cdog.c + 0 + 0 + + + 8 + 109 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_flexio_spi.c + fsl_flexio_spi.c + 0 + 0 + + + 8 + 110 + 1 + 0 + 0 + 0 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_common.c + fsl_common.c + 0 + 0 + + + + + Utilities + 1 + 0 + 0 + 0 + + 9 + 111 + 1 + 0 + 0 + 0 + ..\..\..\..\..\components\utilities\ulog\ulog.c + ulog.c + 0 + 0 + + + 9 + 112 + 1 + 0 + 0 + 0 + ..\..\..\..\..\components\utilities\ulog\backend\console_be.c + console_be.c + 0 + 0 + + + diff --git a/bsp/nxp/mcx/mcxn/frdm-mcxn947/project.uvprojx b/bsp/nxp/mcx/mcxn/frdm-mcxn947/project.uvprojx index 0a0a9f036b..c754b37936 100644 --- a/bsp/nxp/mcx/mcxn/frdm-mcxn947/project.uvprojx +++ b/bsp/nxp/mcx/mcxn/frdm-mcxn947/project.uvprojx @@ -1,13 +1,16 @@ + 2.1 +
### uVision Project, (C) Keil Software
+ rtthread-frdm-mcxn947 0x4 ARM-ADS - 6160000::V6.16::ARMCLANG + 6190000::V6.19::ARMCLANG 1 @@ -16,28 +19,28 @@ NXP.MCXN947_DFP.17.0.0 https://mcuxpresso.nxp.com/cmsis_pack/repo/ IRAM(0x20000000,0x060000) IRAM2(0x20060000,0x8000) IROM(0x03000000,0x040000) IROM2(0x13000000,0x040000) XRAM(0x30060000,0x8000) XRAM2(0x04000000,0x018000) XRAM3(0x14000000,0x018000) XROM(0x00000000,0x100000) XROM2(0x00100000,0x100000) XROM3(0x10000000,0x100000) CPUTYPE("Cortex-M33") FPU3(SFPU) DSP TZ CLOCK(12000000) ELITTLE - - + + UL2V8M(-S0 -C0 -P0 -FD20000000 -FC1000 -FN4 -FF0MCXN9XX_2048 -FS00 -FL0200000 -FF1MCXN9XX_2048_S -FS110000000 -FL1200000 -FF2MCXN9XX_W25Q64 -FS280000000 -FL2800000 -FF3MCXN9XX_W25Q64_S -FS390000000 -FL3800000 -FP0($$Device:MCXN947VDF$arm\MCXN9XX_2048.FLM) -FP1($$Device:MCXN947VDF$arm\MCXN9XX_2048_S.FLM) -FP2($$Device:MCXN947VDF$arm\MCXN9XX_W25Q64.FLM) -FP3($$Device:MCXN947VDF$arm\MCXN9XX_W25Q64_S.FLM)) 0 $$Device:MCXN947VDF$fsl_device_registers.h - - - - - - - - - + + + + + + + + + $$Device:MCXN947VDF$MCXN947_cm33_core0.xml 0 0 - - - - - + + + + + 0 0 @@ -59,8 +62,8 @@ 0 0 - - + + 0 0 0 @@ -69,8 +72,8 @@ 0 0 - - + + 0 0 0 @@ -79,15 +82,15 @@ 0 0 - - + + 0 0 0 0 0 - + 0 @@ -101,15 +104,15 @@ 0 0 3 - - + + 1 - - - - + + + + SARMV8M.DLL -MPU TCM.DLL @@ -136,10 +139,10 @@ 1 BIN\UL2V8M.DLL "" () - - - - + + + + 0 @@ -172,7 +175,7 @@ 0 0 "Cortex-M33" - + 0 0 0 @@ -307,7 +310,7 @@ 0x8000 - + 1 @@ -336,8 +339,8 @@ --target=arm-arm-none-eabi __STDC_LIMIT_MACROS, RT_USING_ARMLIBC, CPU_MCXN947VDF_cm33_core0, RT_USING_LIBC, __CLK_TCK=RT_TICK_PER_SECOND, __RTTHREAD__, DEBUG - - ..\Libraries\MCXN947\middleware\sdmmc\port;..\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\Libraries\MCXN947\MCXN947;..\Libraries\drivers;..\Libraries\MCXN947\components\codec;..\..\..\..\..\components\libc\compilers\common\include;applications;board\MCUX_Config\board;.;..\..\..\..\..\components\finsh;..\Libraries\drivers\config;..\..\..\..\..\components\libc\posix\io\epoll;..\Libraries\MCXN947\MCXN947\drivers;..\..\..\..\..\libcpu\arm\common;..\..\..\..\..\components\drivers\include;..\..\..\..\..\include;..\..\..\..\..\components\libc\posix\io\eventfd;..\..\..\..\..\components\libc\posix\io\poll;..\Libraries\CMSIS\Core\Include;..\..\..\..\..\libcpu\arm\cortex-m33;..\..\..\..\..\components\drivers\include;..\Libraries\MCXN947\middleware\sdmmc\inc;..\..\..\..\..\components\libc\compilers\common\extension;..\..\..\..\..\components\drivers\include;board;..\..\..\..\..\components\utilities\ulog;..\..\..\..\..\components\drivers\include;..\..\..\..\..\components\libc\posix\ipc;..\..\..\..\..\components\drivers\include + + ..\..\..\..\..\include;..\..\..\..\..\libcpu\arm\common;..\Libraries\drivers;..\..\..\..\..\libcpu\arm\cortex-m33;..\..\..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\..\..\..\components\libc\posix\ipc;..\Libraries\MCXN947\middleware\sdmmc\inc;..\..\..\..\..\components\libc\posix\io\poll;.;..\..\..\..\..\components\libc\compilers\common\extension;..\..\..\..\..\components\drivers\include;..\Libraries\MCXN947\MCXN947\drivers;board\MCUX_Config\board;..\..\..\..\..\components\drivers\include;..\Libraries\MCXN947\middleware\sdmmc\port;..\..\..\..\..\components\libc\compilers\common\include;..\..\..\..\..\components\drivers\include;..\..\..\..\..\components\finsh;..\..\..\..\..\components\utilities\ulog;..\Libraries\MCXN947\MCXN947;board;..\Libraries\CMSIS\Core\Include;..\..\..\..\..\components\libc\posix\io\eventfd;applications;..\..\..\..\..\components\drivers\include;..\Libraries\MCXN947\components\codec;..\Libraries\drivers\config;..\..\..\..\..\components\libc\posix\io\epoll;..\..\..\..\..\components\drivers\spi\sfud\inc;..\..\..\..\..\components\drivers\spi\sfud\src;..\Libraries\drivers;..\..\..\..\..\components\drivers\spi @@ -353,9 +356,9 @@ 1 -x assembler-with-cpp - - - + + + @@ -367,13 +370,13 @@ 0 0x00000000 0x02000000 - + .\board\linker_scripts\MCXN947_cm33_core0_flash.scf - - - - - + + + + + @@ -396,50 +399,36 @@ 1 ..\..\..\..\..\components\libc\compilers\armlibc\syscall_mem.c - - syscalls.c 1 ..\..\..\..\..\components\libc\compilers\armlibc\syscalls.c - - cctype.c 1 ..\..\..\..\..\components\libc\compilers\common\cctype.c - - cstdlib.c 1 ..\..\..\..\..\components\libc\compilers\common\cstdlib.c - - cstring.c 1 ..\..\..\..\..\components\libc\compilers\common\cstring.c - - ctime.c 1 ..\..\..\..\..\components\libc\compilers\common\ctime.c - - cunistd.c 1 ..\..\..\..\..\components\libc\compilers\common\cunistd.c - - cwchar.c 1 @@ -455,208 +444,713 @@ 1 ..\..\..\..\..\components\drivers\core\device.c + + 2 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 1 + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 __RT_IPC_SOURCE__ - + - - hwtimer.c 1 ..\..\..\..\..\components\drivers\hwtimer\hwtimer.c + + 2 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 1 + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 __RT_IPC_SOURCE__ - + - - completion.c 1 ..\..\..\..\..\components\drivers\ipc\completion.c + + 2 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 1 + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 __RT_IPC_SOURCE__ - + + + + + + + + condvar.c + 1 + ..\..\..\..\..\components\drivers\ipc\condvar.c + + + 2 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 1 + + + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 + + + __RT_IPC_SOURCE__ + + - - dataqueue.c 1 ..\..\..\..\..\components\drivers\ipc\dataqueue.c + + 2 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 1 + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 __RT_IPC_SOURCE__ - + - - pipe.c 1 ..\..\..\..\..\components\drivers\ipc\pipe.c + + 2 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 1 + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 __RT_IPC_SOURCE__ - + - - ringblk_buf.c 1 ..\..\..\..\..\components\drivers\ipc\ringblk_buf.c + + 2 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 1 + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 __RT_IPC_SOURCE__ - + - - ringbuffer.c 1 ..\..\..\..\..\components\drivers\ipc\ringbuffer.c + + 2 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 1 + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 __RT_IPC_SOURCE__ - + - - waitqueue.c 1 ..\..\..\..\..\components\drivers\ipc\waitqueue.c + + 2 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 1 + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 __RT_IPC_SOURCE__ - + - - workqueue.c 1 ..\..\..\..\..\components\drivers\ipc\workqueue.c + + 2 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 1 + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 __RT_IPC_SOURCE__ - + - - pin.c 1 ..\..\..\..\..\components\drivers\pin\pin.c + + 2 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 1 + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 __RT_IPC_SOURCE__ - + - - serial.c 1 ..\..\..\..\..\components\drivers\serial\serial.c + + 2 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 1 + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 __RT_IPC_SOURCE__ - + + + spi_core.c + 1 + ..\..\..\..\..\components\drivers\spi\spi_core.c + + + spi_dev.c + 1 + ..\..\..\..\..\components\drivers\spi\spi_dev.c + + + spi_flash_sfud.c + 1 + ..\..\..\..\..\components\drivers\spi\spi_flash_sfud.c + + + spi_msd.c + 1 + ..\..\..\..\..\components\drivers\spi\spi_msd.c + + + spi-bit-ops.c + 1 + ..\..\..\..\..\components\drivers\spi\spi-bit-ops.c + + + sfud.c + 1 + ..\..\..\..\..\components\drivers\spi\sfud\src\sfud.c + + + sfud_sfdp.c + 1 + ..\..\..\..\..\components\drivers\spi\sfud\src\sfud_sfdp.c + + + qspi_core.c + 1 + ..\..\..\..\..\components\drivers\spi\qspi_core.c + @@ -667,34 +1161,31 @@ 1 board\MCUX_Config\board\clock_config.c - - pin_mux.c 1 board\MCUX_Config\board\pin_mux.c - - board.c 1 board\board.c - - drv_pin.c 1 ..\Libraries\drivers\drv_pin.c - - drv_uart.c 1 ..\Libraries\drivers\drv_uart.c + + drv_spi.c + 1 + ..\Libraries\drivers\drv_spi.c + @@ -705,22 +1196,16 @@ 1 ..\..\..\..\..\components\finsh\shell.c - - msh.c 1 ..\..\..\..\..\components\finsh\msh.c - - msh_parse.c 1 ..\..\..\..\..\components\finsh\msh_parse.c - - cmd.c 1 @@ -736,279 +1221,836 @@ 1 ..\..\..\..\..\src\clock.c + + 2 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 1 + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 __RT_KERNEL_SOURCE__ - + - - components.c 1 ..\..\..\..\..\src\components.c + + 2 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 1 + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 __RT_KERNEL_SOURCE__ - + - - idle.c 1 ..\..\..\..\..\src\idle.c + + 2 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 1 + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 __RT_KERNEL_SOURCE__ - + - - ipc.c 1 ..\..\..\..\..\src\ipc.c + + 2 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 1 + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 __RT_KERNEL_SOURCE__ - + - - irq.c 1 ..\..\..\..\..\src\irq.c + + 2 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 1 + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 __RT_KERNEL_SOURCE__ - + - - kstdio.c 1 ..\..\..\..\..\src\klibc\kstdio.c + + 2 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 1 + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 __RT_KERNEL_SOURCE__ - + - - kstring.c 1 ..\..\..\..\..\src\klibc\kstring.c + + 2 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 1 + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 __RT_KERNEL_SOURCE__ - + - - kservice.c 1 ..\..\..\..\..\src\kservice.c + + 2 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 1 + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 __RT_KERNEL_SOURCE__ - + - - mem.c 1 ..\..\..\..\..\src\mem.c + + 2 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 1 + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 __RT_KERNEL_SOURCE__ - + - - mempool.c 1 ..\..\..\..\..\src\mempool.c + + 2 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 1 + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 __RT_KERNEL_SOURCE__ - + - - object.c 1 ..\..\..\..\..\src\object.c + + 2 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 1 + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 __RT_KERNEL_SOURCE__ - + - - scheduler_comm.c 1 ..\..\..\..\..\src\scheduler_comm.c + + 2 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 1 + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 __RT_KERNEL_SOURCE__ - + - - scheduler_up.c 1 ..\..\..\..\..\src\scheduler_up.c + + 2 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 1 + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 __RT_KERNEL_SOURCE__ - + - - thread.c 1 ..\..\..\..\..\src\thread.c + + 2 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 1 + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 __RT_KERNEL_SOURCE__ - + - - timer.c 1 ..\..\..\..\..\src\timer.c + + 2 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 1 + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 __RT_KERNEL_SOURCE__ - + @@ -1024,43 +2066,31 @@ 1 ..\..\..\..\..\libcpu\arm\common\atomic_arm.c - - div0.c 1 ..\..\..\..\..\libcpu\arm\common\div0.c - - showmem.c 1 ..\..\..\..\..\libcpu\arm\common\showmem.c - - context_rvds.S 2 ..\..\..\..\..\libcpu\arm\cortex-m33\context_rvds.S - - cpuport.c 1 ..\..\..\..\..\libcpu\arm\cortex-m33\cpuport.c - - syscall_rvds.S 2 ..\..\..\..\..\libcpu\arm\cortex-m33\syscall_rvds.S - - trustzone.c 1 @@ -1076,316 +2106,241 @@ 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_clock.c - - fsl_flexcan.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_flexcan.c - - fsl_edma.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_edma.c - - fsl_flexio_mculcd.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_flexio_mculcd.c - - fsl_crc.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_crc.c - - fsl_lpspi.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_lpspi.c - - fsl_mrt.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_mrt.c - - fsl_lpuart.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_lpuart.c - - + + fsl_lpspi_edma.c + 1 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_lpspi_edma.c + fsl_cmc.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_cmc.c - - fsl_flexio_spi_edma.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_flexio_spi_edma.c - - fsl_flexio_mculcd_edma.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_flexio_mculcd_edma.c - - startup_MCXN947_cm33_core0.s 2 ..\Libraries\MCXN947\MCXN947\arm\startup_MCXN947_cm33_core0.s - - fsl_dac.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_dac.c - - fsl_lptmr.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_lptmr.c - - fsl_common_arm.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_common_arm.c - - fsl_reset.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_reset.c - - + + fsl_lpadc.c + 1 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_lpadc.c + fsl_vref.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_vref.c - - fsl_flexio_uart_edma.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_flexio_uart_edma.c - - fsl_lpi2c_edma.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_lpi2c_edma.c - - fsl_irtc.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_irtc.c - - fsl_usdhc.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_usdhc.c - - fsl_erm.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_erm.c - - fsl_dac14.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_dac14.c - - fsl_gpio.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_gpio.c - - fsl_lpi2c.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_lpi2c.c - - fsl_flexspi.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_flexspi.c - - fsl_flexspi_edma.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_flexspi_edma.c - - fsl_ewm.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_ewm.c - - system_MCXN947_cm33_core0.c 1 ..\Libraries\MCXN947\MCXN947\system_MCXN947_cm33_core0.c - - + + fsl_spc.c + 1 + ..\Libraries\MCXN947\MCXN947\drivers\fsl_spc.c + fsl_flexio_i2c_master.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_flexio_i2c_master.c - - fsl_ctimer.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_ctimer.c - - fsl_flexio_uart.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_flexio_uart.c - - fsl_enc.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_enc.c - - fsl_i3c.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_i3c.c - - fsl_cache_lpcac.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_cache_lpcac.c - - fsl_enet.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_enet.c - - fsl_lpflexcomm.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_lpflexcomm.c - - fsl_flexio.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_flexio.c - - fsl_edma_soc.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_edma_soc.c - - fsl_evtg.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_evtg.c - - fsl_itrc.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_itrc.c - - fsl_cache.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_cache.c - - fsl_eim.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_eim.c - - fsl_cdog.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_cdog.c - - fsl_flexio_spi.c 1 ..\Libraries\MCXN947\MCXN947\drivers\fsl_flexio_spi.c - - fsl_common.c 1 @@ -1393,16 +2348,6 @@ - - rt_kprintf - - - rt_vsnprintf.c - 1 - packages\rt_vsnprintf_full-latest\rt_vsnprintf.c - - - Utilities @@ -1411,8 +2356,6 @@ 1 ..\..\..\..\..\components\utilities\ulog\ulog.c - - console_be.c 1 @@ -1423,11 +2366,13 @@ + - - - + + + + @@ -1436,4 +2381,5 @@ +
diff --git a/bsp/nxp/mcx/mcxn/frdm-mcxn947/rtconfig.h b/bsp/nxp/mcx/mcxn/frdm-mcxn947/rtconfig.h index 6f1e514b4b..bff789d8d2 100644 --- a/bsp/nxp/mcx/mcxn/frdm-mcxn947/rtconfig.h +++ b/bsp/nxp/mcx/mcxn/frdm-mcxn947/rtconfig.h @@ -91,6 +91,15 @@ #define RT_USING_SERIAL_V1 #define RT_SERIAL_USING_DMA #define RT_SERIAL_RB_BUFSZ 64 +#define RT_USING_DAC +#define RT_USING_SPI +#define RT_USING_QSPI +#define RT_USING_SFUD +#define RT_SFUD_USING_SFDP +#define RT_SFUD_USING_FLASH_INFO_TABLE +#define RT_SFUD_USING_QSPI +#define RT_SFUD_SPI_MAX_HZ 50000000 +#define RT_DEBUG_SFUD #define RT_USING_PIN #define RT_USING_HWTIMER @@ -281,11 +290,16 @@ /* On-chip Peripheral Drivers */ +#define BSP_USING_DMA #define BSP_USING_PIN #define BSP_USING_UART #define BSP_USING_UART4 #define BSP_USING_UART5 #define BSP_USING_UART2 +#define BSP_USING_SPI +#define BSP_USING_SPI3 +#define BSP_USING_SPI7 +#define BSP_USING_SPI8 /* Board extended module Drivers */