cancel
Showing results for 
Search instead for 
Did you mean: 

Issue in IMAGE_SetPNG

amit251291
Associate II
Posted on November 02, 2015 at 12:16

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 IAR

no 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&currentviews=125

link. 

dialog.h and 

IMAGE.h  

are already included but still it shows me same error. Any solution for this ?? 

#png #stm32
8 REPLIES 8
qwer.asdf
Senior
Posted on November 02, 2015 at 13:31

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 */

amit251291
Associate II
Posted on November 04, 2015 at 10:38

Thank  for your reply. 

I solved this problem by downloading PNG library mentioned in User manual of Stemwin.

Posted on July 15, 2018 at 14:14

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?

Posted on July 15, 2018 at 22:01

Try to integrate this into the project

Tran Minh Cong
Associate II
Posted on July 16, 2018 at 09:04

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.

Posted on July 16, 2018 at 09:28

I'll try to test.

Try to read my blog can help

https://arm-stm.blogspot.com/2017/04/stm32f746ng-discovery-ram-stemwin.html

Posted on July 16, 2018 at 09:42

I can not test this without a full project

Posted on July 16, 2018 at 10:10

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!