Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 5 > I need example psoc5 use emwin , "HELLO WORLD" to GLCD

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



I need example psoc5 use emwin , "HELLO WORLD" to GLCD
Moderator:
RKRM

Post Reply
Follow this topic



I need example psoc5 use emwin , "HELLO WORLD" to GLCD

rote posted on 13 Mar 2012 5:01 PM PST
Senior Member
13 Forum Posts

please help me.?????




Re: I need example psoc5 use emwin , "HELLO WORLD" to GLCD

rote posted on 13 Mar 2012 05:02 PM PST
Senior Member
13 Forum Posts

I use no OS,no TS



Re: I need example psoc5 use emwin , "HELLO WORLD" to GLCD

rote posted on 13 Mar 2012 05:20 PM PST
Senior Member
13 Forum Posts

I build error

"The command 'arm-none-eabi-gcc.exe' failed with exit code '1'."



Re: I need example psoc5 use emwin , "HELLO WORLD" to GLCD

Bob Marlowe posted on 14 Mar 2012 12:07 AM PST
Top Contributor
3536 Forum Posts

Hi,

probably nobody answered your question because nobody understood your problem. We all can see that you've made a C-coding error, but from that small piece of information every hint would be a guess.

As far as I remember I asked you before to post your project here if that is possible.

By the way: usually the very first error or warning (together with the source-file-line) states the reason for not compiling. The message you privided is the final one stating "I cannot compile your program"

 

Bob

PS: when it is too difficult for you to express what you want to say in English, I would suggest that you ask a friend or collegue to help you, as I can see English is not your native language and to help you needs more insight.



Re: I need example psoc5 use emwin , "HELLO WORLD" to GLCD

rote posted on 14 Mar 2012 12:29 AM PST
Senior Member
13 Forum Posts

Thank you,I will try to communicate in English.



Re: I need example psoc5 use emwin , "HELLO WORLD" to GLCD

rote posted on 14 Mar 2012 12:44 AM PST
Senior Member
13 Forum Posts

I Attach file code ,To help me.



Re: I need example psoc5 use emwin , "HELLO WORLD" to GLCD

rote posted on 14 Mar 2012 12:59 AM PST
Senior Member
13 Forum Posts


Re: I need example psoc5 use emwin , "HELLO WORLD" to GLCD

Bob Marlowe posted on 14 Mar 2012 01:08 AM PST
Top Contributor
3536 Forum Posts

The uploaded Zip file has an error. Will you please

"Build->Clean Project"

"File->Create Workspace Bundle(minimal)"

and uplaod the .Zip-file again

 

Bob



Re: I need example psoc5 use emwin , "HELLO WORLD" to GLCD

rote posted on 14 Mar 2012 01:17 AM PST
Senior Member
13 Forum Posts

Attact file again.



Re: I need example psoc5 use emwin , "HELLO WORLD" to GLCD

rote posted on 14 Mar 2012 01:42 AM PST
Senior Member
13 Forum Posts

data of GLCD controller RA8835

http://www.aliexpress.com/product-fm/367707651-free-shipping-graphic-lcd-320x240-touch-screen-modules-RA8835-ADS7843-STN-LED-backlight-Blue-white-wholesalers.html



Re: I need example psoc5 use emwin , "HELLO WORLD" to GLCD

Bob Marlowe posted on 14 Mar 2012 02:29 AM PST
Top Contributor
3536 Forum Posts

Yes, as I thought. You did not include the file "GUI.h" to the project header files. To do that, right-click in the workspace-explorer (at the left) on "Header Files" then "Add", search for your "GUI.h" and open it.

When you compile your program (as it is now) you'll find on bottom on the right-hand side an area showing "Errors Warnings Notes". Clicking on that area shows more information about what has happened and there you will see the hint, that "GIU.h" could not be found. When you double-click on that error-message the corresponding file will be opened and the cursor placed just on the offending line. Nice feature, isn't it?

 

Happy coding

Bob

 

 



Re: I need example psoc5 use emwin , "HELLO WORLD" to GLCD

rote posted on 14 Mar 2012 05:29 AM PST
Senior Member
13 Forum Posts

Were unsuccessful ,not complete.



Re: I need example psoc5 use emwin , "HELLO WORLD" to GLCD

rote posted on 14 Mar 2012 05:45 AM PST
Senior Member
13 Forum Posts


Re: I need example psoc5 use emwin , "HELLO WORLD" to GLCD

Bob Marlowe posted on 14 Mar 2012 07:33 AM PST
Top Contributor
3536 Forum Posts

Yes, the compiler states quite clearly, that it cannot find the function GUI_Init() you called. Same with GUI_DispString

Where is it? Did you add the file to the source-modules?

You have a problem with some extenal programs (emWin) which you did not set up completely for the compiler. Probably you miss the GUI.c -File.

Seemingly too few people are using emWin to help you any further, this is not a PSoC or C-Compiler problem.

 

Bob 



Re: I need example psoc5 use emwin , "HELLO WORLD" to GLCD

rote posted on 14 Mar 2012 07:42 AM PST
Senior Member
13 Forum Posts

Headache ????

it new support psoc,I will do next..



Re: I need example psoc5 use emwin , "HELLO WORLD" to GLCD

Bob Marlowe posted on 14 Mar 2012 11:31 AM PST
Top Contributor
3536 Forum Posts

No, no headaches, did you add the GUI.c file?

Bob



Re: I need example psoc5 use emwin , "HELLO WORLD" to GLCD

rote posted on 14 Mar 2012 07:55 PM PST
Senior Member
13 Forum Posts

Without GUI.c in the emWin pack,I can not find it.



Re: I need example psoc5 use emwin , "HELLO WORLD" to GLCD

Bob Marlowe posted on 15 Mar 2012 12:03 AM PST
Top Contributor
3536 Forum Posts

Well, and the compiler doesn't find it ether. Look at your emWin installation and documentation where to get it from or if you have it to make yourself which would mean: create that file and write all the routines given in GUI.h yourself. Go into the documentations would be the best.

 

Bob



Re: I need example psoc5 use emwin , "HELLO WORLD" to GLCD

willemite posted on 11 Oct 2012 08:56 AM PST
Top Contributor
62 Forum Posts

I know this thread is a bit stale, but I just had the same problem.

Basically you need to direct the compiler to the library linked file for emWin (since we don't have source code, only the linked libraries)

See the pdf component datasheet for the emWin Graphic Library -- on page 4

 

"Add the link library file. The emWin GUI can be used with the Keil_PK51, GNU CC, KEIL

MDK, or KEIL RVDS toolchain, so select the library according to the toolchain you choose.

From the menu Project > Build Settings > Linker > General > Additional Link Files,

select the library file.

Note The process of adding the library to the linker is different for the GCC toolchain. In this

case, the directory containing the library is added to the linker with the “Additional Library

Directories” setting and the library is specified with the “Additional Libraries” setting. The

library name used for this setting must have the “lib” prefix and “.a” suffix removed from the

name.  In other words, give it the directory and in this case type in emWinnosnts under Additional Libraries






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 06/15/20