Problem using GLCD_SH1106_SPI

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

Moderator: Benj

Post Reply
CSM2711
Posts: 47
Joined: Mon Apr 16, 2018 10:28 am
Location: Germany
Has thanked: 1 time
Been thanked: 9 times
Contact:

Problem using GLCD_SH1106_SPI

Post by CSM2711 »

Hello,

i have a problem using the GLCD component. after call the device macro "initalize" the compiler will show the following massage "analog_to_display2.c: 214: (1250) could not find space (128 bytes) for variable _FCV_0ef51_gLCD_SH1106_SPI1__DRAM0"

I have tested wit a PIC16F1827 and a PIC16F18325. Maybe there is samething wrong with the component?
Attachments
analog_to_display2.fcfx
(14.42 KiB) Downloaded 182 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: Problem using GLCD_SH1106_SPI

Post by Benj »

Hello,

The SH1106 display component requires a 1K RAM buffer to allow for pixel manipulation to work correctly. So basically you have run out of RAM on your selected microcontroller device. Can you choose another device with more RAM available?

I can maybe switch off the buffer functionality or at least provide a property to switch it on and off but without the buffer you will be severely limited in terms of what you can do with the display.

CSM2711
Posts: 47
Joined: Mon Apr 16, 2018 10:28 am
Location: Germany
Has thanked: 1 time
Been thanked: 9 times
Contact:

Re: Problem using GLCD_SH1106_SPI

Post by CSM2711 »

ok, Iwill try another Pic ....

CSM2711
Posts: 47
Joined: Mon Apr 16, 2018 10:28 am
Location: Germany
Has thanked: 1 time
Been thanked: 9 times
Contact:

Re: Problem using GLCD_SH1106_SPI

Post by CSM2711 »

yeah no it will work work...... almost.
The code will be compiled an prograammed, but the display shows not the expexted lines......
Ithink it will be a problem with the cloch frequency ....
Maybe someone has an Idea.
Attachments
display.jpg
display.jpg (72.57 KiB) Viewed 2700 times
display5.fcfx
(9.68 KiB) Downloaded 170 times

CSM2711
Posts: 47
Joined: Mon Apr 16, 2018 10:28 am
Location: Germany
Has thanked: 1 time
Been thanked: 9 times
Contact:

Re: Problem using GLCD_SH1106_SPI

Post by CSM2711 »

I have found the problem, one IO-PIN (the D/C Pin) from my PIC was defective.......

Post Reply