Dvor_nik Posted January 30, 2015 Report Share Posted January 30, 2015 Hi! I try to start with uGFX (it's looks great!) but I have a trouble with standart example on standart board :(It's calibration)1. uGFX logo looks fine :shock: 2. Calibration screen with glitches 3. Program screen with glitchesBut glitches depends on the screen orientation. If I change orientation (by clicking on button from "button" demo), everthing looks ok (but if I return source orientation glithes return): Hardware: Embest-STM32-DMSTF4BB (STM32F4Discovery, SSD2119 and touch STMPE811).Software: ChibiStudio, ChibiOS 2.6.6 and uGFX from repository.Could you tell me any suggestions, how i can fix it, please? Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted January 30, 2015 Report Share Posted January 30, 2015 Hello and welcome to the uGFX community!Wow, that's a very strange issue. We have had several issues with the Embest board due to different versions and different cable lengths. Never the less we will fix this. Can you please do the following: Try out another demo (best would be /demos/modules/gwin/widgets) and see how things go If that does not work, can you please send me your hex file(s) so I can look how it looks on my hardware If you are familiar with the STM32F4 FSMC interface and ChibiOS/RT you can try to lower your FSMC speed in the board file (between line 77 and 83 in the board file (/boards/base/Embest.../board_SSD2119.h).Can you please loop through the orientations using the touchscreen button multiple times and look if it behaves the same every time and also report which of the four orientations work and which does not.If you don't mind, can you also please leave some information about the toolchain that you're using and whether you modified anything (makefile or anything else) in the provided demo.I hope that we can sort this issue out as fast as possible so you can enjoy the full ugfx experience :twisted: ~ Tectu Link to comment Share on other sites More sharing options...
inmarket Posted January 31, 2015 Report Share Posted January 31, 2015 The FSMC speed is highly likely to be the problem given what we are seeing in the pictures. Follow Tectu's advice above and try that first as that may fix the problem with no other work. Link to comment Share on other sites More sharing options...
Dvor_nik Posted February 2, 2015 Author Report Share Posted February 2, 2015 Hi! Thank you for fast replies. I could check it today.Try out another demo (best would be /demos/modules/gwin/widgets) and see how things goLogo is ok! :shock: If that does not work, can you please send me your hex file(s) so I can look how it looks on my hardwareIt would be great if you could do this. https://www.dropbox.com/sh/as73myccme3ppma/AADlbA7A58_wPNSBKcHfzeIga?dl=0 There are two demos.If you are familiar with the STM32F4 FSMC interface and ChibiOS/RT you can try to lower your FSMC speed in the board file (between line 77 and 83 in the board file (/boards/base/Embest.../board_SSD2119.h).I tried different values, but glitches exactly the same. I added only freezes. I going to read more about it http://www.chibios.org/dokuwiki/doku.ph ... ternal_ram and will try more tomorrow. Can you please loop through the orientations using the touchscreen button multiple times and look if it behaves the same every time and also report which of the four orientations work and which does not.The same every times. Identical. Only the default orientation with bug. Look at the "comics": https://www.dropbox.com/s/rajpbtvos6dknz9/Orientations.jpg?dl=0If you don't mind, can you also please leave some information about the toolchain that you're using and whether you modified anything (makefile or anything else) in the provided demo.ChibiStudio pack. Preview8. GNU Tools ARM Embedded\4.7 2014q2\arm-none-eabi\Today I built all demos without modifications (I changed only output folder) special for tests Gdisp demo:"images":"circles":"images_animated" - look ok and cool."fonts" Link to comment Share on other sites More sharing options...
inmarket Posted February 3, 2015 Report Share Posted February 3, 2015 It looks like fonts and filled circles are problematic. Tomorrow I will send a graphic of what the circles demo should look like.This is definitely strange. Can you please post your board file?From the pictures it looks like pixel setting and bitmap operations are working fine but there may be a problem using fill or line operations. In particular, horizontal single pixel lines are being displayed vertically instead.The gdisp_SSD2119_config.h file contains the various operations your video controller supports. Perhaps you have a chip where one of the operations is broken. I will also look tomorrow for which of the settings you can try turning off that might fix the problem. Link to comment Share on other sites More sharing options...
Dvor_nik Posted February 3, 2015 Author Report Share Posted February 3, 2015 stmneko demo look ok too (except calibrations).It looks like fonts and filled circles are problematic. Yes... But https://www.dropbox.com/s/rajpbtvos6dknz9/Orientations.jpg?dl=0This is definitely strange. Can you please post your board file?It's standard board file from here: https://bitbucket.org/Tectu/ugfx/src/32ab371e4eda78636cfd356d4784f7c0bfde764a/boards/base/Embest-STM32-DMSTF4BB/?at=master I will also look tomorrow for which of the settings you can try turning off that might fix the problem.It will be good!Can anyone post hex file for this board with "widgets" or "button" demo, please? I would like to check it on my board. May be it's troubles with my toolchain (or hands :? ) Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted February 3, 2015 Report Share Posted February 3, 2015 I'm sorry for the very late response. I am in the middle of my final exams so I spend most of the time studying and sleeping.I didn't have much time but I tested your HEX on my hardware and I see the same issue that you have while I can confirm that it works when I compile the demo myself. Therefore, this is definitely an issue with your toolchain.I will provide you tomorrow with HEX files that run on my hardware. In the meantime, can you please make sure that you have all the weird optimization stuff such as LTO disabled and that your general optimization level is set to -O0?Sorry for the inconvenient delay...~ Tectu Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted February 3, 2015 Report Share Posted February 3, 2015 Okay, I just compiled and flashed the widgets demo myself and I have the same issue that you have. There is something wrong with the code in the repository!!I am sadly not able to take a closer look at what the problem is before tomorrow evening.Please stay tuned!~ Tectu Link to comment Share on other sites More sharing options...
Dvor_nik Posted February 4, 2015 Author Report Share Posted February 4, 2015 (edited) Thank you for testing, Tectu! I will wait. Good luck with your exam. I'm going to try this board with uGFX 2.2 or 2.1 and report. Please stay tuned!Sure! UPDATE: uGFX release version (ugfx_release_22_150104.zip) works fine! Only repository version was broken. Edited February 4, 2015 by Guest Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted February 4, 2015 Report Share Posted February 4, 2015 Thank you very much for investigating the problem.We have just fixed the issues in the repository. It was just some bit that is responsible for the orientation set to 0 that should have been set to 1. Little things break the world, eh...Can you please verify that everything works now for you with the latest master?~ Tectu Link to comment Share on other sites More sharing options...
Dvor_nik Posted February 4, 2015 Author Report Share Posted February 4, 2015 Good job, thank you. Now it looks fine Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted February 4, 2015 Report Share Posted February 4, 2015 Glad to hear that everything is working now.Thank you very much for bringing this to our attention with this very detailed bug report.~ Tectu Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now