visualGlcd SmartGlcd_ver1.51 Not Working
-
- Posts: 1
- Joined: 18 Feb 2014 17:38
visualGlcd SmartGlcd_ver1.51 Not Working
Hi,
I have recived the SmartGlcd ver1.51 and i can't find this device in the hardware patterns of visualGlcd. I have tried using smartGlcd240x128 and SmartGlcd240x128_hw_rev_1.50 and it doesn't work. I tried to follow the http://www.mikroe.com/downloads/get/140 ... l_glcd.pdf.
I'm using visualGLCD 2.7.0, MikroC6.0 and SmartGlcdBootloader2.0 on win7x64.
Anybody knows which hardware options are correct?
Thanks
I have recived the SmartGlcd ver1.51 and i can't find this device in the hardware patterns of visualGlcd. I have tried using smartGlcd240x128 and SmartGlcd240x128_hw_rev_1.50 and it doesn't work. I tried to follow the http://www.mikroe.com/downloads/get/140 ... l_glcd.pdf.
I'm using visualGLCD 2.7.0, MikroC6.0 and SmartGlcdBootloader2.0 on win7x64.
Anybody knows which hardware options are correct?
Thanks
Re: visualGlcd SmartGlcd_ver1.51 Not Working
Hi,
Yes, there is a solution.
I'm sending you two files, the __Lib_T6963C.mcl should be places in the ..\Uses\P18 folder of the mikroBasic PRO for PIC installation folder,
and the SmartGLCD240x128_hw_rev_1.51.xml should be places in the ..\Board Defs folder in the Visual GLCD installation folder.
When you start the Visual GLCD you will be able to choose SmartGLCD240x128_hw_rev_1.51 board setup.
Regards,
Filip.
Yes, there is a solution.
I'm sending you two files, the __Lib_T6963C.mcl should be places in the ..\Uses\P18 folder of the mikroBasic PRO for PIC installation folder,
and the SmartGLCD240x128_hw_rev_1.51.xml should be places in the ..\Board Defs folder in the Visual GLCD installation folder.
When you start the Visual GLCD you will be able to choose SmartGLCD240x128_hw_rev_1.51 board setup.
Regards,
Filip.
- Attachments
-
- SmartGLCD.rar
- (30.84 KiB) Downloaded 321 times
Re: visualGlcd SmartGlcd_ver1.51 Not Working
Hi ME team
I've followed the above procedure
visual GLCD is 2.7.0
I rebuild everything in vglcd with V1.51 HW description file provided above
I try to compile an appli designed for 1.50 rev board, working with board 1.50, not working with 1.51
At compilation I get an error regarding
T6963C_graphics(1)
T6963C_text(1)
T6963C_cursor(0)
after check it seems that these commands diseapper in the lib provided above
in that part of code
I've followed the above procedure
visual GLCD is 2.7.0
I rebuild everything in vglcd with V1.51 HW description file provided above
I try to compile an appli designed for 1.50 rev board, working with board 1.50, not working with 1.51
At compilation I get an error regarding
T6963C_graphics(1)
T6963C_text(1)
T6963C_cursor(0)
after check it seems that these commands diseapper in the lib provided above
in that part of code
Code: Select all
sub procedure Init_ADC()
ADCON1 = 0x0D
ADC_Init()
end sub
sub procedure InitializeTouchPanel() ' static
Init_ADC()
T6963C_ctrlce_Direction = 0
T6963C_ctrlce = 0 ' Enable T6963C
T6963C_ctrlmd_Direction = 0
T6963C_ctrlmd = 0 ' Column number select
T6963C_ctrlfs_Direction = 0
T6963C_ctrlfs = 0 ' Wide Font
BacklightRed_Direction = 0 ' Set backlight signals as outputs
BacklightGreen_Direction = 0
BacklightBlue_Direction = 0
BacklightRed = 0 ' Turn on Red component of back light
BacklightGreen = 0 'Turn on Green component of back light
BacklightBlue = 0 ' Turn on Blue component of back light
' Initialize T6963C
T6963C_init(240, 128, 8)
T6963C_graphics(1)
T6963C_text(1)
T6963C_cursor(0)
TP_Init(240, 128, 0, 1) ' Initialize touch panel
TP_Set_ADC_Threshold(ADC_THRESHOLD) ' Set touch panel ADC threshold
PenDown = 0
PressedObject = 0
end sub
Re: visualGlcd SmartGlcd_ver1.51 Not Working
Hi,
Which errors do you get exactly ?
Regards,
Filip.
Which errors do you get exactly ?
Regards,
Filip.
Re: visualGlcd SmartGlcd_ver1.51 Not Working
Hi Filip
Here is the story
If I use hex files provided in the ME sample folder everything works fine (C & basic hex files)
Using the old T6963 lib :
If I compile the project (C or basic) without change and load the hex with microprog everything works but lines appear at at the bottom of the screen
The lines contain erratic characters at power on and erratic characters and part of a button of a previous screen when switching between screens
The behaviour is the same for both languages, C & basic
See (MCPRO foPIC) attached file including original hex file and home compiled hex file
The behaviour is the same with my program written in basic (fully working on SMGLCD1.50)
I've adapted it to SMGLCD1.51 using the file (VGLCD board description for SMGLCD1.51) provided by ME team above and also adapted the project configuration due to the new MC 18F87K22 instead of 18F8722
Everything works fine but the erratic lines at the bottom of the screen
I don't want my code becomes public, of course I can send it in private to ME team if needed for investigation
The most probable cause is that the old lib is not fully compatible with the new HW rev 1.51 (reason why ME team provides a new one above)
If i use the new lib (provided above) in basic i get that error when compiling the SMGLCD sample project:
If I compare old lib and new lib
T6963C_graphics is missing as many other identifiers in the new lib provided above
new lib :
previous lib
Please ME team provide the correct new lib in order to compile successfully in basic and C and also for all other ME compilers for all users
Please ensure that the next working new lib is compliant with previous HW revision of smartGLCD to avoid switching between libs depending of HW configuration
A quick fix of that issue will be welcome and appreciate
microC is 6.0.1
microbasic is 6.0.0
microprog is 2.30
Here is the story
If I use hex files provided in the ME sample folder everything works fine (C & basic hex files)
Using the old T6963 lib :
If I compile the project (C or basic) without change and load the hex with microprog everything works but lines appear at at the bottom of the screen
The lines contain erratic characters at power on and erratic characters and part of a button of a previous screen when switching between screens
The behaviour is the same for both languages, C & basic
See (MCPRO foPIC) attached file including original hex file and home compiled hex file
The behaviour is the same with my program written in basic (fully working on SMGLCD1.50)
I've adapted it to SMGLCD1.51 using the file (VGLCD board description for SMGLCD1.51) provided by ME team above and also adapted the project configuration due to the new MC 18F87K22 instead of 18F8722
Everything works fine but the erratic lines at the bottom of the screen
I don't want my code becomes public, of course I can send it in private to ME team if needed for investigation
The most probable cause is that the old lib is not fully compatible with the new HW rev 1.51 (reason why ME team provides a new one above)
If i use the new lib (provided above) in basic i get that error when compiling the SMGLCD sample project:
Code: Select all
0 1 mBPic.exe -MSF -DBG -pP18F87K22 -Y -DL -RA -O11111114 -fo48 -N"C:\Users\MAISON\Downloads\smartglcd_examples\SmartGLCD 240x128 Examples\Examples HW rev 1.51\SmartGLCD 240x128 - mikroBasic PRO for PIC Examples\SmartGLCD Demo\SmartGLCD examples for mikroBasic PRO for PIC\SmartGLCD_240x128_Demo.mbppi" -SP"C:\Program Files\Mikroelectronika\mikroBasic PRO for PIC\defs\" -SP"C:\Program Files\Mikroelectronika\mikroBasic PRO for PIC\uses\P18\" -SP"C:\Users\MAISON\Downloads\smartglcd_examples\SmartGLCD 240x128 Examples\Examples HW rev 1.51\SmartGLCD 240x128 - mikroBasic PRO for PIC Examples\SmartGLCD Demo\SmartGLCD examples for mikroBasic PRO for PIC\" "__Lib_Math.mcl" "__Lib_MathDouble.mcl" "__Lib_System.mcl" "__Lib_Delays.mcl" "__Lib_CType.mcl" "__Lib_String.mcl" "__Lib_Trigonometry.mcl" "__Lib_ADC_K22.mcl" "__Lib_T6963C.mcl" "__Lib_T6963C_Consts.mcl" "__Lib_TouchPanel.mcl" "SmartGLCD_240x128_Demo_main.mbas" "SmartGLCD_240x128_Demo_objects.mbas" "SmartGLCD_240x128_Demo_driver.mbas" "SmartGLCD_240x128_Demo_events_code.mbas"
0 155 Available RAM: 3841 [bytes], Available ROM: 131072 [bytes]
0 133 Compilation Started C:\Program Files\Mikroelectronika\mikroBasic PRO for PIC\defs\P18F87K22.mbas
1 1015 Hint: Compiling unit "C:\Program Files\Mikroelectronika\mikroBasic PRO for PIC\defs\P18F87K22.mbas" P18F87K22.mbas
3499 1010 Hint: Unit "P18F87K22.mbas" has been recompiled P18F87K22.mbas
0 134 Compiled Successfully C:\Program Files\Mikroelectronika\mikroBasic PRO for PIC\defs\P18F87K22.mbas
0 133 Compilation Started C:\Program Files\Mikroelectronika\mikroBasic PRO for PIC\uses\P18\__Lib_Delays.mbas
1 1015 Hint: Compiling unit "C:\Program Files\Mikroelectronika\mikroBasic PRO for PIC\uses\P18\__Lib_Delays.mbas" __Lib_Delays.mbas
171 1010 Hint: Unit "__Lib_Delays.mbas" has been recompiled __Lib_Delays.mbas
0 134 Compiled Successfully C:\Program Files\Mikroelectronika\mikroBasic PRO for PIC\uses\P18\__Lib_Delays.mbas
0 133 Compilation Started C:\Users\MAISON\Downloads\smartglcd_examples\SmartGLCD 240x128 Examples\Examples HW rev 1.51\SmartGLCD 240x128 - mikroBasic PRO for PIC Examples\SmartGLCD Demo\SmartGLCD examples for mikroBasic PRO for PIC\SmartGLCD_240x128_Demo_main.mbas
1 1015 Hint: Compiling unit "C:\Users\MAISON\Downloads\smartglcd_examples\SmartGLCD 240x128 Examples\Examples HW rev 1.51\SmartGLCD 240x128 - mikroBasic PRO for PIC Examples\SmartGLCD Demo\SmartGLCD examples for mikroBasic PRO for PIC\SmartGLCD_240x128_Demo_main.mbas" SmartGLCD_240x128_Demo_main.mbas
1 1015 Hint: Compiling unit "C:\Users\MAISON\Downloads\smartglcd_examples\SmartGLCD 240x128 Examples\Examples HW rev 1.51\SmartGLCD 240x128 - mikroBasic PRO for PIC Examples\SmartGLCD Demo\SmartGLCD examples for mikroBasic PRO for PIC\SmartGLCD_240x128_Demo_objects.mbas" SmartGLCD_240x128_Demo_objects.mbas
112 1010 Hint: Unit "SmartGLCD_240x128_Demo_objects.mbas" has been recompiled SmartGLCD_240x128_Demo_objects.mbas
1 1015 Hint: Compiling unit "C:\Users\MAISON\Downloads\smartglcd_examples\SmartGLCD 240x128 Examples\Examples HW rev 1.51\SmartGLCD 240x128 - mikroBasic PRO for PIC Examples\SmartGLCD Demo\SmartGLCD examples for mikroBasic PRO for PIC\SmartGLCD_240x128_Demo_driver.mbas" SmartGLCD_240x128_Demo_driver.mbas
436 303 Identifier "T6963C_graphics" was not declared SmartGLCD_240x128_Demo_driver.mbas
436 304 Syntax error: Expected "end" but "T6963C_graphics" found SmartGLCD_240x128_Demo_driver.mbas
436 304 Syntax error: Expected "sub" but "(" found SmartGLCD_240x128_Demo_driver.mbas
436 304 Syntax error: Expected "end" but "1" found SmartGLCD_240x128_Demo_driver.mbas
436 304 Syntax error: Expected "." but ")" found SmartGLCD_240x128_Demo_driver.mbas
0 102 Finished (with errors): 08 mars 2014, 09:53:12 SmartGLCD_240x128_Demo.mbppi
T6963C_graphics is missing as many other identifiers in the new lib provided above
new lib :
previous lib
Please ME team provide the correct new lib in order to compile successfully in basic and C and also for all other ME compilers for all users
Please ensure that the next working new lib is compliant with previous HW revision of smartGLCD to avoid switching between libs depending of HW configuration
A quick fix of that issue will be welcome and appreciate
microC is 6.0.1
microbasic is 6.0.0
microprog is 2.30
- Attachments
-
- SmartGLCD examples for mikroC PRO for PIC.zip
- (44.78 KiB) Downloaded 269 times
Re: visualGlcd SmartGlcd_ver1.51 Not Working
Hi,
Please find the updated library for Basic andC in the attachment, put it in the Uses\P18\ folder of the compiler installation folder, recompile the example and it should work OK.
Regards,
Filip.
Please find the updated library for Basic andC in the attachment, put it in the Uses\P18\ folder of the compiler installation folder, recompile the example and it should work OK.
Regards,
Filip.
- Attachments
-
- __Lib_T6963C_C.rar
- (28.93 KiB) Downloaded 482 times
Re: visualGlcd SmartGlcd_ver1.51 Not Working
Thank you
But the lib provided above isn't the working one, it's the same provided a few days ago
The working one is the one provided via my ticket
I've checked it with ME example for SMGLCD V 1.51 and with my project in ME Basic
Everything works fine
see attached zip
But the lib provided above isn't the working one, it's the same provided a few days ago
The working one is the one provided via my ticket
I've checked it with ME example for SMGLCD V 1.51 and with my project in ME Basic
Everything works fine
see attached zip
- Attachments
-
- __Lib_T6963C.zip
- (37.3 KiB) Downloaded 290 times
Re: visualGlcd SmartGlcd_ver1.51 Not Working
Hi,
OK, I'm glad that you have solved your issue.
Regards,
Filip.
OK, I'm glad that you have solved your issue.
Regards,
Filip.
-
- Posts: 20
- Joined: 28 Apr 2014 09:22
Re: visualGlcd SmartGlcd_ver1.51 Not Working
I have the same problem.
I using the SmartGLCD240x128_hw_rev_1.51 and the Lib_T6963C.mcl
When I will save the Hex-file with mikroProg Suite than I have a error.
And I will send this bug report but it doesn't work...
Can You help me?
Thanks!
I using the SmartGLCD240x128_hw_rev_1.51 and the Lib_T6963C.mcl
When I will save the Hex-file with mikroProg Suite than I have a error.
And I will send this bug report but it doesn't work...
Can You help me?
Thanks!
Re: visualGlcd SmartGlcd_ver1.51 Not Working
Hi,
If I'm correct, you have solved this by updating the mikroProg Suite, I saw that on the other post ?
Regards,
Filip.
If I'm correct, you have solved this by updating the mikroProg Suite, I saw that on the other post ?
Regards,
Filip.
-
- Posts: 20
- Joined: 28 Apr 2014 09:22
Re: visualGlcd SmartGlcd_ver1.51 Not Working
yes correct!
Re: visualGlcd SmartGlcd_ver1.51 Not Working
I have tried following the suggested fixes here but Iam getting some errors with SmartGLCD1.51, Visual GLCD and Mikro C Pro
First set of errors :
0 122 Compilation Started __t6963c.h
38 393 'T6963C_caption_length' Identifier redefined Rocket_Pendant_driver.c
38 393 'T6963C_caption_height' Identifier redefined Rocket_Pendant_driver.c
So I commented out the definition of these variables (odd)
Then I get this error :
1 340 File '__Lib_T6963C_Consts.mcl' not found File '__Lib_T6963C_Consts.mcl' not found
So the question is am I missing another or more files for the 1.51 compatible library ?
CS
First set of errors :
0 122 Compilation Started __t6963c.h
38 393 'T6963C_caption_length' Identifier redefined Rocket_Pendant_driver.c
38 393 'T6963C_caption_height' Identifier redefined Rocket_Pendant_driver.c
So I commented out the definition of these variables (odd)
Then I get this error :
1 340 File '__Lib_T6963C_Consts.mcl' not found File '__Lib_T6963C_Consts.mcl' not found
So the question is am I missing another or more files for the 1.51 compatible library ?
CS
Re: visualGlcd SmartGlcd_ver1.51 Not Working
Hi,
Please, can you attach here the project that demonstrates this issue ?
Regards,
Filip.
Please, can you attach here the project that demonstrates this issue ?
Regards,
Filip.
Re: visualGlcd SmartGlcd_ver1.51 Not Working
Hi Filip,
I have attached the zipped project.
One thing I have noticed is that the file __T6963C.h is quite old ie the top of the file is :
It seems possible I still don't have the latest or most suitable library.
CS
I have attached the zipped project.
One thing I have noticed is that the file __T6963C.h is quite old ie the top of the file is :
Code: Select all
/*
* file : T6963C.h
* project : T6963C GRAPHIC LCD PIC LIBRARY
* author : Bruno Gavand
* ctime : Jun 06 2005
* mtime : Jan 27 2006
* description :
*/
It seems possible I still don't have the latest or most suitable library.
CS
- Attachments
-
- mikroC PRO for PIC.zip
- (358.94 KiB) Downloaded 244 times
Re: visualGlcd SmartGlcd_ver1.51 Not Working
Hi,
Your project compiles fine on my computer.
Could you reinstall the compiler and see if this works ?
Regards,
Filip.
Your project compiles fine on my computer.
Could you reinstall the compiler and see if this works ?
Regards,
Filip.