MCUXpresso SDK Documentation

pxp_copy_pic

pxp_copy_pic#

Overview#

The this project shows how to use PXP to copy image from one buffer to another.

Supported Boards#

EVK9-MIMX8ULP
Hardware requirements
  • Micro USB cable

  • MIMX8ULP-EVK/EVK9 board

  • J-Link Debug Probe

  • 5V power supply

  • RK055AHD091(rm68200) panel or RK055MHD091(hx8394) panel

Board settings

Connect the MIPI panel to MIMX8ULP-EVK board J18.

Prepare the Demo
  1. Connect 5V power supply and J-Link Debug Probe to the board, switch SW10 to power on the board.

  2. Connect a micro USB cable between the host PC and the J17 USB port on the target board.

  3. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  4. Build example to generate sdk20-app.bin

  5. Generate flash.bin with imx-mkimage and download it according to Getting Started doc

  6. Open two serials lines provided at J17 USB port. (e.g. /dev/ttyUSB0~3, /dev/ttyUSB2 for A Core, /dev/ttyUSB3 for M Core)

  7. Press the reset button on your board and boot to uboot and let uboot not using diplay peripherals => setenv video_off yes;saveenv then re-power on the board

  8. Let Stop in Uboot.

Steps to configure the panels

RK055MHD091 panel is used by default and the default setting for APP_DISPLAY_EXTERNAL_CONVERTOR is disabled.

When Kconfig is used

Below setting is for kconfig, you can fix below settings in prj.conf under example folder For default panel, you do not need to change anything. For RK055AHD091(rm68200) panel: CONFIG_DEMO_PANEL_RK055AHD091=y

When package is used

Below setting is for mcux_config.h. For RK055AHD091(rm68200) panel: Setting DEMO_PANEL to 0 to choose RK055AHD091 panel.

Running the demo

When the example runs, the screen shows what described in overview. The log below shows the output of the demo in the terminal window:

PXP picture copy example start...
Copy from (0, 0) in input image to (10, 20) in output image, size: (16, 8)

PXP picture copy example success...
EVKB-IMXRT1050
Hardware requirements
  • Mini/micro USB cable

  • EVKB-IMXRT1050 board

  • Personal Computer

Board settings
Prepare the Demo
  1. Connect a USB cable between the host PC and the OpenSDA USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

When the example runs successfully, success message shows in the terminal, otherwise ERROR is shown in the terminal.

MIMXRT1060-EVKB
Hardware requirements
  • Mini/micro USB cable

  • MIMXRT1060-EVKB board

  • Personal Computer

Board settings
Prepare the Demo
  1. Connect a USB cable between the host PC and the OpenSDA USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

When the example runs successfully, success message shows in the terminal, otherwise ERROR is shown in the terminal.

MIMXRT1170-EVKB
Hardware requirements
  • Mini/micro USB cable

  • MIMXRT1170-EVKB board

  • Personal Computer

Board settings
Prepare the Demo
  1. Connect a USB cable between the host PC and the OpenSDA USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Build and download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

When the example runs successfully, success message shows in the terminal, otherwise ERROR is shown in the terminal.

MIMXRT1060-EVKC
Hardware requirements
  • Mini/micro USB cable

  • MIMXRT1060-EVKC board

  • Personal Computer

Board settings
Prepare the Demo
  1. Connect a USB cable between the host PC and the OpenSDA USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

When the example runs successfully, success message shows in the terminal, otherwise ERROR is shown in the terminal.

EVK-MIMX8ULP
Hardware requirements
  • Micro USB cable

  • MIMX8ULP-EVK/EVK9 board

  • J-Link Debug Probe

  • 5V power supply

  • RK055AHD091(rm68200) panel or RK055MHD091(hx8394) panel

Board settings

Connect the MIPI panel to MIMX8ULP-EVK board J18.

