You are here

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

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

Summary: 18 Replies, Latest post by willemite on 11 Oct 2012 10:56 AM PDT
Verified Answers: 0
Last post
Log in to post new comments.
rote's picture
User
13 posts

please help me.?????

rote's picture
User
13 posts

I use no OS,no TS

rote's picture
User
13 posts

I build error

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

user_1377889's picture
User
5828 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.

rote's picture
User
13 posts

Thank you,I will try to communicate in English.

rote's picture
User
13 posts

I Attach file code ,To help me.

rote's picture
User
13 posts
Attachments: 
user_1377889's picture
User
5828 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

rote's picture
User
13 posts

Attact file again.

rote's picture
User
13 posts
user_1377889's picture
User
5828 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

 

 

rote's picture
User
13 posts

Were unsuccessful ,not complete.

Attachments: 
rote's picture
User
13 posts
Attachments: 
user_1377889's picture
User
5828 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 

rote's picture
User
13 posts

Headache ????

it new support psoc,I will do next..

user_1377889's picture
User
5828 posts

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

Bob

rote's picture
User
13 posts

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

user_1377889's picture
User
5828 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

user_22393527's picture
User
64 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

Log in to post new comments.