# Using the right emWin Library if using Mbed CLI

##For Keil:
1. Navigate to /source/emwin/emWin_library
2. Change the extension of libemWin_M4F.ar to libemWin_M4F.a

##For GCC:
1. Navigate to NXP's emWin Graphics Library Downloads page https://www.nxp.com/pages/emwin-graphics-library:EMWIN-GRAPHICS-LIBRARY?tab=Design_Tools_Tab
2. Under "Libraries" click on the Download button next to "emwin 5.30c Pre-Compiled Libraries for NXP ARM MCUs"
3. Click "I Accept" then save the NXP_emWin530c_libraries.exe to your computer
4. Install the libraries to a location on your computer

Now that we have downloaded the emWin 5.30c pre-compiled libraries, we will need to replace the existing emWin library with the correct one in our Mbed OS project:

1. Within the NXP_emWin530c_libraries folder, copy the file from the following location: NXP_emWin530c_libraries/emWin_library/LPCXpresso/libemWin_M4F.a
2. With the file copied, navigate to the following folder within your Mbed OS Project: /source/emwin/emWin_library
3. Paste the copied file and delete the file libemWin_M4F.ar

##For IAR:
1. Follow the same steps as for the GCC compiler except this time download the "Segger emWin 5.38b Libraries and Utilities for NXP Cortex M3/M4 MCUs"
2. Copy the file located in the following path NXP-emWin538b-libraries/emWin_library/LPCXpresso/libemWin_M4F.a
3. With the file copied, navigate to the following folder within your Mbed OS Project: /source/emwin/emWin_library
4. Paste the copied file and delete the file libemWin_M4F.ar