Prepare the Demo
  1. Connect 5V power supply and J-Link Debug Probe to the board, switch SW10 to power on the board.

  2. Connect a micro USB cable between the host PC and the J17 USB port on the target board.

  3. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  4. Build example to generate sdk20-app.bin

  5. Generate flash.bin with imx-mkimage and download it according to Getting Started doc

  6. Open two serials lines provided at J17 USB port. (e.g. /dev/ttyUSB0~3, /dev/ttyUSB2 for A Core, /dev/ttyUSB3 for M Core)

  7. Press the reset button on your board and boot to uboot and let uboot not using diplay peripherals => setenv video_off yes;saveenv then re-power on the board

  8. Let Stop in Uboot.

Steps to configure the panels

RK055MHD091 panel is used by default and the default setting for APP_DISPLAY_EXTERNAL_CONVERTOR is disabled.

When Kconfig is used

Below setting is for kconfig, you can fix below settings in prj.conf under example folder For default panel, you do not need to change anything. For RK055AHD091(rm68200) panel: CONFIG_DEMO_PANEL_RK055AHD091=y

When package is used

Below setting is for mcux_config.h. For RK055AHD091(rm68200) panel: Setting DEMO_PANEL to 0 to choose RK055AHD091 panel.

Running the demo

When the example runs, the screen shows what described in overview. The log below shows the output of the demo in the terminal window:

PXP picture copy example start...
Copy from (0, 0) in input image to (10, 20) in output image, size: (16, 8)

PXP picture copy example success...
FRDM-IMXRT1152
Hardware requirements
  • Type-C USB cable

  • FRDM-IMXRT1152 board

  • Personal Computer

Board settings
Prepare the Demo
  1. Connect a USB cable between the host PC and the OpenSDA USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Build and download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

When the example runs successfully, success message shows in the terminal, otherwise ERROR is shown in the terminal.

MIMXRT1040-EVK
Hardware requirements
  • Micro USB cable

  • MIMXRT1040-EVK board

  • RK043FN02H-CT or RK043FN66HS-CT6 LCD board

  • Personal Computer

Board settings
  1. Connect the RK043FN02H-CT or RK043FN66HS-CT6 to board.

Prepare the Demo
  1. Connect a USB cable between the host PC and the OpenSDA USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Build the project, the project uses RK043FN66HS-CT6 by default, to use other panels, set the coresponding panel to y in prj.conf under board example folder before project generation. The supported panels can be found in examples_boards<board>\project_segments\display_support\Kconfig.prjseg. Or change the macro DEMO_PANEL in mcux_config.h of the project, which number represents which panel can be found in display_support.h and mcux_config.h

  4. Download the program to the target board.

  5. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

When the example runs successfully, success message shows in the terminal, otherwise ERROR is shown in the terminal.

EVK-MIMXRT1064
Hardware requirements
  • Mini/micro USB cable

  • EVK-MIMXRT1064 board

  • Personal Computer

Board settings
Prepare the Demo
  1. Connect a USB cable between the host PC and the OpenSDA USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

When the example runs successfully, success message shows in the terminal, otherwise ERROR is shown in the terminal.

MIMXRT1160-EVK
Hardware requirements
  • Mini/micro USB cable

  • MIMXRT1160-EVK board

  • Personal Computer

Board settings
Prepare the Demo
  1. Connect a USB cable between the host PC and the OpenSDA USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Build and download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

When the example runs successfully, success message shows in the terminal, otherwise ERROR is shown in the terminal.

IMX943-EVK
Hardware requirements
  • Micro USB cable

  • IMX943-EVK board

  • J-Link Debug Probe

  • 12V~20V power supply

  • Personal Computer

  • Headphone

Board settings

No special settings are required.

Please note this application can’t support running with Linux BSP!
Prepare the Demo
  1. Connect 12V~20V power supply and J-Link Debug Probe to the board, switch SW1(SYS_PWR) to power on the board.

  2. Connect a micro USB cable between the host PC and the J15(FTDI_DEBUG) USB port on the target board.

  3. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  4. Download the program to the target board.

  5. Either re-power up your board or launch the debugger in your IDE to begin running the example

Running the demo

When the example runs, the screen shows what described in overview. The log below shows the output of the demo in the terminal window:

PXP picture copy example start...
Copy from (0, 0) in input image to (10, 20) in output image, size: (16, 8)

PXP picture copy example success...