2015-11-02 03:16 AM
Hi,
I am using STEMWIN 5.26 and controller is STM32F429ZI.When i try to create UI with PNG files i get following error in IARno defination for IMAGE_SetPNG.I check/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=https%3a//my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/IMAGE_SetPNG%20is%20not%20defined%20in%20STemWin%20library&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B¤tviews=125
link.dialog.h and
IMAGE.hare already included but still it shows me same error. Any solution for this ??
#png #stm322015-11-02 04:31 AM
Do you have a proper GUIConf.h with definitions/settings of STemWin?
Here is an example from STM32Cube samples:#ifndef GUICONF_H
#define GUICONF_H
/*********************************************************************
*
* Multi layer/display support
*/
#define GUI_NUM_LAYERS 2 // Maximum number of available layers
/*********************************************************************
*
* Multi tasking support
*/
#ifdef OS_SUPPORT
#define GUI_OS (1) // Compile with multitasking support
#else
#define GUI_OS (0)
#endif
/*********************************************************************
*
* Configuration of touch support
*/
#ifndef GUI_SUPPORT_TOUCH
#define GUI_SUPPORT_TOUCH (1) // Support touchscreen
#endif
/*********************************************************************
*
* Default font
*/
#define GUI_DEFAULT_FONT &GUI_Font6x8
/*********************************************************************
*
* Configuration of available packages
*/
#define GUI_SUPPORT_MOUSE (1) /* Support a mouse */
#define GUI_WINSUPPORT (1) /* Use window manager */
#define GUI_SUPPORT_MEMDEV (1) /* Memory device package available */
#define GUI_SUPPORT_DEVICES (1) /* Enable use of device pointers */
#endif /* Avoid multiple inclusion */
2015-11-04 01:38 AM
2018-07-15 07:14 AM
Dear you,
Can you tell me to fix that issue
IMAGE_SetPNG
?I have downloaded
https://www.segger.com/downloads/emwin/emWin_png
What is next step?
2018-07-15 03:01 PM
Try to integrate this into the project
2018-07-16 12:04 AM
Dear
Chernobay.Vitali.002
,Thank you for your helps.
I insert emWin_png v5.40 folder to project successfully last night.
I build project ok but icon/image showed fail.
I have just update ShapeIconDLG.c, ShapeLibDLG.c , error_icon (1).JPG,error_icon (2).JPG to link:
https://drive.google.com/drive/folders/1dHgIe4uFZUElhIBmTC-IFxvM4C0D2oIs?ogsrc=32
Can you check
ShapeIconDLG.c,
ShapeLibDLG.c ,
error_icon (1).JPG,
error_icon (2) please?
And tell me to fix bug that?
Thanks.
2018-07-16 02:28 AM
I'll try to test.
Try to read my blog can help
https://arm-stm.blogspot.com/2017/04/stm32f746ng-discovery-ram-stemwin.html
2018-07-16 02:42 AM
I can not test this without a full project
2018-07-16 03:10 AM
Dear
Chernobay.Vitali.002
,I refer link which you sent:
/external-link.jspa?url=https%3A%2F%2Farm-stm.blogspot.com%2F2017%2F04%2Fstm32f746ng-discovery-ram-stemwin.html
And to do:
int main(void) {
/* This project template calls firstly two functions in order to configure MPU feature and to enable the CPU Cache, respectively MPU_Config() and CPU_CACHE_Enable(). These functions are provided as template implementation that User may integrate in his application, to enhance the performance in case of use of AXI interface with several masters. *//* Configure the MPU attributes as Write Through */
MPU_Config()/* Enable the CPU Cache */
CPU_CACHE_Enable() SCB_DisableDCache() /* STM32F7xx HAL library initialization: - Configure the Flash ART accelerator on ITCM interface - Configure the Systick to generate an interrupt each 1 msec - Set NVIC Group Priority to 4 - Low Level Initialization */ HAL_Init()....
Image showed ok!
Many thanks!