Skip to content

Commit ba7e469

Browse files
yandldRbb666
authored andcommitted
[bsp][mcxc444] update README and keil project
1 parent 580f314 commit ba7e469

File tree

11 files changed

+222
-148
lines changed

11 files changed

+222
-148
lines changed
Lines changed: 93 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,93 @@
1-
FRDM-MCXC444 support
1+
# NXP FRDM-MCXC444 Introduction
2+
3+
## Overview
4+
The FRDM-MCXC444 is NXP's official low-cost evaluation board based on the MCX C444 MCU. It is designed for rapid prototyping and features a compact and scalable form factor. The board provides industry-standard headers for easy access to the MCU's I/O pins and supports the MCUXpresso development environment.
5+
6+
Key features of the FRDM-MCXC444 include:
7+
8+
- SLCD functionality
9+
- Arduino-compatible expansion headers
10+
- MCUXpresso IDE support
11+
12+
The appearance of the board is shown in the figure below:
13+
14+
![img](figures/board.png)
15+
16+
The common on-board resources for this board are listed below:
17+
18+
![board_block_diagram](figures/board_block_diagram.png)
19+
20+
For more details on the development board, please refer to [NXP official website](https://www.nxp.com/design/design-center/development-boards/general-purpose-mcus/frdm-development-board-for-mcx-n94-n54-mcus:FRDM-MCXN947)
21+
22+
## Preparation
23+
24+
To run sample programs on the FRDM-MCXC444 board, you need to make the following preparations:
25+
26+
1. Development Environment
27+
28+
Keil V5 with MCXC444 package installed.
29+
30+
2. Source Code Acquisition
31+
32+
Visit https://github.com/RT-Thread/rt-thread and download the latest stable release zip package from the Assets section.
33+
34+
3. Hardware Connection
35+
36+
Use a USB cable to connect the USB port of the development board to your PC.
37+
38+
> NXP's official hands-on tutorial for the FRDM-MCXC444 can be found at [here](https://www.nxp.com/design/design-center/development-boards-and-designs/general-purpose-mcus/frdm-development-board-for-mcx-c444-mcus:FRDM-MCXC444)
39+
40+
41+
![img](figures/usb_pc.png)
42+
43+
## Run the First Sample Program
44+
45+
### Compile and Download
46+
47+
1. Navigate to the `rt-thread\bsp\nxp\mcxc\frdm-mcxc444` folder.
48+
2. Open the project file in Keil.
49+
3. Compile the project.
50+
4. Click the download button to flash the firmware to the development board.
51+
52+
![dir](figures/dir.png)
53+
54+
Execute the compilation. After it, click the download button to download the firmware to the development board. Then, the program will start running automatically, observe the program running status.
55+
56+
> Tip: The default configuration of the project uses CMSIS-DAP to download the program. And then click the Download button to download the program to the development board.
57+
58+
![project](figures/project.png)
59+
60+
### Run
61+
62+
If it does not run automatically, press the reset button to restart the board and observe the actual effect of the LEDs on the board. After normal operation, the LEDs will blink periodically, as shown in the following figure:
63+
64+
![run](figures/run.gif)
65+
66+
After downloading the program, it should start running automatically. If not, press the reset button on the board.
67+
68+
Connect the board's serial port to your PC and open a serial terminal with the following settings:
69+
70+
- Baud rate: 115200
71+
- Data bits: 8
72+
- Stop bits: 1
73+
- Parity: None
74+
75+
Reset the device, and you should see the RT-Thread startup information in the serial terminal:
76+
77+
```bash
78+
\ | /
79+
- RT - Thread Operating System
80+
/ | \ 5.2.0 build Sep 4 2024 10:46:13
81+
2006 - 2024 Copyright by RT-Thread team
82+
using armclang, version: 6190004
83+
NXP MCXC444
84+
msh >
85+
```
86+
87+
## Keep Learning
88+
89+
Completed RT-Thread Quickstart! Click here for [Kernel Learning](../../kernel/kernel-video.md) .
90+
91+
## Additional Information
92+
93+
[NXP FRDM-MCXC444](https://www.nxp.com/design/design-center/development-boards-and-designs/general-purpose-mcus/frdm-development-board-for-mcx-c444-mcus:FRDM-MCXC444)

bsp/nxp/mcx/mcxc/frdm-mcxc444/applications/main.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#define LED_PIN ((4*32)+31)
2020
#define BUTTON_PIN ((2*32)+3)
2121

22-
static void sw_pin_cb(void *args);
22+
static void sw2_pin_cb(void *args);
2323

2424
int main(void)
2525
{
@@ -36,10 +36,10 @@ int main(void)
3636
rt_pin_mode(LED_PIN, PIN_MODE_OUTPUT); /* Set GPIO as Output */
3737

3838
rt_pin_mode(BUTTON_PIN, PIN_MODE_INPUT_PULLUP);
39-
rt_pin_attach_irq(BUTTON_PIN, PIN_IRQ_MODE_FALLING, sw_pin_cb, RT_NULL);
39+
rt_pin_attach_irq(BUTTON_PIN, PIN_IRQ_MODE_FALLING, sw2_pin_cb, RT_NULL);
4040
rt_pin_irq_enable(BUTTON_PIN, 1);
4141

42-
rt_kprintf("MCXC444 HelloWorld\r\n");
42+
rt_kprintf("NXP MCXC444\r\n");
4343

4444
while (1)
4545
{
@@ -50,9 +50,9 @@ int main(void)
5050
}
5151
}
5252

53-
static void sw_pin_cb(void *args)
53+
static void sw2_pin_cb(void *args)
5454
{
55-
rt_kprintf("sw pressed\r\n");
55+
rt_kprintf("sw2 pressed\r\n");
5656
}
5757

5858
// end file

bsp/nxp/mcx/mcxc/frdm-mcxc444/board/MCUX_Config/board/pin_mux.c

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,14 @@ void BOARD_InitPins(void)
2727
CLOCK_EnableClock(kCLOCK_PortC);
2828
CLOCK_EnableClock(kCLOCK_PortD);
2929
CLOCK_EnableClock(kCLOCK_PortE);
30-
31-
PORT_SetPinMux(PORTA, 1U, kPORT_MuxAlt2); /* LPUART0_RX */
32-
PORT_SetPinMux(PORTA, 2U, kPORT_MuxAlt2); /* LPUART0_TX */
33-
34-
PORT_SetPinMux(PORTE, 0U, kPORT_MuxAlt3); /* LPUART1_TX */
35-
PORT_SetPinMux(PORTE, 1U, kPORT_MuxAlt3); /* LPUART1_RX */
30+
31+
PORT_SetPinMux(PORTA, 4, kPORT_MuxAsGpio); /* NMI */
32+
33+
PORT_SetPinMux(PORTA, 1, kPORT_MuxAlt2); /* LPUART0_RX */
34+
PORT_SetPinMux(PORTA, 2, kPORT_MuxAlt2); /* LPUART0_TX */
35+
36+
PORT_SetPinMux(PORTE, 0, kPORT_MuxAlt3); /* LPUART1_TX */
37+
PORT_SetPinMux(PORTE, 1, kPORT_MuxAlt3); /* LPUART1_RX */
3638

3739
SIM->SOPT5 = 0;
3840
}
1.53 MB
Loading
22.1 KB
Loading
41.3 KB
Loading
259 KB
Loading
1.34 MB
Loading
492 KB
Loading

0 commit comments

Comments
 (0)