Error in the "gLCD_ST7565R_SPI1" Component

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
Pascal_2016
Posts: 89
Joined: Wed Aug 31, 2016 4:48 pm
Been thanked: 4 times
Contact:

Error in the "gLCD_ST7565R_SPI1" Component

Post by Pascal_2016 »

Hello,

I wanted to display text on the LCD. Unfortunately I didn't succeed, because the program will fail when the "gLCD_ST7565R_SPI1" component is initialized.

- I use an Arduino Uno Board.
- Every 500ms the Arduino LED (Digital 13) is triggered.
- Before the endless loop the "gLCD_ST7565R_SPI1" component is initialized.
- Then a line is to be written on the LCD display.

If the "gLCD_ST7565R_SPI1" component and further LCD actions are deactivated, the program runs without problems. the LED blink in the preset frequency. If I activate the "gLCD_ST7565R_SPI1" component, the program frozen with this term.

Can anyone help me?
Attachments
Grafik_ST7565_Del.fcfx
(11.06 KiB) Downloaded 161 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Error in the "gLCD_ST7565R_SPI1" Component

Post by Benj »

Hello,

On an AVR device if you use hardware SPI and leave the SS pin (B2 on your device) as an input then this can lockup the MCU. Either use B2 as your CS pin or as an output before you initialise the SPI component or use the software channel. This is a known and common problem with AVR devices and SPI.

Post Reply