Graphical user interfaces (GUIs) have become increasingly popular and have richer graphics than ever before, but creating these displays can be time consuming without help. With time to market being such an important factor in product development, it is important to have a tool to speed up the development of GUIs for your products. SEGGER's AppWizard is a GUI development tool that does just that, by helping you create ready to run GUI applications (built on top of SEGGER's emWin graphics library of course).
This document will show you how to create a new AppWizard project and add a background image to get you started on GUI project. We will be using the i.MX RT1050 but the directions should apply to any device that is supported by emWin in the MCUXpresso SDK.
The first step is to download and install the MCUXpresso SDK for the device you are working with. Make sure that emWin is included as an optional software component. Refer to the video Getting Started with emWin and MCUXpresso if you need instructions on how to do this.
AppWizard can be downloaded from the NXP emWin Libraries Download tab. Navigate to www.nxp.com/emwin-graphics-libraries, click on the download tab, and then click on Download next to the AppWizard Application Development Tool.
Clicking this link will download an installer to your PC. Just run the installer and follow the prompts to install AppWizard to your PC. Remember that NXP recommends selecting defaults for any install options present.
Before creating your new AppWizard project, a space to save and export the generated files to is needed. NXP recommends importing the simplest example to use as a template: the emwin_serial_terminal demo. To import this example, follow these directions.
After the example project has been created, the AppWizard project can now be created, as there is a location to save the project and keep the generated files. Perform the following directions to create a new AppWizard project.
In the newly created AppWizard project, a blank canvas will be displayed.
In the project folder, a new folder will be created named with the project named established in the creation of the project.
In this folder, there will be the AppWizard project you created, a Simulation folder (for holding the simulation files), Source folder (for holding the source files AppWizard will create) and a Target folder (that holds BSP files and library files). (NOTE: The target folder will not exist if you did not select a BSP.)
If you did not select a BSP, manually create a Target folder in the evkbimxrt1050_emwin_serial_terminal_AppWizard folder. Within the Target folder, create a GUI_Lib folder. Then copy the header files from <root>/ProgramData/Segger/AppWizard_<version>/Lib/Include to the Target/GUI_Lib folder you just created.
Then copy the library from <root>/ProgramData/Segger/AppWizard_<version>/Lib/GCCM4 to the Target/GUI_Lib folder you just created. (NOTE: You could use the library in GCCM7FP if desired, but you would need to rename the library to libGUI.a and enable floating point support. )
Next, you will want to add a background image to your project and generate the files for use in your MCUXpresso project. Follow these directions to add a background image to your project.
Once the AppWizard project files are generated, the MCUXpresso project needs to be modified to use the AppWizard files. The MCUXpresso project should still be open from the previous directions in this document. If not, go back and perform them to make sure the project is open.
The following directions detail how to configure your MCUXpresso project to use the AppWizard files.
After modifying the project properties, there are source file changes that need to be made since the original source was not intended to be used with AppWizard. Here are the source changes that need to be made to get you going.
That's it for how to create a new project in AppWizard and how to add a background image. At this point, you should be able to compile and download your project to the target board. You should know how to import a simple SDK example to use as a template, create a new AppWizard project, add a screen and image to this project, modify the template project to use the AppWizard project source files and library, and how to modify the source to use the new AppWizard project.
Customer would like to use EmWin AppWizard for RT1064. They checking with us whether they could use the latest version of Segger Appwizard v1.20(Download in Segger website) instead of our EmWin Appwizard v1.08 in nxp.com. Is there any SDK support for the latest Appwizard version.
Thanks.
Regards,
Audrey
Hi @EngHuiPeng ,
I believe this should be possible. I haven't tried this but I don't see any reason it wouldn't work either. I think you would just need to replace the library files in the same manner as I showed when working without a BSP.
Best regards,
Chris
Chris,
I tried using v1.2 but I cannot see the BSP selection for RT1064. How to do the library replacement.
Thanks.
Regards,
Audrey
Hi @EngHuiPeng ,
If the RT1064 device isn't in the selection list of the v1.2, then they may not have support for this device in AppWizard yet. You would need to follow the step 6 in the Creating a New AppWizard Project section as I have outlined. The steps to include the library are there.
Best regards,
Chris
Customer follow the step 6 in the Creating a New AppWizard Project section. But all her screens overlap and flicker few times before changing to next screen. Attached is the video.
What could be the possible reason for this behaviour? Appreciate your advice.
Regards,
Audrey