FRDM-MCXC242
Overview
FRDM-MCXC242 is a compact and scalable development board for rapid prototyping of MCX C242 MCU. It offers industry standard headers for easy access to the MCU’s I/Os, integrated open-standard serial interfaces and on-board MCU-Link debugger. The MCXC is a general purpose ultra-low-power MCU family, providing additional memory, communications and analog peripheral.
Hardware
MCXC242VLH Arm Cortex-M0+ microcontroller running at 48 MHz
64LQFP package
64KB flash
16KB SRAM
USB FS 2.0
2x low-power UART, 1x UART, 2x I2C, 2x SPI
FXLS8974CF accelerometer
NTC temperature sensor
RGB user LED
On-board MCU-Link debugger with CMSIS-DAP
Arduino Header, mikroBUS, Pmod
For more information about the MCXC242 SoC and FRDM-MCXC242 board, see these references:
Supported Features
The frdm_mcxc242
board supports the hardware features listed below.
- on-chip / on-board
- Feature integrated in the SoC / present on the board.
- 2 / 2
-
Number of instances that are enabled / disabled.
Click on the label to see the first instance of this feature in the board/SoC DTS files. -
vnd,foo
-
Compatible string for the Devicetree binding matching the feature.
Click on the link to view the binding documentation.
Type |
Location |
Description |
Compatible |
---|---|---|---|
CPU |
on-chip |
ARM Cortex-M0+ CPU1 |
|
ADC |
on-chip |
Kinetis ADC161 |
|
Clock control |
on-chip |
NXP Kinetis Multipurpose Clock generator (MCG) IP node1 |
|
on-chip |
Kinetis System Integration Module (SIM) IP node1 |
||
on-chip |
Generic fixed factor clock provider2 |
||
on-chip |
NXP MCXC oscillator1 |
||
Counter |
on-chip |
NXP LPTMR1 |
|
on-chip |
NXP Periodic Interrupt Timer (PIT)1 |
||
on-chip |
Child node for the Periodic Interrupt Timer node, intended for an individual timer channel2 |
||
Flash controller |
on-chip |
NXP Kinetis Flash Memory Module A (FTFA)1 |
|
GPIO & Headers |
on-chip |
||
I2C |
on-chip |
||
Input |
on-board |
Group of GPIO-bound input keys1 |
|
Interrupt controller |
on-chip |
ARMv6-M NVIC (Nested Vectored Interrupt Controller) controller1 |
|
LED |
on-board |
Group of GPIO-controlled LEDs1 |
|
on-board |
Group of PWM-controlled LEDs1 |
||
MTD |
on-chip |
Flash node1 |
|
Pin control |
on-chip |
NXP PORT Pin Controller5 |
|
on-chip |
NXP PORT Pin Controller1 |
||
PWM |
on-chip |
||
RTC |
on-chip |
NXP Real Time Clock (RTC)1 |
|
Sensors |
on-board |
FXLS8974 3-axis accelerometer sensor1 |
|
on-chip |
NXP Kinetis temperature sensor1 |
||
Serial controller |
on-chip |
NXP LPUART2 |
|
on-chip |
Kinetis UART1 |
||
SRAM |
on-chip |
Generic on-chip SRAM description1 |
|
Timer |
on-chip |
ARMv6-M System Tick1 |
|
USB |
on-chip |
NPX Kinetis USBFSOTG Controller in device mode1 |
Connections and IOs
The MCXC242 SoC has five pairs of pinmux/gpio controllers (PORTA/GPIOA, PORTB/GPIOB, PORTC/GPIOC, PORTD/GPIOD, and PORTE/GPIOE) for the FRDM-MCXC242 board.
Name |
Function |
Usage |
---|---|---|
PTE16 |
ADC |
ADC0 channel 1 |
PTB18 |
GPIO |
Red LED |
PTB19 |
GPIO |
Green LED |
PTA13 |
GPIO |
Blue LED |
PTA1 |
LPUART0_RX |
UART Console |
PTA2 |
LPUART0_TX |
UART Console |
PTE1 |
LPUART1_RX |
UART |
PTE0 |
LPUART1_TX |
UART |
PTA20 |
RESET |
RESET Button SW1 |
PTC1 |
GPIO |
User button SW2 |
PTA4 |
GPIO |
User button SW3 |
PTD6 |
I2C1_SDA |
I2C accelerometer |
PTD7 |
I2C1_SCL |
I2C accelerometer |
System Clock
The MCXC242 SoC is configured to use HIRC running at 48 MHz as a system clock source.
Serial Port
The MCXC242 LPUART0 is used for the console.
Programming and Debugging
Build and flash applications as usual (see Building an Application and Run an Application for more details).
Configuring a Debug Probe
A debug probe is used for both flashing and debugging the board. This board is configured by default to use the MCU-Link CMSIS-DAP Onboard Debug Probe.
Using LinkServer
Linkserver is the default runner for this board, and supports the factory
default MCU-Link firmware. Follow the instructions in
MCU-Link CMSIS-DAP Onboard Debug Probe to reprogram the default MCU-Link
firmware. This only needs to be done if the default onboard debug circuit
firmware was changed. To put the board in DFU mode
to program the firmware,
short jumper JP1.
Using J-Link
There are two options. The onboard debug circuit can be updated with Segger
J-Link firmware by following the instructions in
MCU-Link JLink Onboard Debug Probe.
To be able to program the firmware, you need to put the board in DFU mode
by shortening the jumper JP1.
The second option is to attach a J-Link External Debug Probe to the
10-pin SWD connector (J10) of the board. Additionally, the jumper JP3 must
be shortened.
For both options use the -r jlink
option with west to use the jlink runner.
west flash -r jlink
Configuring a Console
Connect a USB cable from your PC to J9, and use the serial terminal of your choice (minicom, putty, etc.) with the following settings:
Speed: 115200
Data: 8 bits
Parity: None
Stop bits: 1
Flashing
Here is an example for the Hello World application.
# From the root of the zephyr repository
west build -b frdm_mcxc242 samples/hello_world
west flash
Open a serial terminal, reset the board (press the SW1 button), and you should see the following message in the terminal:
*** Booting Zephyr OS build v3.6.0-4475-gfa5bd8bb098e ***
Hello World! frdm_mcxc242/mcxc242
Debugging
Here is an example for the Hello World application.
# From the root of the zephyr repository
west build -b frdm_mcxc242 samples/hello_world
west debug
Open a serial terminal, step through the application in your debugger, and you should see the following message in the terminal:
*** Booting Zephyr OS build v3.6.0-4475-gfa5bd8bb098e ***
Hello World! frdm_mcxc242/mcxc242
Support Resources for Zephyr
MCUXpresso for VS Code, wiki documentation and Zephyr lab guides
NXP’s Zephyr landing page (including training resources)