Page 1 of 1

ST7565R

Posted: Fri Feb 23, 2024 11:11 pm
by saakis
Hi Matrix people!
I'm trying to compile the flowcode having the ST7565R GLCD in SPI mode but I have error return! If I compile it as parallel it is fine... Is anybody in the forum has any experience with this GLCD to help me? I want to use the GMG12864-06D GLCD but also fails connected it in parallel mode.
Regards
Saakis

Re: ST7565R

Posted: Sat Feb 24, 2024 12:09 pm
by BenR
Hello,

Can you attach the generaed .msg.txt file that's generated when you get the error and also attach the project file and we will investigate for you.

Re: ST7565R

Posted: Mon Feb 26, 2024 3:25 pm
by saakis
Hello Ben, this is the compilation in hex...

Target folder: Z:\Common\FlowCode\GLCD_TEST
Source name: Z:\Common\FlowCode\GLCD_TEST\18F2423_GLD_TEST_CONFIG.fcfx
Title:
Description:
Device: PIC.18F.18F2423
Generated by: Flowcode v10.1.0.38
Date: Monday, February 26, 2024 17:24:04
Users: 1
Registered to: saakis (63969230)
Licence key: Q1U7F9
NOT FOR COMMERCIAL USE
https://www.flowcode.co.uk
Using <PICkit2 PK2CMD External Power> inbuilt settings for compiler
Launching the compiler...
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\PIC\batch\pic_xc8_comp.bat "C:\Program Files (x86)\Flowcode\Compilers\picv2\" 18F2423 "Z:\Common\FlowCode\GLCD_TEST\" "18F2423_GLD_TEST_CONFIG"

Z:\Common\FlowCode\GLCD_TEST>REM CRC: 90CF26913586BBA787FE92D553771933222DCF72B25FEB4608E17FBD060500D8A6D7AF8357042D9E8B5C2E833010A32BE2214988CBC1BB00301ECF6745983589807C95A2F1C2769D70BE3AA931A3F48B38E582CFD8E4085DD8DA408700E5719BB0FE44B686FBBF4050CACCEB0B5A8E521002EAF3D15174CD20633AD186EC562DBEEF6112EA5AA5CF5041CCE14E8D252BC416ECB8EC7761E4FD518969900F56C6C8F36CE7BEFFD91E73F563CBE7F64B8A69F01B3F3C0F45102C3050DA273BE4EE1468065B86E00B2487B7DE8D413948019019AFB8908E26D0AE50ACE3D7DDA2D28E9421B336835453

Z:\Common\FlowCode\GLCD_TEST>REM REVISION: 3.0

Z:\Common\FlowCode\GLCD_TEST>REM GUID: 50CB4B58-ED9C-4591-8D65-A87DE810E8CC

Z:\Common\FlowCode\GLCD_TEST>REM DATE: 09\01\2024

Z:\Common\FlowCode\GLCD_TEST>REM DIR: FCD\PIC\batch\pic_xc8_comp.bat

Z:\Common\FlowCode\GLCD_TEST>"C:\Program Files (x86)\Flowcode\Compilers\picv2\bin\xc8-cc.exe" -mcpu=18F2423 "18F2423_GLD_TEST_CONFIG.c" -w=359,1273,1388 -fno-short-float -fno-short-double -std=c90 -Os
. .

18F2423_GLD_TEST_CONFIG.c:1334:: error: (1250) could not find space (128 bytes) for variable _FCV_0b3a1_gLCD_ST7565R_SPI1__DRAM2
(908) exit status = 1

Error returned from [xc8.exe]

C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\PIC\batch\pic_xc8_comp.bat reported error code 0x1

Autoclose turned off


FINISHED

Re: ST7565R

Posted: Mon Feb 26, 2024 3:29 pm
by saakis
And this is the flow code...


----------------------------------------
// Name: C Code, Type: Code:
/*
Enter C code below this comment
*/
OSCCON=0x76;
OSCTUNE=0x4F;

----------------------------------------

----------------------------------------
// Name: Component Macro, Type: Component Macro: gLCD_ST7565R_SPI1::Initialise()
FCD_0b3a1_gLCD_ST7565R_SPI1__Initialise();
----------------------------------------

----------------------------------------
// Name: Component Macro, Type: Component Macro: gLCD_ST7565R_SPI1::ClearDisplay()
FCD_0b3a1_gLCD_ST7565R_SPI1__ClearDisplay();
----------------------------------------

----------------------------------------
}

<LOOP>

----------------------------------------
// Name: Component Macro, Type: Component Macro: gLCD_ST7565R_SPI1::DrawRectangle(5, 15, 30, 30, 0, 0)
FCD_0b3a1_gLCD_ST7565R_SPI1__DrawRectangle(5, 15, 30, 30, 0, 0);
----------------------------------------

----------------------------------------
// Name: Delay, Type: Delay: 1 s
FCI_DELAYBYTE_S(1);

----------------------------------------

----------------------------------------
// Name: Component Macro, Type: Component Macro: gLCD_ST7565R_SPI1::DrawCircle(50, 20, 10, 0, 0)
FCD_0b3a1_gLCD_ST7565R_SPI1__DrawCircle(50, 20, 10, 0, 0);
----------------------------------------

----------------------------------------
// Name: Delay, Type: Delay: 1 s
FCI_DELAYBYTE_S(1);

----------------------------------------

----------------------------------------
// Name: Component Macro, Type: Component Macro: gLCD_ST7565R_SPI1::Print("test #1", 80, 20, 3, 1)
FCD_0b3a1_gLCD_ST7565R_SPI1__Print("test #1", 8, 80, 20, 3, 1);
----------------------------------------

</LOOP>
----------------------------------------

Best Regards
Sakis

Re: ST7565R

Posted: Mon Feb 26, 2024 4:00 pm
by BenR
Hi Sakis,

Looks like you're out of RAM there, your chip only has 768 bytes of RAM and the component wants 1024 Bytes to function.

Any chance you can use a more modern pin compatible chip with more available RAM.

Re: ST7565R

Posted: Mon Feb 26, 2024 5:19 pm
by saakis
Thank you Ben!
I will give a try !
Best regards
Sakis