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.
Just received my BOOSTXL-SHARP128. How do I get started with it? I'm an Energia user.
Are there any on-line tutorials?
Hi,
What change did you make to the define?
I've tried adding the following, to no avail.
#define LCD_VERTICAL_MAX 128
#define LCD_HORIZONTAL_MAX 128
The library in Energia was update a while ago for the Sharp 128 display but there was no release since that time.
Meanwhile you can find the files here:
Regards,
Stefan
Hi,
Please see the error report and Sketch, below. I'm using the .cpp and .h etc files in your link.
Thanks
Energia: 1.8.7E21 (Windows 10), Board: "MSP-EXP430FR5969LP"
C:\Users\bayca\energia-1.8.7E21-windows\energia-1.8.7E21\arduino-builder -dump-prefs -logger=machine -hardware C:\Users\bayca\energia-1.8.7E21-windows\energia-1.8.7E21\hardware -hardware C:\Users\bayca\AppData\Local\Energia15\packages -tools C:\Users\bayca\energia-1.8.7E21-windows\energia-1.8.7E21\tools-builder -tools C:\Users\bayca\energia-1.8.7E21-windows\energia-1.8.7E21\hardware\tools\msp430 -tools C:\Users\bayca\AppData\Local\Energia15\packages -built-in-libraries C:\Users\bayca\energia-1.8.7E21-windows\energia-1.8.7E21\libraries -libraries C:\Users\bayca\Documents\Energia\libraries -fqbn=energia:msp430:MSP-EXP430FR5969LP -ide-version=10807 -build-path C:\Users\bayca\AppData\Local\Temp\arduino_build_813865 -warnings=none -build-cache C:\Users\bayca\AppData\Local\Temp\arduino_cache_596478 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.dslite.path=C:\Users\bayca\AppData\Local\Energia15\packages\energia\tools\dslite\8.2.0.1400 -prefs=runtime.tools.dslite-8.2.0.1400.path=C:\Users\bayca\AppData\Local\Energia15\packages\energia\tools\dslite\8.2.0.1400 -prefs=runtime.tools.msp430-gcc.path=C:\Users\bayca\energia-1.8.7E21-windows\energia-1.8.7E21\hardware\tools\msp430 -prefs=runtime.tools.msp430-gcc-4.6.6.path=C:\Users\bayca\energia-1.8.7E21-windows\energia-1.8.7E21\hardware\tools\msp430 -prefs=runtime.tools.mspdebug.path=C:\Users\bayca\energia-1.8.7E21-windows\energia-1.8.7E21\hardware\tools\mspdebug -prefs=runtime.tools.mspdebug-0.24.path=C:\Users\bayca\energia-1.8.7E21-windows\energia-1.8.7E21\hardware\tools\mspdebug -verbose E:\PVI demonstrators\Demonstrator 3\BOOSTXL-SHARP128\Sharp_LCD_ks5\Sharp_LCD_ks5.ino
C:\Users\bayca\energia-1.8.7E21-windows\energia-1.8.7E21\arduino-builder -compile -logger=machine -hardware C:\Users\bayca\energia-1.8.7E21-windows\energia-1.8.7E21\hardware -hardware C:\Users\bayca\AppData\Local\Energia15\packages -tools C:\Users\bayca\energia-1.8.7E21-windows\energia-1.8.7E21\tools-builder -tools C:\Users\bayca\energia-1.8.7E21-windows\energia-1.8.7E21\hardware\tools\msp430 -tools C:\Users\bayca\AppData\Local\Energia15\packages -built-in-libraries C:\Users\bayca\energia-1.8.7E21-windows\energia-1.8.7E21\libraries -libraries C:\Users\bayca\Documents\Energia\libraries -fqbn=energia:msp430:MSP-EXP430FR5969LP -ide-version=10807 -build-path C:\Users\bayca\AppData\Local\Temp\arduino_build_813865 -warnings=none -build-cache C:\Users\bayca\AppData\Local\Temp\arduino_cache_596478 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.dslite.path=C:\Users\bayca\AppData\Local\Energia15\packages\energia\tools\dslite\8.2.0.1400 -prefs=runtime.tools.dslite-8.2.0.1400.path=C:\Users\bayca\AppData\Local\Energia15\packages\energia\tools\dslite\8.2.0.1400 -prefs=runtime.tools.msp430-gcc.path=C:\Users\bayca\energia-1.8.7E21-windows\energia-1.8.7E21\hardware\tools\msp430 -prefs=runtime.tools.msp430-gcc-4.6.6.path=C:\Users\bayca\energia-1.8.7E21-windows\energia-1.8.7E21\hardware\tools\msp430 -prefs=runtime.tools.mspdebug.path=C:\Users\bayca\energia-1.8.7E21-windows\energia-1.8.7E21\hardware\tools\mspdebug -prefs=runtime.tools.mspdebug-0.24.path=C:\Users\bayca\energia-1.8.7E21-windows\energia-1.8.7E21\hardware\tools\mspdebug -verbose E:\PVI demonstrators\Demonstrator 3\BOOSTXL-SHARP128\Sharp_LCD_ks5\Sharp_LCD_ks5.ino
Using board 'MSP-EXP430FR5969LP' from platform in folder: C:\Users\bayca\energia-1.8.7E21-windows\energia-1.8.7E21\hardware\energia\msp430
Using core 'msp430' from platform in folder: C:\Users\bayca\energia-1.8.7E21-windows\energia-1.8.7E21\hardware\energia\msp430
Detecting libraries used...
"C:\\Users\\bayca\\energia-1.8.7E21-windows\\energia-1.8.7E21\\hardware\\tools\\msp430/bin/msp430-g++" -c -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=msp430fr5969 -DF_CPU=8000000L -DARDUINO=10807 -DENERGIA=10807 -DENERGIA_MSP_EXP430FR5969LP -DENERGIA_ARCH_MSP430 "-IC:\\Users\\bayca\\energia-1.8.7E21-windows\\energia-1.8.7E21\\hardware\\tools\\msp430/include" "-IC:\\Users\\bayca\\energia-1.8.7E21-windows\\energia-1.8.7E21\\hardware\\energia\\msp430\\cores\\msp430" "-IC:\\Users\\bayca\\energia-1.8.7E21-windows\\energia-1.8.7E21\\hardware\\energia\\msp430\\variants\\MSP-EXP430FR5969LP" "C:\\Users\\bayca\\AppData\\Local\\Temp\\arduino_build_813865\\sketch\\Sharp_LCD_ks5.ino.cpp" -o nul
"C:\\Users\\bayca\\energia-1.8.7E21-windows\\energia-1.8.7E21\\hardware\\tools\\msp430/bin/msp430-g++" -c -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=msp430fr5969 -DF_CPU=8000000L -DARDUINO=10807 -DENERGIA=10807 -DENERGIA_MSP_EXP430FR5969LP -DENERGIA_ARCH_MSP430 "-IC:\\Users\\bayca\\energia-1.8.7E21-windows\\energia-1.8.7E21\\hardware\\tools\\msp430/include" "-IC:\\Users\\bayca\\energia-1.8.7E21-windows\\energia-1.8.7E21\\hardware\\energia\\msp430\\cores\\msp430" "-IC:\\Users\\bayca\\energia-1.8.7E21-windows\\energia-1.8.7E21\\hardware\\energia\\msp430\\variants\\MSP-EXP430FR5969LP" "-IC:\\Users\\bayca\\energia-1.8.7E21-windows\\energia-1.8.7E21\\hardware\\energia\\msp430\\libraries\\SPI" "C:\\Users\\bayca\\AppData\\Local\\Temp\\arduino_build_813865\\sketch\\Sharp_LCD_ks5.ino.cpp" -o nul
"C:\\Users\\bayca\\energia-1.8.7E21-windows\\energia-1.8.7E21\\hardware\\tools\\msp430/bin/msp430-g++" -c -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=msp430fr5969 -DF_CPU=8000000L -DARDUINO=10807 -DENERGIA=10807 -DENERGIA_MSP_EXP430FR5969LP -DENERGIA_ARCH_MSP430 "-IC:\\Users\\bayca\\energia-1.8.7E21-windows\\energia-1.8.7E21\\hardware\\tools\\msp430/include" "-IC:\\Users\\bayca\\energia-1.8.7E21-windows\\energia-1.8.7E21\\hardware\\energia\\msp430\\cores\\msp430" "-IC:\\Users\\bayca\\energia-1.8.7E21-windows\\energia-1.8.7E21\\hardware\\energia\\msp430\\variants\\MSP-EXP430FR5969LP" "-IC:\\Users\\bayca\\energia-1.8.7E21-windows\\energia-1.8.7E21\\hardware\\energia\\msp430\\libraries\\SPI" "-IC:\\Users\\bayca\\energia-1.8.7E21-windows\\energia-1.8.7E21\\libraries\\OneMsTaskTimer" "C:\\Users\\bayca\\AppData\\Local\\Temp\\arduino_build_813865\\sketch\\Sharp_LCD_ks5.ino.cpp" -o nul
"C:\\Users\\bayca\\energia-1.8.7E21-windows\\energia-1.8.7E21\\hardware\\tools\\msp430/bin/msp430-g++" -c -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=msp430fr5969 -DF_CPU=8000000L -DARDUINO=10807 -DENERGIA=10807 -DENERGIA_MSP_EXP430FR5969LP -DENERGIA_ARCH_MSP430 "-IC:\\Users\\bayca\\energia-1.8.7E21-windows\\energia-1.8.7E21\\hardware\\tools\\msp430/include" "-IC:\\Users\\bayca\\energia-1.8.7E21-windows\\energia-1.8.7E21\\hardware\\energia\\msp430\\cores\\msp430" "-IC:\\Users\\bayca\\energia-1.8.7E21-windows\\energia-1.8.7E21\\hardware\\energia\\msp430\\variants\\MSP-EXP430FR5969LP" "-IC:\\Users\\bayca\\energia-1.8.7E21-windows\\energia-1.8.7E21\\hardware\\energia\\msp430\\libraries\\SPI" "-IC:\\Users\\bayca\\energia-1.8.7E21-windows\\energia-1.8.7E21\\libraries\\OneMsTaskTimer" "-IC:\\Users\\bayca\\energia-1.8.7E21-windows\\energia-1.8.7E21\\libraries\\LCD_SharpBoosterPack_SPI" "C:\\Users\\bayca\\AppData\\Local\\Temp\\arduino_build_813865\\sketch\\Sharp_LCD_ks5.ino.cpp" -o nul
Using cached library dependencies for file: C:\Users\bayca\energia-1.8.7E21-windows\energia-1.8.7E21\hardware\energia\msp430\libraries\SPI\SPI.cpp
Using cached library dependencies for file: C:\Users\bayca\energia-1.8.7E21-windows\energia-1.8.7E21\hardware\energia\msp430\libraries\SPI\utility\eusci_spi.cpp
Using cached library dependencies for file: C:\Users\bayca\energia-1.8.7E21-windows\energia-1.8.7E21\hardware\energia\msp430\libraries\SPI\utility\usci_spi.cpp
Using cached library dependencies for file: C:\Users\bayca\energia-1.8.7E21-windows\energia-1.8.7E21\hardware\energia\msp430\libraries\SPI\utility\usi_spi.cpp
Using cached library dependencies for file: C:\Users\bayca\energia-1.8.7E21-windows\energia-1.8.7E21\libraries\OneMsTaskTimer\OneMsTaskTimer.cpp
Using cached library dependencies for file: C:\Users\bayca\energia-1.8.7E21-windows\energia-1.8.7E21\libraries\LCD_SharpBoosterPack_SPI\LCD_SharpBoosterPack_SPI.cpp
Generating function prototypes...
"C:\\Users\\bayca\\energia-1.8.7E21-windows\\energia-1.8.7E21\\hardware\\tools\\msp430/bin/msp430-g++" -c -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=msp430fr5969 -DF_CPU=8000000L -DARDUINO=10807 -DENERGIA=10807 -DENERGIA_MSP_EXP430FR5969LP -DENERGIA_ARCH_MSP430 "-IC:\\Users\\bayca\\energia-1.8.7E21-windows\\energia-1.8.7E21\\hardware\\tools\\msp430/include" "-IC:\\Users\\bayca\\energia-1.8.7E21-windows\\energia-1.8.7E21\\hardware\\energia\\msp430\\cores\\msp430" "-IC:\\Users\\bayca\\energia-1.8.7E21-windows\\energia-1.8.7E21\\hardware\\energia\\msp430\\variants\\MSP-EXP430FR5969LP" "-IC:\\Users\\bayca\\energia-1.8.7E21-windows\\energia-1.8.7E21\\hardware\\energia\\msp430\\libraries\\SPI" "-IC:\\Users\\bayca\\energia-1.8.7E21-windows\\energia-1.8.7E21\\libraries\\OneMsTaskTimer" "-IC:\\Users\\bayca\\energia-1.8.7E21-windows\\energia-1.8.7E21\\libraries\\LCD_SharpBoosterPack_SPI" "C:\\Users\\bayca\\AppData\\Local\\Temp\\arduino_build_813865\\sketch\\Sharp_LCD_ks5.ino.cpp" -o "C:\\Users\\bayca\\AppData\\Local\\Temp\\arduino_build_813865\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Users\\bayca\\energia-1.8.7E21-windows\\energia-1.8.7E21\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\bayca\\AppData\\Local\\Temp\\arduino_build_813865\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\\Users\\bayca\\energia-1.8.7E21-windows\\energia-1.8.7E21\\hardware\\tools\\msp430/bin/msp430-g++" -c -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=msp430fr5969 -DF_CPU=8000000L -DARDUINO=10807 -DENERGIA=10807 -DENERGIA_MSP_EXP430FR5969LP -DENERGIA_ARCH_MSP430 "-IC:\\Users\\bayca\\energia-1.8.7E21-windows\\energia-1.8.7E21\\hardware\\tools\\msp430/include" "-IC:\\Users\\bayca\\energia-1.8.7E21-windows\\energia-1.8.7E21\\hardware\\energia\\msp430\\cores\\msp430" "-IC:\\Users\\bayca\\energia-1.8.7E21-windows\\energia-1.8.7E21\\hardware\\energia\\msp430\\variants\\MSP-EXP430FR5969LP" "-IC:\\Users\\bayca\\energia-1.8.7E21-windows\\energia-1.8.7E21\\hardware\\energia\\msp430\\libraries\\SPI" "-IC:\\Users\\bayca\\energia-1.8.7E21-windows\\energia-1.8.7E21\\libraries\\OneMsTaskTimer" "-IC:\\Users\\bayca\\energia-1.8.7E21-windows\\energia-1.8.7E21\\libraries\\LCD_SharpBoosterPack_SPI" "C:\\Users\\bayca\\AppData\\Local\\Temp\\arduino_build_813865\\sketch\\Sharp_LCD_ks5.ino.cpp" -o "C:\\Users\\bayca\\AppData\\Local\\Temp\\arduino_build_813865\\sketch\\Sharp_LCD_ks5.ino.cpp.o"
In file included from E:\PVI demonstrators\Demonstrator 3\BOOSTXL-SHARP128\Sharp_LCD_ks5\Sharp_LCD_ks5.ino:26:0:
C:\Users\bayca\energia-1.8.7E21-windows\energia-1.8.7E21\libraries\LCD_SharpBoosterPack_SPI/Terminal12.h:24:48: error: redefinition of 'const unsigned char Terminal11x16 [96][22]'
C:\Users\bayca\energia-1.8.7E21-windows\energia-1.8.7E21\libraries\LCD_SharpBoosterPack_SPI/Terminal12.h:24:28: error: 'const unsigned char Terminal11x16 [96][22]' previously defined here
In file included from E:\PVI demonstrators\Demonstrator 3\BOOSTXL-SHARP128\Sharp_LCD_ks5\Sharp_LCD_ks5.ino:27:0:
C:\Users\bayca\energia-1.8.7E21-windows\energia-1.8.7E21\libraries\LCD_SharpBoosterPack_SPI/Terminal6.h:29:45: error: redefinition of 'const unsigned char Terminal6x8 [96][5]'
C:\Users\bayca\energia-1.8.7E21-windows\energia-1.8.7E21\libraries\LCD_SharpBoosterPack_SPI/Terminal6.h:29:28: error: 'const unsigned char Terminal6x8 [96][5]' previously defined here
Using library SPI at version 1.0.0 in folder: C:\Users\bayca\energia-1.8.7E21-windows\energia-1.8.7E21\hardware\energia\msp430\libraries\SPI
Using library OneMsTaskTimer at version 1.0.0 in folder: C:\Users\bayca\energia-1.8.7E21-windows\energia-1.8.7E21\libraries\OneMsTaskTimer
Using library LCD_SharpBoosterPack_SPI at version 1.0.0 in folder: C:\Users\bayca\energia-1.8.7E21-windows\energia-1.8.7E21\libraries\LCD_SharpBoosterPack_SPI
exit status 1
Error compiling for board MSP-EXP430FR5969LP.
//
// Sharp128 BoosterPackLCD SPI
// Example for library for Sharp BoosterPack LCD with hardware SPI
//
//
// Author : Stefan Schauer
// Date : Oct. 17, 2017
// Version: 1.00
// File : LCD_Sharp128BoosterPack_SPI_main.ino
//
// Version: 1.00 : setup for Sharp128 Booster pack based on Sharp96 example
//
// Based on the LCD5110 Library
// Created by Rei VILO on 28/05/12
// Copyright (c) 2012 embeddedcomputing.weebly.com
// Licence CC = BY SA NC
//
// Edited 2015-07-11 by ReiVilo
// Added setOrientation(), setReverse() and flushReverse()
//
// Include application, user and local libraries
#include "SPI.h"
#include "OneMsTaskTimer.h"
#include <LCD_SharpBoosterPack_SPI.h>
#include <Terminal12.h>
#include <Terminal6.h>
// Variables
LCD_SharpBoosterPack_SPI myScreen(SHARP_128);
uint8_t myOrientation = 0;
uint16_t myCount = 0;
#define LCD_VERTICAL_MAX myScreen.getSize()
#define LCD_HORIZONTAL_MAX myScreen.getSize()
//#define LCD_VERTICAL_MAX 128
//#define LCD_HORIZONTAL_MAX 128
// Add setup code
void setup()
{
Serial.begin(9600);
myScreen.begin();
myScreen.clearBuffer();
myScreen.setFont(1);
myScreen.text(10, 10, "Hello!");
myScreen.flush();
for (uint8_t i = 0; i < 20; i++)
{
delay(100);
}
myScreen.reverseFlush();
for (uint8_t i = 0; i < 20; i++)
{
delay(100);
}
myScreen.clear();
for (uint8_t i = 0; i < 4; i++)
{
myScreen.setOrientation(i);
myScreen.text(10, 10, String(i));
myScreen.flush();
}
for (uint8_t i = 0; i < 20; i++)
{
delay(100);
}
Serial.print("myCount = ");
}
// Add loop code
void loop()
{
Serial.println("LOOP");
myCount++;
Serial.print(-myCount, DEC);
if (myCount > 16)
{
myOrientation++;
// if (myOrientation > 4) myOrientation = 0;
myOrientation %= 4;
myScreen.setOrientation(myOrientation);
myCount = 0;
Serial.println();
Serial.print("** myOrientation = ");
Serial.println(myOrientation, DEC);
Serial.print("myCount = ");
}
myScreen.clearBuffer();
myScreen.setFont(0);
myScreen.text(myCount, 10, "ABCDE", LCDWrapNone);
for (uint8_t i = 10; i < LCD_HORIZONTAL_MAX - 10; i++)
{
myScreen.setXY(i, 20, 1);
}
myScreen.text(10, 30, String(myCount, 10));
for (uint8_t i = 0; i <= 20; i++)
{
myScreen.setXY(50 + i, 30, 1);
// }
// for (uint8_t i=0; i<=20; i++) {
myScreen.setXY(50, 30 + i, 1);
// }
// for (uint8_t i=0; i<=20; i++) {
myScreen.setXY(50 + i, 50, 1);
// }
// for (uint8_t i=0; i<=20; i++) {
myScreen.setXY(70, 30 + i, 1);
}
myScreen.setFont(1);
myScreen.setCharXY(10, 40);
myScreen.print("ABC");
myScreen.setFont(0);
myScreen.setCharXY(60, 60);
myScreen.print(0x7F, HEX);
myScreen.print(0x81, HEX);
myScreen.setCharXY(10, 60);
myScreen.println("Break!");
myScreen.print("ABC\nabc");
myScreen.flush();
for (uint8_t i = 0; i < 2; i++)
{
delay(100);
}
}
Hi Kris,
right the problem is that the FR5969 does not have enough RAM to hold the Buffer for the LCD.
But we can also use the FRAM for data handling.
So just pushed an update to github which does implement this.
After pulling this new version please go into the LCD_SharpBoosterPack_SPI.cpp file
and replace
uint8_t _frameBuffer[128][128/8] PLACE_IN_FRAM;
with
uint8_t _frameBuffer[128][128/8] __attribute__((section(".text;")));
As this is an pending issue which will also get fixed in the next release.
~ Stefan
**Attention** This is a public forum