Skip to content

symfund/N9H30_emWin_NonOS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Developing emWin/LittleVGL ARM & WIN32 Applications for N9H30 with Visual Studio Community 2022 and GNU ARM Embedded Toolchain on Windows 10

emWin

https://github.com/symfund/N9H30_emWin_NonOS/tree/master/SampleCode/emWin_GUIDemo/VS2022

LittleVGL

https://github.com/symfund/N9H30_emWin_NonOS/tree/master/SampleCode/LVGL/VS2022

Requirements

The GNU ARM Embedded Tools for Windows and build tool 'make' are required to build firmware for ARM target.

GNU Arm Embedded Toolchain

https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads

MSYS2

https://www.msys2.org/

After installing the MSYS2, click the 'MSYS2 MSYS' in start menu, issue the following command to install the build 'make' tool.

$ pacman -Sy make

Configuring Toolchain

Alter vstudio/BuildCmd.bat, and ensure that both MAKE_PATH and GNU_TOOLS_ARM_EMBEDDED_PATH point to the right path.

SET MAKE_PATH="C:\msys64\usr\bin"

SET GNU_TOOLS_ARM_EMBEDDED_PATH="C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2021.10\bin"

Using Nuvoton Simulator

Nuvoton Simulator Animation

Arbitray LCD resolution support

To change LCD resolution on PC simulator, alter ThirdParty\emWin\Config\Win32\LCDConf.c

#define XSIZE_PHYS 375

#define YSIZE_PHYS 640

Portrait Mode on Simulator

portrait mode

Portrait Mode on Device

portrait mode on device

Open NuDemo.sln with Microsoft Visual Studio Community 2022, choose the configuration Debug and x86 , then click the button Local Windows Debugger to lanuch simulator.

Visual Studio 2019