APPW_Init() Question

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • APPW_Init() Question

      I am in the process of setting up emWin to run AppWizard project on a custom board target (custom bsp) with NXP MK22FX512AVLQ12 MCU.
      There appears to be a library call "APPW_Init()" that is found in APPMainTask.c for most BSP examples that use emWin 6.10f along with AppWizard:

      C Source Code

      1. void MainTask(void) {
      2. //
      3. // Setup configuration dependent pointers
      4. //
      5. APPW_X_Setup();
      6. //
      7. // Initialize AppWizard
      8. //
      9. APPW_Init(APPW_PROJECT_PATH);
      10. //
      11. // Create initial screen...
      12. //
      13. APPW_CreateRoot(APPW_INITIAL_SCREEN, WM_HBKWIN);
      14. ...
      Display All
      Is the APPW_Init() call needed when compiling code in my custom board target project?
      What happens if APPW_Init() is commented out (or not used)?

      Not exactly sure, but what files from "APPW_PROJECT_PATH" are accessed when App_Init() is called?
    • Hi,

      the APPW_PROJECT_PATH define is only used when running the application in the simulation. On a target, you may call APPW_Init("") instead.

      The call of APPW_Init() is definitely necessary though, it initializes emWin and some of emWins features. So it is as much necessary as a GUI_Init() in a normal emWin application.

      Best regards,

      Florian
      Please read the forum rules before posting.

      Keep in mind, this is *not* a support forum.
      Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
      Should you be entitled to support you can contact us via our support system: segger.com/ticket/

      Or you can contact us via e-mail.