From cbe80ec76550a92439dcd7d4184a1e3184c06e8b Mon Sep 17 00:00:00 2001 From: cpl <1356764219@qq.com> Date: Sat, 4 Jul 2026 20:01:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8FRDM-MCXA366=E5=B7=A5=E7=A8=8B?= =?UTF-8?q?=E5=86=85=20=E4=BF=AE=E6=94=B9main=E5=87=BD=E6=95=B0=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0uart=5Fint=5Fsample=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=EF=BC=8C=E5=AE=9E=E7=8E=B0=E4=B8=B2=E5=8F=A3=E7=9A=84=E4=BA=A4?= =?UTF-8?q?=E4=BA=92=E3=80=82=E5=9C=A8BOARD=5FInitPins=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E5=86=85=E6=B7=BB=E5=8A=A0=E4=B8=B2=E5=8F=A33=E7=9A=84?= =?UTF-8?q?=E5=BC=95=E8=84=9A=E5=88=9D=E5=A7=8B=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.ci/attachconfig/ci.attachconfig.yml | 8 - bsp/nxp/mcx/mcxa/frdm-mcxa366/.config | 23 +- .../RTE/Device/MCXA366VLQ/MCXA.dbgconf | 18 ++ .../Device/MCXA366VLQ/MCXA.dbgconf.base@0.0.0 | 18 ++ .../RTE/Device/MCXA366VPN/MCXA.dbgconf | 18 ++ .../Device/MCXA366VPN/MCXA.dbgconf.base@0.0.0 | 18 ++ .../mcx/mcxa/frdm-mcxa366/applications/main.c | 65 +++- .../board/MCUX_Config/board/pin_mux.c | 48 +++ bsp/nxp/mcx/mcxa/frdm-mcxa366/project.uvoptx | 284 +++++++++++------- bsp/nxp/mcx/mcxa/frdm-mcxa366/project.uvprojx | 17 +- bsp/nxp/mcx/mcxa/frdm-mcxa366/rtconfig.h | 9 + 11 files changed, 398 insertions(+), 128 deletions(-) create mode 100644 bsp/nxp/mcx/mcxa/frdm-mcxa366/RTE/Device/MCXA366VLQ/MCXA.dbgconf create mode 100644 bsp/nxp/mcx/mcxa/frdm-mcxa366/RTE/Device/MCXA366VLQ/MCXA.dbgconf.base@0.0.0 create mode 100644 bsp/nxp/mcx/mcxa/frdm-mcxa366/RTE/Device/MCXA366VPN/MCXA.dbgconf create mode 100644 bsp/nxp/mcx/mcxa/frdm-mcxa366/RTE/Device/MCXA366VPN/MCXA.dbgconf.base@0.0.0 diff --git a/bsp/nxp/mcx/mcxa/frdm-mcxa366/.ci/attachconfig/ci.attachconfig.yml b/bsp/nxp/mcx/mcxa/frdm-mcxa366/.ci/attachconfig/ci.attachconfig.yml index adc44d20453..9bc7fb07e87 100644 --- a/bsp/nxp/mcx/mcxa/frdm-mcxa366/.ci/attachconfig/ci.attachconfig.yml +++ b/bsp/nxp/mcx/mcxa/frdm-mcxa366/.ci/attachconfig/ci.attachconfig.yml @@ -31,11 +31,3 @@ Peripheral.arduino: kconfig: - CONFIG_BSP_USING_ARDUINO=y -# ------ utest CI ------ -utest.pin: - <<: *scons - kconfig: - - CONFIG_RT_USING_UTESTCASES=y - - CONFIG_RT_CONSOLEBUF_SIZE=256 - - CONFIG_RT_UTEST_PIN=y - diff --git a/bsp/nxp/mcx/mcxa/frdm-mcxa366/.config b/bsp/nxp/mcx/mcxa/frdm-mcxa366/.config index 0b013331c14..89084ba9a4a 100644 --- a/bsp/nxp/mcx/mcxa/frdm-mcxa366/.config +++ b/bsp/nxp/mcx/mcxa/frdm-mcxa366/.config @@ -286,6 +286,7 @@ CONFIG_RT_USING_SPI_ISR=y # CONFIG_RT_USING_LCD is not set # CONFIG_RT_USING_HWCRYPTO is not set # CONFIG_RT_USING_WIFI is not set +# CONFIG_RT_USING_RPMSG is not set # CONFIG_RT_USING_BLK is not set # CONFIG_RT_USING_REGULATOR is not set # CONFIG_RT_USING_POWER_SUPPLY is not set @@ -836,7 +837,21 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0 # CONFIG_PKG_USING_NRFX is not set # CONFIG_PKG_USING_RASPBERRYPI_PICO_RP2350_SDK is not set # CONFIG_PKG_USING_RASPBERRYPI_PICO_SDK is not set -# CONFIG_PKG_USING_MM32 is not set + +# +# MM32 HAL & SDK Drivers +# +# CONFIG_PKG_USING_MM32F103XX_CMSIS is not set +# CONFIG_PKG_USING_MM32F3270X_CMSIS is not set +# CONFIG_PKG_USING_MM32F5260X_CMSIS is not set +# CONFIG_PKG_USING_MM32L0XX_CMSIS is not set +# CONFIG_PKG_USING_MM32L3XX_CMSIS is not set +# CONFIG_PKG_USING_MM32F103XX_HAL_DRIVER is not set +# CONFIG_PKG_USING_MM32F3270X_HAL_DRIVER is not set +# CONFIG_PKG_USING_MM32F5260X_HAL_DRIVER is not set +# CONFIG_PKG_USING_MM32L0XX_HAL_DRIVER is not set +# CONFIG_PKG_USING_MM32L3XX_HAL_DRIVER is not set +# end of MM32 HAL & SDK Drivers # # WCH HAL & SDK Drivers @@ -930,6 +945,12 @@ CONFIG_PKG_NXP_MCX_SERIES_DRIVER_VER="latest" # CONFIG_PKG_USING_FT32F4_STD_DRIVER is not set # CONFIG_PKG_USING_FT32F4_CMSIS_DRIVER is not set # end of FT32 HAL & SDK Drivers + +# +# NOVOSNS Drivers +# +# CONFIG_PKG_USING_NOVOSNS_SERIES_DRIVER is not set +# end of NOVOSNS Drivers # end of HAL & SDK Drivers # diff --git a/bsp/nxp/mcx/mcxa/frdm-mcxa366/RTE/Device/MCXA366VLQ/MCXA.dbgconf b/bsp/nxp/mcx/mcxa/frdm-mcxa366/RTE/Device/MCXA366VLQ/MCXA.dbgconf new file mode 100644 index 00000000000..a59776c1989 --- /dev/null +++ b/bsp/nxp/mcx/mcxa/frdm-mcxa366/RTE/Device/MCXA366VLQ/MCXA.dbgconf @@ -0,0 +1,18 @@ +// <<< Use Configuration Wizard in Context Menu >>> + +// SWO pin +// The SWO (Serial Wire Output) pin optionally provides data from the ITM +// for an external debug tool to evaluate. +// <0=> PIO0_10 +// <1=> PIO0_8 +SWO_Pin = 0; +// + +// Debug Configuration +// StopAfterBootloader Stop after Bootloader +// +Dbg_CR = 0x00000001; +// + + +// <<< end of configuration section >>> diff --git a/bsp/nxp/mcx/mcxa/frdm-mcxa366/RTE/Device/MCXA366VLQ/MCXA.dbgconf.base@0.0.0 b/bsp/nxp/mcx/mcxa/frdm-mcxa366/RTE/Device/MCXA366VLQ/MCXA.dbgconf.base@0.0.0 new file mode 100644 index 00000000000..a59776c1989 --- /dev/null +++ b/bsp/nxp/mcx/mcxa/frdm-mcxa366/RTE/Device/MCXA366VLQ/MCXA.dbgconf.base@0.0.0 @@ -0,0 +1,18 @@ +// <<< Use Configuration Wizard in Context Menu >>> + +// SWO pin +// The SWO (Serial Wire Output) pin optionally provides data from the ITM +// for an external debug tool to evaluate. +// <0=> PIO0_10 +// <1=> PIO0_8 +SWO_Pin = 0; +// + +// Debug Configuration +// StopAfterBootloader Stop after Bootloader +// +Dbg_CR = 0x00000001; +// + + +// <<< end of configuration section >>> diff --git a/bsp/nxp/mcx/mcxa/frdm-mcxa366/RTE/Device/MCXA366VPN/MCXA.dbgconf b/bsp/nxp/mcx/mcxa/frdm-mcxa366/RTE/Device/MCXA366VPN/MCXA.dbgconf new file mode 100644 index 00000000000..a59776c1989 --- /dev/null +++ b/bsp/nxp/mcx/mcxa/frdm-mcxa366/RTE/Device/MCXA366VPN/MCXA.dbgconf @@ -0,0 +1,18 @@ +// <<< Use Configuration Wizard in Context Menu >>> + +// SWO pin +// The SWO (Serial Wire Output) pin optionally provides data from the ITM +// for an external debug tool to evaluate. +// <0=> PIO0_10 +// <1=> PIO0_8 +SWO_Pin = 0; +// + +// Debug Configuration +// StopAfterBootloader Stop after Bootloader +// +Dbg_CR = 0x00000001; +// + + +// <<< end of configuration section >>> diff --git a/bsp/nxp/mcx/mcxa/frdm-mcxa366/RTE/Device/MCXA366VPN/MCXA.dbgconf.base@0.0.0 b/bsp/nxp/mcx/mcxa/frdm-mcxa366/RTE/Device/MCXA366VPN/MCXA.dbgconf.base@0.0.0 new file mode 100644 index 00000000000..a59776c1989 --- /dev/null +++ b/bsp/nxp/mcx/mcxa/frdm-mcxa366/RTE/Device/MCXA366VPN/MCXA.dbgconf.base@0.0.0 @@ -0,0 +1,18 @@ +// <<< Use Configuration Wizard in Context Menu >>> + +// SWO pin +// The SWO (Serial Wire Output) pin optionally provides data from the ITM +// for an external debug tool to evaluate. +// <0=> PIO0_10 +// <1=> PIO0_8 +SWO_Pin = 0; +// + +// Debug Configuration +// StopAfterBootloader Stop after Bootloader +// +Dbg_CR = 0x00000001; +// + + +// <<< end of configuration section >>> diff --git a/bsp/nxp/mcx/mcxa/frdm-mcxa366/applications/main.c b/bsp/nxp/mcx/mcxa/frdm-mcxa366/applications/main.c index 08785bdb6bb..7fa65115783 100644 --- a/bsp/nxp/mcx/mcxa/frdm-mcxa366/applications/main.c +++ b/bsp/nxp/mcx/mcxa/frdm-mcxa366/applications/main.c @@ -15,12 +15,67 @@ #include #include "drv_pin.h" - +#include #define LED_PIN ((3*32)+18) /* Original LED pin */ #define BUTTON_PIN ((1*32)+7) /* P1_7 button pin */ static rt_bool_t led_state = RT_FALSE; /* Current LED state */ +#define SAMPLE_UART1_NAME "uart3" /* �����豸���� */ +static rt_device_t serial_uart3; /* �����豸��� */ +static struct rt_semaphore rx_sem; /* ���ڽ�����Ϣ���ź��� */ +struct serial_configure config = RT_SERIAL_CONFIG_DEFAULT; /* ��ʼ�����ò��� */ + +/* �������ݻص����� */ +static rt_err_t uart_input(rt_device_t dev,rt_size_t size)//�������ݻص�����Ϣ���д��������� +{ + rt_sem_release(&rx_sem);//���ڽ������ݲ����жϣ����øú������ͽ����ź��� + return RT_EOK; +} + +/* ���ڴ����̺߳��� */ +static void serial_thread_entry(void* parameter) +{ + char ch; + rt_kprintf("serial task run\n"); + /* ���յ��ź��������������� */ + while(1) + { + while(rt_device_read(serial_uart3,-1,&ch,1)!=1)//�����ȴ������ź������ȵ��ź������ȡ1���ֽڵ����� + rt_sem_take(&rx_sem,RT_WAITING_FOREVER); + rt_device_write(serial_uart3,0,&ch,1);//��ȡ��������ͨ�����ڴ�λ��� + } +} + +/* �������������� */ +static int uart_int_sample(void) +{ + rt_err_t ret=RT_EOK; + char uart_name[RT_NAME_MAX]; + char str[] = "RT-Thread MCX A366 uart3 Start!\n"; + rt_strncpy(uart_name,SAMPLE_UART1_NAME,RT_NAME_MAX); + serial_uart3=rt_device_find(uart_name);//���Ҵ����豸 + if(!serial_uart3) + { + rt_kprintf("find %s failed!\n",uart_name); + return RT_ERROR; + } + rt_kprintf("start mq\n"); + rt_device_open(serial_uart3,RT_DEVICE_FLAG_INT_RX);//����ѯ��ʽ�򿪴��� + rt_sem_init(&rx_sem,"rx_sem",0,RT_IPC_FLAG_FIFO);//��ʼ���ź��� + rt_device_set_rx_indicate(serial_uart3,uart_input);//���ý��ջص�����Ϣ���д��������� + rt_device_write(serial_uart3,0,str,(sizeof(str)-1));//�����ַ��� + rt_thread_t thread=rt_thread_create("serial",serial_thread_entry,RT_NULL,1024,25,10);//�������ڴ����߳� + if(thread!=RT_NULL) + { + rt_kprintf("start thread\n"); + rt_thread_startup(thread); + } + else + ret=RT_ERROR; + return ret;//���ؽ�� +} + /* Button interrupt callback function */ void button_irq_callback(void *args) @@ -48,6 +103,8 @@ int main(void) /* Configure button pin as input with pull-up */ rt_pin_mode(BUTTON_PIN, PIN_MODE_INPUT_PULLUP); + + uart_int_sample(); /* Attach interrupt to button pin */ rt_pin_attach_irq(BUTTON_PIN, PIN_IRQ_MODE_FALLING, button_irq_callback, RT_NULL); @@ -63,3 +120,9 @@ int main(void) rt_thread_mdelay(500); } } + +void cmd_reboot(void) +{ + rt_hw_cpu_reset(); +} +MSH_CMD_EXPORT_ALIAS(cmd_reboot, reboot, Reboot); diff --git a/bsp/nxp/mcx/mcxa/frdm-mcxa366/board/MCUX_Config/board/pin_mux.c b/bsp/nxp/mcx/mcxa/frdm-mcxa366/board/MCUX_Config/board/pin_mux.c index 57004a9c156..296c35a464f 100644 --- a/bsp/nxp/mcx/mcxa/frdm-mcxa366/board/MCUX_Config/board/pin_mux.c +++ b/bsp/nxp/mcx/mcxa/frdm-mcxa366/board/MCUX_Config/board/pin_mux.c @@ -109,7 +109,55 @@ void BOARD_InitPins(void) /* PORT2_3 (pin 36) is configured as LPUART2_RXD */ PORT_SetPinConfig(PORT2, 3U, &port2_3_pin36_config); + const port_pin_config_t port4_2_pin_config = {/* Internal pull-up resistor is enabled */ + .pullSelect = kPORT_PullUp, + /* Low internal pull resistor value is selected. */ + .pullValueSelect = kPORT_LowPullResistor, + /* Fast slew rate is configured */ + .slewRate = kPORT_FastSlewRate, + /* Passive input filter is disabled */ + .passiveFilterEnable = kPORT_PassiveFilterDisable, + /* Open drain output is disabled */ + .openDrainEnable = kPORT_OpenDrainDisable, + /* Low drive strength is configured */ + .driveStrength = kPORT_LowDriveStrength, + /* Normal drive strength is configured */ + .driveStrength1 = kPORT_NormalDriveStrength, + /* Pin is configured as LPUART2_TXD */ + .mux = kPORT_MuxAlt3, + /* Digital input enabled */ + .inputBuffer = kPORT_InputBufferEnable, + /* Digital input is not inverted */ + .invertInput = kPORT_InputNormal, + /* Pin Control Register fields [15:0] are not locked */ + .lockRegister = kPORT_UnlockRegister}; + /* PORT2_2 (pin 35) is configured as LPUART2_TXD */ + PORT_SetPinConfig(PORT4, 2U, &port4_2_pin_config); + const port_pin_config_t port4_5_pin_config = {/* Internal pull-up resistor is enabled */ + .pullSelect = kPORT_PullUp, + /* Low internal pull resistor value is selected. */ + .pullValueSelect = kPORT_LowPullResistor, + /* Fast slew rate is configured */ + .slewRate = kPORT_FastSlewRate, + /* Passive input filter is disabled */ + .passiveFilterEnable = kPORT_PassiveFilterDisable, + /* Open drain output is disabled */ + .openDrainEnable = kPORT_OpenDrainDisable, + /* Low drive strength is configured */ + .driveStrength = kPORT_LowDriveStrength, + /* Normal drive strength is configured */ + .driveStrength1 = kPORT_NormalDriveStrength, + /* Pin is configured as LPUART2_RXD */ + .mux = kPORT_MuxAlt3, + /* Digital input enabled */ + .inputBuffer = kPORT_InputBufferEnable, + /* Digital input is not inverted */ + .invertInput = kPORT_InputNormal, + /* Pin Control Register fields [15:0] are not locked */ + .lockRegister = kPORT_UnlockRegister}; + /* PORT2_3 (pin 36) is configured as LPUART2_RXD */ + PORT_SetPinConfig(PORT4, 5U, &port4_5_pin_config); const port_pin_config_t LED_RED = {/* Internal pull-up/down resistor is disabled */ .pullSelect = kPORT_PullDisable, /* Low internal pull resistor value is selected. */ diff --git a/bsp/nxp/mcx/mcxa/frdm-mcxa366/project.uvoptx b/bsp/nxp/mcx/mcxa/frdm-mcxa366/project.uvoptx index c35efb8ccf7..80064e18222 100644 --- a/bsp/nxp/mcx/mcxa/frdm-mcxa366/project.uvoptx +++ b/bsp/nxp/mcx/mcxa/frdm-mcxa366/project.uvoptx @@ -117,10 +117,25 @@ BIN\CMSIS_AGDI_V8M.DLL + + 0 + DLGTARM + (6010=-1,-1,-1,-1,0)(6018=-1,-1,-1,-1,0)(6019=-1,-1,-1,-1,0)(6008=-1,-1,-1,-1,0)(6009=-1,-1,-1,-1,0)(6014=-1,-1,-1,-1,0)(6015=-1,-1,-1,-1,0)(6003=-1,-1,-1,-1,0)(6000=-1,-1,-1,-1,0) + + + 0 + ARMDBGFLAGS + + + + 0 + DLGUARM + + 0 CMSIS_AGDI_V8M - -X"Any" -UAny -O206 -S9 -C0 -P00000000 -N00("ARM CoreSight SW-DP") -D00(6BA02477) -L00(0) -TO65554 -TC10000000 -TT10000000 -TP20 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO7 -FD20000000 -FC1000 -FN1 -FF0MCXA_1024.FLM -FS00 -FL0FE000 -FP0($$Device:MCXA366VLQ$devices\MCXA366\arm\MCXA_1024.FLM) + -X"Any" -UAny -O206 -S9 -C0 -P00000000 -N00("ARM CoreSight SW-DP") -D00(2BA01477) -L00(0) -TO65554 -TC10000000 -TT10000000 -TP20 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO15 -FD20000000 -FC1000 -FN1 -FF0MCXA_1024.FLM -FS00 -FL0FE000 -FP0($$Device:MCXA366VLQ$devices\MCXA366\arm\MCXA_1024.FLM) 0 @@ -128,19 +143,52 @@ UL2V8M(-S0 -C0 -P0 ) -FN1 -FC1000 -FD20000000 -FF0MCXA_1024 -FL0FE000 -FS00 -FP0($$Device:MCXA366VLQ$devices\MCXA366\arm\MCXA_1024.FLM) - + + + 0 + 0 + 117 + 1 +
26768
+ 0 + 0 + 0 + 0 + 0 + 1 + applications\main.c + + \\rtthread\applications/main.c\117 +
+ + 1 + 0 + 118 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + applications\main.c + + +
+
0 0 0 - 0 + 1 0 0 0 0 - 0 + 1 0 0 0 @@ -211,17 +259,29 @@ 0 0 + + 1 + 3 + 5 + 0 + 0 + 0 + .\rtconfig.h + rtconfig.h + 0 + 0 + CPU - 0 + 1 0 0 0 2 - 3 + 4 1 0 0 @@ -233,7 +293,7 @@ 2 - 4 + 5 1 0 0 @@ -245,7 +305,7 @@ 2 - 5 + 6 1 0 0 @@ -257,7 +317,7 @@ 2 - 6 + 7 2 0 0 @@ -269,7 +329,7 @@ 2 - 7 + 8 1 0 0 @@ -281,7 +341,7 @@ 2 - 8 + 9 2 0 0 @@ -293,7 +353,7 @@ 2 - 9 + 10 1 0 0 @@ -307,13 +367,13 @@ DeviceDrivers - 0 + 1 0 0 0 3 - 10 + 11 1 0 0 @@ -325,7 +385,7 @@ 3 - 11 + 12 1 0 0 @@ -337,7 +397,7 @@ 3 - 12 + 13 1 0 0 @@ -349,7 +409,7 @@ 3 - 13 + 14 1 0 0 @@ -361,7 +421,7 @@ 3 - 14 + 15 1 0 0 @@ -373,7 +433,7 @@ 3 - 15 + 16 1 0 0 @@ -385,7 +445,7 @@ 3 - 16 + 17 1 0 0 @@ -397,7 +457,7 @@ 3 - 17 + 18 1 0 0 @@ -409,7 +469,7 @@ 3 - 18 + 19 1 0 0 @@ -421,7 +481,7 @@ 3 - 19 + 20 1 0 0 @@ -433,7 +493,7 @@ 3 - 20 + 21 1 0 0 @@ -445,7 +505,7 @@ 3 - 21 + 22 1 0 0 @@ -457,7 +517,7 @@ 3 - 22 + 23 1 0 0 @@ -469,7 +529,7 @@ 3 - 23 + 24 1 0 0 @@ -481,7 +541,7 @@ 3 - 24 + 25 1 0 0 @@ -493,7 +553,7 @@ 3 - 25 + 26 1 0 0 @@ -505,7 +565,7 @@ 3 - 26 + 27 1 0 0 @@ -517,7 +577,7 @@ 3 - 27 + 28 1 0 0 @@ -529,7 +589,7 @@ 3 - 28 + 29 1 0 0 @@ -543,13 +603,13 @@ Drivers - 0 + 1 0 0 0 4 - 29 + 30 1 0 0 @@ -561,7 +621,7 @@ 4 - 30 + 31 1 0 0 @@ -573,7 +633,7 @@ 4 - 31 + 32 1 0 0 @@ -585,7 +645,7 @@ 4 - 32 + 33 1 0 0 @@ -597,7 +657,7 @@ 4 - 33 + 34 1 0 0 @@ -611,13 +671,13 @@ Finsh - 0 + 1 0 0 0 5 - 34 + 35 1 0 0 @@ -629,7 +689,7 @@ 5 - 35 + 36 1 0 0 @@ -641,7 +701,7 @@ 5 - 36 + 37 1 0 0 @@ -653,7 +713,7 @@ 5 - 37 + 38 1 0 0 @@ -667,13 +727,13 @@ Kernel - 0 + 1 0 0 0 6 - 38 + 39 1 0 0 @@ -685,7 +745,7 @@ 6 - 39 + 40 1 0 0 @@ -697,7 +757,7 @@ 6 - 40 + 41 1 0 0 @@ -709,7 +769,7 @@ 6 - 41 + 42 1 0 0 @@ -721,7 +781,7 @@ 6 - 42 + 43 1 0 0 @@ -733,7 +793,7 @@ 6 - 43 + 44 1 0 0 @@ -745,7 +805,7 @@ 6 - 44 + 45 1 0 0 @@ -757,7 +817,7 @@ 6 - 45 + 46 1 0 0 @@ -769,7 +829,7 @@ 6 - 46 + 47 1 0 0 @@ -781,7 +841,7 @@ 6 - 47 + 48 1 0 0 @@ -793,7 +853,7 @@ 6 - 48 + 49 1 0 0 @@ -805,7 +865,7 @@ 6 - 49 + 50 1 0 0 @@ -817,7 +877,7 @@ 6 - 50 + 51 1 0 0 @@ -829,7 +889,7 @@ 6 - 51 + 52 1 0 0 @@ -841,7 +901,7 @@ 6 - 52 + 53 1 0 0 @@ -855,13 +915,13 @@ Libc - 0 + 1 0 0 0 7 - 53 + 54 1 0 0 @@ -873,7 +933,7 @@ 7 - 54 + 55 1 0 0 @@ -885,7 +945,7 @@ 7 - 55 + 56 1 0 0 @@ -897,7 +957,7 @@ 7 - 56 + 57 1 0 0 @@ -909,7 +969,7 @@ 7 - 57 + 58 1 0 0 @@ -921,7 +981,7 @@ 7 - 58 + 59 1 0 0 @@ -933,7 +993,7 @@ 7 - 59 + 60 1 0 0 @@ -945,7 +1005,7 @@ 7 - 60 + 61 1 0 0 @@ -957,7 +1017,7 @@ 7 - 61 + 62 1 0 0 @@ -969,7 +1029,7 @@ 7 - 62 + 63 1 0 0 @@ -981,7 +1041,7 @@ 7 - 63 + 64 1 0 0 @@ -993,7 +1053,7 @@ 7 - 64 + 65 1 0 0 @@ -1005,7 +1065,7 @@ 7 - 65 + 66 1 0 0 @@ -1019,13 +1079,13 @@ Libraries - 0 + 1 0 0 0 8 - 66 + 67 1 0 0 @@ -1037,7 +1097,7 @@ 8 - 67 + 68 1 0 0 @@ -1049,7 +1109,7 @@ 8 - 68 + 69 1 0 0 @@ -1061,7 +1121,7 @@ 8 - 69 + 70 1 0 0 @@ -1073,7 +1133,7 @@ 8 - 70 + 71 1 0 0 @@ -1085,7 +1145,7 @@ 8 - 71 + 72 1 0 0 @@ -1097,7 +1157,7 @@ 8 - 72 + 73 1 0 0 @@ -1109,7 +1169,7 @@ 8 - 73 + 74 1 0 0 @@ -1121,7 +1181,7 @@ 8 - 74 + 75 1 0 0 @@ -1133,7 +1193,7 @@ 8 - 75 + 76 1 0 0 @@ -1145,7 +1205,7 @@ 8 - 76 + 77 1 0 0 @@ -1157,7 +1217,7 @@ 8 - 77 + 78 1 0 0 @@ -1169,7 +1229,7 @@ 8 - 78 + 79 1 0 0 @@ -1181,7 +1241,7 @@ 8 - 79 + 80 1 0 0 @@ -1193,7 +1253,7 @@ 8 - 80 + 81 1 0 0 @@ -1205,7 +1265,7 @@ 8 - 81 + 82 1 0 0 @@ -1217,7 +1277,7 @@ 8 - 82 + 83 1 0 0 @@ -1229,7 +1289,7 @@ 8 - 83 + 84 1 0 0 @@ -1241,7 +1301,7 @@ 8 - 84 + 85 1 0 0 @@ -1253,7 +1313,7 @@ 8 - 85 + 86 1 0 0 @@ -1265,7 +1325,7 @@ 8 - 86 + 87 1 0 0 @@ -1277,7 +1337,7 @@ 8 - 87 + 88 1 0 0 @@ -1289,7 +1349,7 @@ 8 - 88 + 89 1 0 0 @@ -1301,7 +1361,7 @@ 8 - 89 + 90 1 0 0 @@ -1313,7 +1373,7 @@ 8 - 90 + 91 1 0 0 @@ -1325,7 +1385,7 @@ 8 - 91 + 92 1 0 0 @@ -1337,7 +1397,7 @@ 8 - 92 + 93 1 0 0 @@ -1349,7 +1409,7 @@ 8 - 93 + 94 1 0 0 @@ -1361,7 +1421,7 @@ 8 - 94 + 95 1 0 0 @@ -1373,7 +1433,7 @@ 8 - 95 + 96 1 0 0 @@ -1385,7 +1445,7 @@ 8 - 96 + 97 1 0 0 @@ -1397,7 +1457,7 @@ 8 - 97 + 98 1 0 0 @@ -1409,7 +1469,7 @@ 8 - 98 + 99 1 0 0 @@ -1421,7 +1481,7 @@ 8 - 99 + 100 1 0 0 @@ -1433,7 +1493,7 @@ 8 - 100 + 101 1 0 0 @@ -1445,7 +1505,7 @@ 8 - 101 + 102 1 0 0 @@ -1457,7 +1517,7 @@ 8 - 102 + 103 1 0 0 @@ -1469,7 +1529,7 @@ 8 - 103 + 104 1 0 0 diff --git a/bsp/nxp/mcx/mcxa/frdm-mcxa366/project.uvprojx b/bsp/nxp/mcx/mcxa/frdm-mcxa366/project.uvprojx index 0ca901958bc..46f70c093d2 100644 --- a/bsp/nxp/mcx/mcxa/frdm-mcxa366/project.uvprojx +++ b/bsp/nxp/mcx/mcxa/frdm-mcxa366/project.uvprojx @@ -10,13 +10,13 @@ rtthread-frdm-mcxa366 0x4 ARM-ADS - 6230000::V6.23::ARMCLANG + 6240000::V6.24::ARMCLANG 1 MCXA366VLQ NXP - NXP.MCXA366_DFP.25.12.00 + NXP.MCXA366_DFP.26.03.00 https://mcuxpresso.nxp.com/cmsis_pack/repo/ IRAM(0x20000000,0x03c000) IRAM2(0x04000000,0x2000) IROM(0x03000000,0x2000) IROM2(0x00000000,0x0fe000) XRAM(0x04002000,0x2000) CPUTYPE("Cortex-M33") FPU3(SFPU) DSP CLOCK(12000000) ELITTLE @@ -52,7 +52,7 @@ rtthread 1 0 - 0 + 1 1 1 .\build\ @@ -314,7 +314,7 @@ 1 - 1 + 2 0 0 1 @@ -329,8 +329,8 @@ 1 0 0 - 0 - 0 + 3 + 3 1 1 0 @@ -394,6 +394,11 @@ 1 applications\main.c + + rtconfig.h + 5 + .\rtconfig.h + diff --git a/bsp/nxp/mcx/mcxa/frdm-mcxa366/rtconfig.h b/bsp/nxp/mcx/mcxa/frdm-mcxa366/rtconfig.h index f015da40286..63a123401c6 100644 --- a/bsp/nxp/mcx/mcxa/frdm-mcxa366/rtconfig.h +++ b/bsp/nxp/mcx/mcxa/frdm-mcxa366/rtconfig.h @@ -307,6 +307,10 @@ /* end of Kendryte SDK */ +/* MM32 HAL & SDK Drivers */ + +/* end of MM32 HAL & SDK Drivers */ + /* WCH HAL & SDK Drivers */ /* end of WCH HAL & SDK Drivers */ @@ -342,6 +346,10 @@ /* FT32 HAL & SDK Drivers */ /* end of FT32 HAL & SDK Drivers */ + +/* NOVOSNS Drivers */ + +/* end of NOVOSNS Drivers */ /* end of HAL & SDK Drivers */ /* sensors drivers */ @@ -431,6 +439,7 @@ #define BSP_USING_PIN #define BSP_USING_UART #define BSP_USING_UART2 +#define BSP_USING_UART3 #define BSP_USING_CLOCK_TIMER #define BSP_USING_CTIMER0 /* end of On-chip Peripheral Drivers */