Open rei-vilo opened 4 years ago
The two same examples LCD_Sharp128BoosterPack_SPI_main
and LCD_SharpBoosterPack_SPI_main
run smoothly on a CC1352 LaunchPad with the corresponding screens.
Using a logic analyser shows the internal VCOM doesn't work as expected on the CC1310.
SPI /CS goes high to select the screen, a first SCK signal goes on but nothing more. No second SCK signal and no /CS going low to deselect the screen.
Replacing
by
shiftOut(15, 7, MSBFIRST, (char)command);
shiftOut(15, 7, MSBFIRST, (char)SHARP_LCD_TRAILER_BYTE);
seems to solve the issue.
But adding an extra SPI.begin();
before line 531 doesn't solve the issue.
I don’t know the minutiae of the implementation of TI-RTOS in Energia MT.
Here are the traces after adding the patch
shiftOut(15, 7, MSBFIRST, (char)command);
shiftOut(15, 7, MSBFIRST, (char)SHARP_LCD_TRAILER_BYTE);
The program displays a first screen, waits for 1 second and then displays a second screen.
As the CC1352 replaces the CC1350, the workaround at #1061 is good-enough to patch the issue.
The
LCD_Sharp128BoosterPack_SPI_main
example no longer works on the Sharp 128 against the CC1350 LaunchPad.Only the first
Hello
from line 45 is displayed.https://github.com/energia/Energia/blob/3116b847940a26176382dd6827755854a0bb0c69/libraries/LCD_SharpBoosterPack_SPI/examples/LCD_Sharp128BoosterPack_SPI_main/LCD_Sharp128BoosterPack_SPI_main.ino#L45-L46
The program seems to freeze before line 52.
https://github.com/energia/Energia/blob/3116b847940a26176382dd6827755854a0bb0c69/libraries/LCD_SharpBoosterPack_SPI/examples/LCD_Sharp128BoosterPack_SPI_main/LCD_Sharp128BoosterPack_SPI_main.ino#L52
Same for the
LCD_SharpBoosterPack_SPI_main
example on the Sharp 96 against the CC1350 LaunchPad.