Search Results

Search results 1-20 of 31.

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Any ideas, on how can I fix this (or if there is a color mode which is not supported) or where should I look more in detail? Thank you! Mark

  • Hello everybody, I'm having some troubles to make a custom board with a 2" display (ST7789V display controller) work properly. I'm using a custom board with an STM32F401RET6 with STemWin 5.4401. I manage to configure the system and get to a point where I can almost see on the screen what I was expecting. To test the configuration I'm using the "_DrawPolygons" example On the STemWin configuration side: Source Code (42 lines) On the controller side, among all the configuration registers that I set…

  • Hello, I'm encountering a problem on a STemWin based application which has been developed for a STM32F7 custom board. The memory assigned for the GUI is equal to 170KB and it is part of the microcontroller embedded SRAM (total 320KB). I'm monitoring the current free memory using the library function GUI_ALLOC_GetNumFreeBytes and I've noticed that the returned value keeps slowly decreasing even if no particular redrawing actions take place (machine idle, only polling with other boards). This lead…

  • Thank you for support, Florian! RLE8 looks like a good compromise, unfortunately A565 uses too much non-volatile memory for my application. Regards, Mark

  • Hello, I would like to convert a PNG with transparency into a RGB c file with transparency and compression RLE16. Is this possible? With the supplied Bitmap converter for STM32 (v.5.44) the default conversion which is made is to RLE32 but this gives me some memory problems on the visualization (due to RAM usage I guess). I've tried also with the command line but I got stuck when I have to set the color transparency as it keeps complaining on the values I try to set (I tried 0, 0xFF, 0xFF, etc. b…

  • Quote from SEGGER - Schoenen: “Hi, Quote from Mark_C: “Is it OK like this or is it necessary to make some other setting? ” This is the only location where you need to configure the memory used by emWin. Any emWin operation which needs a piece of memory uses this memory block. The only exception is the GUIDRV_Lin driver. Its framebuffer needs to be allocated by the user. Regards, Sven ” Thank you very much for your answer and support, Sven! Best regards, Mark

  • Quote from SEGGER - Schoenen: “ The function set to pfReadM8_A1() is used to read data. As far as I know it can be different depending on the controller. We had already controller which expect the C/D line low to read data and others which expected the C/D line high to read data. But, I wouldn't expect a crash, just some strange "pixel data" being read. ” Hello Sven, thank you for your answer. It crashed in the data reading function, the function pointed by pfReadM8_A1 has apparently to be the c…

  • Hello, I've setup a project with the following hardware/software: - STM32F401xE (84MHz clock, 96KB SRAM - no internal buffer) - 3.5" Display with ILI9488 controller, 8 bit I8080 - I've assigned 32KB of SRAM memory to the emWin library (STemWin GUI_VERSION 54401) LCD_X_Config : Source Code (42 lines) I've made a test with the GUI_AA_DrawArc function and it is only working when I set GUI_AA_SetFactor(1). If I set a number higher than 1 on GUI_AA_SetFactor() the program will execute the ReadM8_A1 f…

  • Quote from LexaGb: “Hello, one of the boards I work with is also a device with STM32F207 (120MHz, 128 kB SRAM) MCU and 240x320 LCD with ILI9341 controller using 16-bit 8080I bus. No external ram. No cache for display driver. Not much "faster" system than yours. Check the following moments in your code: 1. Increase 8080I bus performance: DCX pin: set it to "1" in your "Readdata" function and toggle it "0" -> "1" in "Writecmd" function. Do not operate with it in "Writedata" function. WRX pin: set …

  • Quote from SEGGER - Schoenen: “Hi Mark, The LCD_X_8080 functions, do they use bit banging (toggling the IO pins of the MCU) or do these functions use a dedicated hardware module (e.g. a 8080 module on the MCU)? Bit banging is pretty slow and will cause a visible build up on the screen. I recommend to use a hardware module for this. Please note, it is not necessary to use an 8080 interface with this driver. You could also use SPI for example. Of course, this depends on the available interfaces of…

  • Hello, I'm setting up a GUI application sample with STemWin on a custom board with an STM32F401 microcontroller which controls a display that mounts its controller (ST7789v) and I've managed to print on a screen the classic "Hello world" example. The board doesn't have any external RAM for frame buffering so only the available memory is the internal RAM (about 64KB, it will only be used for the libraries, not enough space for a complete frame) and the internal display device memory. Since the di…

  • Thank you, Florian! Performances have definitely improved using a different DISPLAY_DRIVER as you suggested. Regards, Mark

  • Hello, I have developed a GUI with STemWin libraries for a 4.3" display. Now I need to rotate all the application upside down so in my code I called the function GUI_SetOrientationEx in the following way: Source Code (11 lines)Compared to the plain GUI without those rotations the interface is really slow (approximately 3x slower) when redrawing and changing page. Is this the normal consequence of using this kind of functions (GUI_SetOrientationEx) and what can be done to improve the redrawing? I…

  • Hello, I've already used emWin (STemWin in particular) to create single layer dialogs without any problem. Usually I create single .c files for each single GUI page (which consists of a main dialog) and to change from a page to another one I delete the previous one with GUI_EndDialog() in the following way: Source Code (39 lines) I tried to do the same with a two layer dialog following the same principle: Source Code (47 lines) This works for a while but gets stuck (memory fault) after some (var…

  • Quote from LexaGb: “ Just curious why GRAPH widget with XY data is no good for you... ” Thank you for your answer, Alex! I did not use GRAPH widget because it looked easier to me to start from an empty object rather than customize an existing one (there's a fixed grid image on the background and one graph has a different starting point among the others...). I tried your proposed solution but it gave me some problems when I change application window and I create again the window with the MEMDEV. …

  • Hello, I'm developing an application with an x-y graph using GUI_AA_DrawLine of the single data steps (I need something different than the visual appearance of the GRAPH widget). I call this function inside the WM_PAINT case of the respective window callback but the desired result is obtained only if I draw also the previous steps of the graph (I use WM_InvalidateWindow when I want to redraw the window). Here is some code: Source Code (17 lines) Is there any way to retain the previous steps of t…

  • Quote from LexaGb: “Hello, maybe we should place two scales (gray and colored) at one position in an exact matching using IMAGE widgets. Then invalidate colored bar image within the area related to the bar value using WM_SetUserClipRect() function. Just a simple code: C Source Code (85 lines)Alex. ” Hi Alex, thank you for your answer and your useful example, I think that WM_SetUserClipRect() was the function I was looking for! Bests, Mark

  • Hello, I have to develop a bar graph as depicted in the attached image, with two independent variables (red and light blue) that colorize the grey steps according to their value. I was thinking drawing the gray bar graph (as a bmp/png) on layer #0 and partially plotting on layer #1 the color bars (as a bmp/png) with transparent background but I couldn't find a function that draws only a part of the bitmap. Moreover the bitmaps are intended to start from the top left corner so it looks like that …

  • @SEGGER - Schoenen Let me please know if there are any other ways to use an STM32 with a newer version of emWin libraries, at least to test those new features. Thank you again. Regards, Mark

  • Quote from SEGGER - Schoenen: “Hi Mark, That's interesting, I have checked V5.44a but the spline related functions are present. Did you updated from an older version to 5.44a? Maybe something went wrong in this process. If can get hands on a newer version you should give that a try. Regards, Sven ” Hi Sven, thank you for your answer. First I've tried updating an older library version (5.40) to the last present on the STM32Cube_FW_F7_V1.15.0 which is the 5.44 mentioned before. The result was I go…