sd_jpeg#
Overview#
The SD JPEG Demo application reads the JPEG pictures from the SD card, decodes them, and shows them in the LCD panel one by one. Note: Please make sure the card you are using is FAT format. If the card is in exFAT format, uncomment and set the macro FF_USE_LFN and FF_FS_EXFAT to 1 in ffconf_gen.h
Supported Boards#
EVKB-IMXRT1050
Hardware requirements
Micro USB cable
EVKB-IMXRT1050 board
JLink Plus
5V power supply
Personal Computer
RK043FN02H-CT or RK043FN66HS-CT6 LCD board (RK043FN02H-CT and RK043FN66HS-CT6 are compatible)
SD card
Board settings
Connect the RK043FN02H-CT or RK043FN66HS-CT6 to board.
Unzip the pics.zip, place the jpg pictures to the SD card.
Insert the SDCARD into card slot.
Prepare the Demo
The demo use RK043FN66HS-CT6 panel by default, to use other panel, set the coresponding panel DEMO_PANEL_xxx(without ‘_SUPPORT’) 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
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Launch the debugger in your IDE to begin running the demo.
Running the demo
If this example runs correctly, pictures are shown in the lcd panel one by one.
MIMXRT1060-EVKB
Hardware requirements
Micro USB cable
MIMXRT1060-EVKB board
JLink Plus
5V power supply
Personal Computer
RK043FN02H-CT or RK043FN66HS-CT6 LCD board (RK043FN02H-CT and RK043FN66HS-CT6 are compatible)
SD card
Board settings
Connect the RK043FN02H-CT or RK043FN66HS-CT6 to board.
Unzip the pics.zip, place the jpg pictures to the SD card.
Insert the SDCARD into card slot.
Make sure resistors R368/R347/R349/R365/R363 are removed.
Prepare the Demo
The demo use RK043FN66HS-CT6 panel by default, to use other panel, set the coresponding panel DEMO_PANEL_xxx(without ‘_SUPPORT’) 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
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Insert SD card to card slot
Download the program to the target board.
Launch the debugger in your IDE to begin running the demo.
Running the demo
If this example runs correctly, pictures are shown in the lcd panel one by one.
MIMXRT1170-EVKB
Hardware requirements
Micro USB cable
MIMXRT1170-EVKB board
JLink Plus
5V power supply
Personal Computer
RK055MHD091 panel or RK055AHD091 panel or RK055IQH091 panel or RaspberryPi panel
SD card
Board settings
Connect the panel to J48. For RaspberryPi panel, connect the panel to J84, then connect the panel’s 5V pin to J85-1, GND pin to J85-2.
Unzip the pics.zip, place the jpg pictures to the SD card.
Please make sure R136 is weld for GPIO card detect and then insert the SDCARD into card slot(J15).
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Build the project, the project uses RK055MHD091 by default, to use other panels, set the coresponding panel DEMO_PANEL_xxx(without ‘_SUPPORT’) 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
Insert SD card to card slot
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
If this example runs correctly, pictures are shown in the lcd panel one by one.
MIMXRT1060-EVKC
Hardware requirements
Micro USB cable
MIMXRT1060-EVKC board
JLink Plus
5V power supply
Personal Computer
RK043FN02H-CT or RK043FN66HS-CT6 LCD board (RK043FN02H-CT and RK043FN66HS-CT6 are compatible)
SD card
Board settings
Connect the RK043FN02H-CT or RK043FN66HS-CT6 to board.
Unzip the pics.zip, place the jpg pictures to the SD card.
Insert the SDCARD into card slot.
Prepare the Demo
The demo use RK043FN66HS-CT6 panel by default, to use other panel, set the coresponding panel DEMO_PANEL_xxx(without ‘_SUPPORT’) 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
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Insert SD card to card slot
Download the program to the target board.
Launch the debugger in your IDE to begin running the demo.
Running the demo
If this example runs correctly, pictures are shown in the lcd panel one by one.
FRDM-IMXRT1152
Hardware requirements
Micro USB cable
FRDM-IMXRT1152 board
JLink Plus
5V power supply
Personal Computer
RK055MHD091 panel or RK055AHD091 panel or RK055IQH091 panel or RaspberryPi panel
SD card
Board settings
Connect the panel to J62. For RaspberryPi panel, connect the panel to J58, then connect the panel’s 5V pin to J56-1, GND pin to J56-2.
Unzip the pics.zip, place the jpg pictures to the SD card.
Please make sure R23 is weld for GPIO card detect and then insert the SDCARD into card slot(J14).
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Build the project, the project uses RaspberryPi by default, to use other panels, set the coresponding panel DEMO_PANEL_xxx(without ‘_SUPPORT’) 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
Insert SD card to card slot
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
If this example runs correctly, pictures are shown in the lcd panel one by one.
MIMXRT1040-EVK
Hardware requirements
Micro USB cable
MIMXRT1040-EVK board
JLink Plus
5V power supply
Personal Computer
RK043FN02H-CT or RK043FN66HS-CT6 LCD board (RK043FN02H-CT and RK043FN66HS-CT6 are compatible)
SD card
Board settings
Connect the RK043FN02H-CT or RK043FN66HS-CT6 to board.
Unzip the pics.zip, place the jpg pictures to the SD card.
Insert the SDCARD into card slot.
Make sure jumper J57 is set to 2-3 (the board default) so the SD card interface is enabled. The demo will hang on SD card access if J57 is set to 1-2.
Prepare the Demo
The demo use RK043FN66HS-CT6 panel by default, to use other panel, set the coresponding panel DEMO_PANEL_xxx(without ‘_SUPPORT’) 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
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Insert SD card to card slot
Download the program to the target board.
Launch the debugger in your IDE to begin running the demo.
Running the demo
If this example runs correctly, pictures are shown in the lcd panel one by one.
EVK-MIMXRT1064
Hardware requirements
Micro USB cable
EVK-MIMXRT1064 board
JLink Plus
5V power supply
Personal Computer
RK043FN02H-CT or RK043FN66HS-CT6 LCD board (RK043FN02H-CT and RK043FN66HS-CT6 are compatible)
SD card
Board settings
Connect the RK043FN02H-CT or RK043FN66HS-CT6 to board.
Unzip the pics.zip, place the jpg pictures to the SD card.
Insert the SDCARD into card slot.
Prepare the Demo
The demo use RK043FN66HS-CT6 panel by default, to use other panel, set the coresponding panel DEMO_PANEL_xxx(without ‘_SUPPORT’) 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
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Insert SD card to card slot
Download the program to the target board.
Launch the debugger in your IDE to begin running the demo.
Running the demo
If this example runs correctly, pictures are shown in the lcd panel one by one.
MIMXRT1160-EVK
Hardware requirements
Micro USB cable
MIMXRT1160-EVK board
JLink Plus
5V power supply
Personal Computer
RK055MHD091 panel or RK055AHD091 panel or RK055IQH091 panel
SD card
Board settings
Connect the RK055MHD091-CTG LCD board to J48.
Unzip the pics.zip, place the jpg pictures to the SD card.
Please make sure R136 is weld for GPIO card detect and then insert the SDCARD into card slot(J15).
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Build the project, the project uses RK055MHD091 by default, to use other panels, The demo use MIPI RK055MHD091 panel by default, to use other panel, set the coresponding panel DEMO_PANEL_xxx(without ‘_SUPPORT’) 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
Insert SD card to card slot
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
If this example runs correctly, pictures are shown in the lcd panel one by one.
EVK-MIMXRT595
Hardware requirements
Micro USB cable
TFT Proto 5” CAPACITIVE board HW REV 1.01 by Mikroelektronika. (Named as SSD1963 panel in project. Not necessary if use MIPI panel)
EVK-MIMXRT595
Personal Computer
RK055AHD091 MIPI panel (Not necessary if use other panel)
RK055MHD091 MIPI panel (Not necessary if use other panel)
RM67162(G1120B0MIPI) smart MIPI panel (Not necessary if use other panel)
CO5300(ZC143AC72MIPI) smart MIPI panel (Not necessary if use other panel)
SD card
Board settings
To use SSD1963 panel: Connect SSD1963 panel to J43.
Make sure resistors R691~R697 are populated and resistors R611~R620,R660, R661 are removed.
To use MIPI panel: Connect MIPI panel to J44.
Unzip the pics.zip, place the jpg pictures to the SD card.
Insert the SDCARD into card slot.
Prepare the Demo
The demo use RK055MHD091 MIPI panel by default, to use other panel, set the coresponding panel DEMO_PANEL_xxx(without ‘_SUPPORT’) 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
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
When Package is used
Modify DEMO_PANEL in mcux_config.h.
#define DEMO_PANEL 4 for “MikroE TFT Proto 5” CAPACITIVE FlexIO panel.
#define DEMO_PANEL 0 for “RK055HDMIPI4M” MIPI Rectangular panel.
#define DEMO_PANEL 3 for “G1120B0MIPI” MIPI Circular panel.
#define DEMO_PANEL 2 for “RK055MHD091A0-CTG MIPI Rectangular panel.(default)
Running the demo
If this example runs correctly, pictures are shown in the lcd panel one by one.
MIMXRT700-EVK
Hardware requirements
Micro USB cable
MIMXRT700-EVK
Personal Computer
TFT Proto 5” CAPACITIVE board HW REV 1.01 by Mikroelektronika. (Named as SSD1963 panel in project. Not necessary if use MIPI panel)
LCD_PAR_S035 (Not necessary if use MIPI panel)
RK055AHD091 MIPI panel (Not necessary if use other panel)
RK055MHD091 MIPI panel (Not necessary if use other panel)
RaspberryPi Panel (Not necessary if use other panel)
G1120B0MIPI(RM67162) MIPI Circular Display (Not necessary if use other panel)
ZC143AC72MIPI(CO5300) MIPI Circular Display (Not necessary if use other panel)
Board settings
To use SSD1963 panel: Connect SSD1963 panel to J4. Make sure to connect JP7 2&3 to use 3.3v interface.
To use MIPI panel: Connect MIPI panel to J52.
To use Raspberry panel: Connect the panel to J8. Then connect the panel’s 5V pin to JP43-1, GND pin to JP43-2. Make sure the R75, R76, R79, R80 are connected.
Prepare the Demo
Make sure JP65 1-2 are connected, and insert the SD card which has the pictures unziped in root folder in slot J47. The demo use MIPI RK055MHD091 panel by default, to use other panel, set the coresponding panel DEMO_PANEL_xxx(without ‘_SUPPORT’) 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
Connect a USB cable between the host PC and the MCU-LINK USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
If this example runs correctly, pictures are shown in the lcd panel one by one.
FRDM-IMXRT700
Hardware requirements
Type-C USB cable
FRDM-IMXRT700
Personal Computer
RaspberryPi Panel
Board settings
Make sure JP65 1-2 are connected, and insert the SD card which has the pictures unziped in root folder in slot J47.
To use Raspberry panel: Connect the panel to J8. Then connect the panel’s 5V pin to JP43-1, GND pin to JP43-2. Make sure the R75, R76, R79, R80 are connected.
Prepare the Demo
Connect a USB cable between the host PC and the MCU-LINK USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
If this example runs correctly, pictures are shown in the lcd panel one by one.