[ HMI ] [FAQ] How to enable dual buffer function on emWin AppWizard

Post Reply
yuffie
Posts: 2
Joined: 27 Jun 2023, 17:03

30 Aug 2023, 16:22

Q: How to enable the dual frame buffer function on emWin AppWizard when using N9H30?

Ans:
It's necessary to update the Linux kernel and emWin AppWizard package settings at the same time to enable the dual frame buffer function.

# Settings of Linux Kernel :
1. Download the latest version of the Buildroot package from Nuvoton GitHub. (https://github.com/OpenNuvoton/MPU-Family)
2. Unzip the file and enter the Buildroot folder, use the command "make linux-menuconfig" to open the kernel configuration interface.
3. Configuration the following settings and save:
Device Drivers ->
Graphics Support ->
[*] Support for frame buffer devices ->
[*] Enable NUC970/N9H30 dual frame buffer

4. Rebuild the kernel file with the command "make linux-rebuild".
5. Use the command "make" to package the files required by the kernel (generated image files).
6. Burning images to the evaluation board.

# Settings of emWin AppWizard package :
Open the LCDConf2.c file in the package, search for the keyword "#define NUM_BUFFERS" and modify it to 2, then make the emWin file again. (Before remaking the file, please clean the record by command "make clean" first.)

Path of LCDConf2.c :
 In Linux package: ..\9H30_Linux_emWin_Package_YYYYMMDD\Sample\SimpleDemoAppWizard
 In Non-OS package: ..\N9H30_NonOS\SampleCode\emWin_SimpleDemoAppWizard

Post Reply
  • Information
  • Who is online

    Users browsing this forum: Baidu [Spider] and 21 guests