This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to remove unused variables from build?

Hi i am new with Keil and it my question. I use u8g2 library with nRF52832. This library has a file with fonts in which there are many arrays of very large sizes but only one is used depending on the selected font. When I try to compile my project Keil is an error that the controller does not have enough space for the project is larger than 40MB which is logical since nRF52832 has only 65KB RAM and 512KB ROM. What can I do to Keil use only the currently used arrays and buffers and not all that are in the library's file?