element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Safe and Sound
  • Challenges & Projects
  • Design Challenges
  • Safe and Sound
  • More
  • Cancel
Safe and Sound
Blog MSP432 and TI-RTOS: Sharp LCD BoosterPack
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Jan Cumps
  • Date Created: 11 Jan 2017 7:32 PM Date Created
  • Views 2329 views
  • Likes 9 likes
  • Comments 16 comments
  • safe and sound
  • 430boost-sharp96
  • memory_lcd
  • boosterpack
  • msp432
  • ti-rtos
  • launchpad
  • feature_tutorial
  • ti_rt
  • sharp_lcd_booster_pack
Related
Recommended

MSP432 and TI-RTOS: Sharp LCD BoosterPack

Jan Cumps
Jan Cumps
11 Jan 2017

How to work with the Sharp LCD BoosterPack,  MSP432 LaunchPad and TI-RTOS.

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

There's (currently) no TI-RTOS driver or example for the Sharp LCD BoosterPack with the MSP432 LaunchPad. But someone fixed that for us...

 

What you need:

  • MSP432 LaunchPad
  • 1 micro-USB cable
  • Code Composer Studio
  • TI-RTOS for MSP43X
  • 430BOOST-SHARP96430BOOST-SHARP96 LCD BoosterPack

 

At the time of writing, the TI-RTOS release for MSP43x doesn't ship with a driver for the Sharp 96*96 LCD BoosterPack.

Other flavours of the TI-RTOS (e.g.: CC1310 and 2650) have both driver and examples. My first idea was to port that implementation to the MSP432.

But then I stumbled on a forum post of a Mr. Pocreva on the TI E2E forum that contained a port. A working one!

 

The start of that forum post contains a zip file. You'll find grlib and LcdDriver folders in BluHale path of that archive.

Copy these two to your project and add a new include entry that points to grlib/grlib.

 

image

 

And then add this include and rtos task (or just replace the existing heartBeatFxn() task of the empty example) to your project. Check my links below to learn how to start a TI-RTOS project if you don't have one ready.

 

#include <lcddriver/sharp96x96.h>

Graphics_Context g_sContext;

#define TASKSTACKSIZE   512

Task_Struct task0Struct;
Char task0Stack[TASKSTACKSIZE];

/*
 *  ======== heartBeatFxn ========
 *  Toggle the Board_LED0. The Task_sleep is determined by arg0 which
 *  is configured for the heartBeat Task instance.
 */
Void heartBeatFxn(UArg arg0, UArg arg1)
{
    Sharp96x96_LCDInit();
    GrContextInit(&g_sContext, &g_sharp96x96LCD);
    GrContextForegroundSet(&g_sContext, ClrBlack);
    GrContextBackgroundSet(&g_sContext, ClrWhite);

    GrClearDisplay(&g_sContext);
    GrContextFontSet(&g_sContext, &g_sFontCm20b);

    GPIO_toggle(Board_LED0);

    GrStringDraw(&g_sContext, "Hello,", -1, 10, 15, 0);
    GrStringDraw(&g_sContext, "world!", -1, 22, 60, 0);

    GrFlush(&g_sContext);

    while (1) {
        Task_sleep((UInt)arg0);
        GPIO_toggle(Board_LED0);
    }
}

 

 

The header of the rtos task initialises the LCD driver. The task's loop just flashes an LED to show that the RTOS lives.

 

 

image

 

There are 153 fonts available. Enjoy! Make something nice.

(there's a sample project attached)

 

 

 

TI-RTOS Series
MSP432 and TI-RTOS: Getting Started Pt. 1 - Set Up and 1st RTOS Task
MSP432 and TI-RTOS: Getting Started Pt. 2 - Add an ADC Sample Task
MSP432 and TI-RTOS: Getting Started Pt. 3 - USB with Minimal CPU Use
MSP432 and TI-RTOS: PWM
MSP432 and TI-RTOS: I2C Configuration for Sensors BoosterPack
MSP432 and TI-RTOS: another I2C example - talk to a DAC
MSP432 and TI-RTOS: Sharp LCD BoosterPack
MSP432 and TI-RTOS: PID Library Part 1 - Intro
MSP432 and TI-RTOS: PID Library Part 2 - Real World Example
Attachments:
empty_MSP_EXP432P401R_TI.zip
  • Sign in to reply

Top Comments

  • jomoenginer
    jomoenginer over 8 years ago in reply to jomoenginer +2
    Jan, Okay, I believe I have found the issue. I was comparing the failing projects with the good projects I have and noticed the GrLib folder in the failing projects where shown as "GrLib" rather than …
  • DAB
    DAB over 8 years ago +1
    Great example of how perseverance can save a lot of development time. DAB
  • jomoenginer
    jomoenginer over 8 years ago +1
    Jan, Thanks for finding this and for posting your solution. I've created an empty TI-RTOS project in Code Compose Studio 7 and have added the GrLib and LcdDriver folders to the project as well as set the…
  • Jan Cumps
    Jan Cumps over 8 years ago in reply to jomoenginer

    You are right, Jon. I was talking to myself above. Need to check if this is CC26XX dependent or if it's just a driver that's not CPU dependent but not yet included in the rtos for MSP43x...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jomoenginer
    jomoenginer over 8 years ago in reply to Jan Cumps

    Jan,

     

    Isn't that example for the LAUNCHXL-CC2650 LaunchPad board rather than for the BOOSTXL-CC2650MA BoosterPack which comes in the kit for the challenge?  Perhaps there is no difference between the boards so it would be worth a try with the CC2650MA boostpack with the MSP432.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 8 years ago

    There's a TI-RTOS native example that works with the Sharp 96*96 for CC2640.

    It may be worth checking that one's driver out instead of the code in this blog...

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 8 years ago in reply to jomoenginer

    Thanks,

    I've updated the blog above to show that the two folders are in the BluHale directory of the ZIP file.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jomoenginer
    jomoenginer over 8 years ago in reply to jomoenginer

    Jan,

     

    Okay, I believe I have found the issue.  I was comparing the failing projects with the good projects I have and noticed the GrLib folder in the failing projects where shown as "GrLib" rather than "grlib" like in the passing projects.  Looking at the files that were used to import the "grlib" folder, I found the one with the "Grlib" folder came from the "BHLCD" directory the code that John Pocreva posted from the TI forum link you provide in you vid. If if i use the  LcdDriver and GrLib from the BHLCD folder the project fails to build.  But, if i user the LcdDriver and grlib from the BluHale folder, or the code you post, the project succeeds to build and load.  So, it's not a glitch in CCS but a glitch in the the user (me) with regards to the drivers that were pulled into the project.  I suppose this could be used as a FYI for anyone else that may run into this, but following your instruction and using your posted code should not show the build error. 

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube