Jump to content

Visual glitches on Embest-STM32-DMSTF4BB


Dvor_nik

Recommended Posts

Hi! I try to start with uGFX (it's looks great!) but I have a trouble with standart example on standart board :( :

323rt.png

(It's calibration)

1. uGFX logo looks fine :shock:

2. Calibration screen with glitches

3. Program screen with glitches

But 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):

wiqfy.png

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

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

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 go

t5cal.png

1m3sx.png

Logo 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 hardware

It 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=0

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.

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":

sp5d2.png

"circles":

miaw6.png

"images_animated" - look ok and cool.

"fonts"

nxb5b.png

Link to comment
Share on other sites

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

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=0

This 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

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

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! :D

UPDATE: uGFX release version (ugfx_release_22_150104.zip) works fine! Only repository version was broken.

Edited by Guest
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...