This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

StarterWare's Grlib does not have extended fonts

Other Parts Discussed in Thread: AM3359

Hi,

     We are using StarterWare on a AM3359 and while trying to get our user menu's straightened out we found the lack of extended ASCII characters to be a no go. We built a extended font set using the ftrasterize utility from StellarisWare and generated the fonts .c file for use in our build. The issue is that the font uses a tFontEx structure instead of the tFont structure included in the grlib.h file. The reason I am posting this question here is that the current StellarisWare code includes the tFontEx in the grlib.h file. Is there a procedure or way to get the newer StellarisWare code into StarterWare?

Thanks,

     John C.

  • Hi John,

    I moved the latest Stellaris grlib to the StarterWare to have support of tFontEx and tFontWide. I tested it on my beaglenone and it worked.

    This is my own unofficial version. You can try it. Simply replace grlib subdirectory in your StarerWare.

    Best regards,

    Mariusz

    2526.grlib.zip

  • Hi Mariusz,

              Did you build the grlib or did you simply take the latest from Stellaris?

    Thanks,

         John C.

  • Hi John,

    replace grlib dir and rebuild the grlib project. You will need compiler version min 5.0.1 with __clz() intrinsic support.

    After upgrading of the compiler please rebuild also other components, like "platform", "drivers", "utils" and "system".

    I was able to use tFontEx and tFontWide. You can find such fonts in /fonts subdirectory named consola. I used grlib_demo to display it

    on beaglebone + dvi cap. These fonts are quite big:72 and 78pt. I used 1024x768 resolution. I didn't test other components of the library. You can add your 2 cents there :-)

    Best regards,

    Mariusz

     

     

  • Hey Mariusz,

                   I swapped out the grlib directory and tried to rebuild the project. The big issue is the "include grlib/grlib.h" error: Did the source tree change or did you have to modify the pathways for the .h file?

    Thanks,

         John C.

    >> Compilation failure
    Compilation terminated.
    'Building file: C:/ti/AM335X_StarterWare_02_00_00_07/grlib/fonts/fontcmss24i.c'
    gmake: *** [fonts/fontcmss20b.obj] Error 1
    'Building file: C:/ti/AM335X_StarterWare_02_00_00_07/grlib/fonts/fontcmss26.c'
    "C:/ti/AM335X_StarterWare_02_00_00_07/grlib/fonts/fontcmss20i.c", line 31: fatal error: could not open source file "grlib/grlib.h"

    >> Compilation failure
    1 fatal error detected in the compilation of "C:/ti/AM335X_StarterWare_02_00_00_07/grlib/fonts/fontcmss20i.c".
    Compilation terminated.
    "C:/ti/AM335X_StarterWare_02_00_00_07/grlib/fonts/fontcmss22.c", line 31: fatal error: could not open source file "grlib/grlib.h"
    1 fatal error detected in the compilation of "C:/ti/AM335X_StarterWare_02_00_00_07/grlib/fonts/fontcmss22.c".

  • Hi John,

    do you see the attached grlib.zip below ? Please use this one.

    I'm doing it again.

    Best regards,

    Mariusz

    7077.grlib.zip

  • Hi Mariusz,

                  When using you version as a "drop-in" I get the following linker error:

    <Linking>
     undefined              first referenced                                                                       
      symbol                    in file                                                                            
     ---------              ----------------                                                                       
     GrMapISO8859_1_Unicode C:\ti\AM335X_StarterWare_02_00_00_07\binary\armv7a\cgt_ccs\grlib\libgr.lib<context.obj>
     WidgetMutexGet         C:\ti\AM335X_StarterWare_02_00_00_07\binary\armv7a\cgt_ccs\grlib\libgr.lib<widget.obj>

    error #10234-D: unresolved symbols remain

                Is there something else I'm missing?

    Thanks again,

         John C.

  • Hi John,

    try to replace the file widget.c with the atatched one. Then rebuild again grlib project..

    Best regards,

    Mariusz.

    2570.widget.zip

  • Hi John,

    I spent today a little bit more time on it.  Some minor changes were made by me in image.c.

    I'm attaching my latest grlib.zip and screenshots from grlib demo tested AM3358EVM.

    The library is based on StellarisWare grlib v9453 with tFontEx and tFontWide support.

    Best regards,

    Mariusz

    8475.screenshots.zip

    0045.grlib.zip

     

     

  • Hey Mariusz,

                   Let me give it a try. I've been fixing UART issues earlier today. I'll let you know and thanks for all the help.

    John C.

  • Still picking up this linker error:

    <Linking>

     undefined              first referenced                                                                       
      symbol                    in file                                                                            
     ---------              ----------------                                                                       
     GrMapISO8859_1_Unicode C:\ti\AM335X_StarterWare_02_00_00_07\binary\armv7a\cgt_ccs\grlib\libgr.lib<context.obj>

  • You have to link the "charmap.c" file to the grlib project.

    Please see attached screenshot. Check also other files.

  • Mariusz,

                 Linking that file did it. I can now build the glib that I got from you. Can you tell me is there going to be a new release of glib for StarterWare or a full procedure for converting the Stellaris Ware graphics lib directly from their web site?

    Thanks,

         John C.