cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1

Anonymous
Not applicable

Hi

   

 

   

I'm having a problem  with building my project. Have the following error code

   

 

   

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

59 Replies
Anonymous
Not applicable

Hi Maduna,

   

 

   

Right click near the menu bars and enable the "Build Configuration/Toolchain".

   

Let us know if this helps.

   

 

   

If you upload the project, we can test if there is any specific issue causing this error.

0 Likes
Anonymous
Not applicable

 did you get any error or warning on the output section while building the project?  You can upload the project for people here to check.

0 Likes
Bob_Marlowe
Expert II

This error-message is, afaik, the last message in a row, saying that the compilation was aborted due to one or more compilation error(s). Check messages before (above) this one.

   

 

   

Hope it helps

   

Bob 

0 Likes
Anonymous
Not applicable

The Build Configuration/Toolchain did not yeild any positive response.

0 Likes
Anonymous
Not applicable

I did not get any other error from teh screen after the build. I only obtained the

   

 

   

 Error code  'arm-none-eabi-gcc.exe' failed with exit code '1'.

   

 

   

let me upload the zipped program and check it for me on your side and i'll give a bried xplanation of what im trying to read out

0 Likes
Bob_Marlowe
Expert II

Yes,go on and upload. We'll have a look at it.

   

Bob

0 Likes
Anonymous
Not applicable

I'm having a problem uploading my zipped code. it goes on forever . any tip

0 Likes
Anonymous
Not applicable

What is the maximum size i can upload? I have compressed it to 3.25MB

0 Likes
Anonymous
Not applicable

Hi Maduna,

   

 

   

Please use "Minimal Archive" to archive the project.

   

Following is the procedure:

   

1) Right click on the Workspace and select "Archive Workspace/Project"

   

2) In the Archiver window, select "Minimal". 

   

 

   

In this method, the Creator generated files will not archived thereby reducing the file size.

0 Likes
Bob_Marlowe
Expert II

and make a "Clear" before, it reduces the size as well.

   

Bob

0 Likes
Anonymous
Not applicable

Its still failing to load. i'll keep trying....

0 Likes
Anonymous
Not applicable

I'd suggest that DASG or someone gives me their email and i send it to them and tehy can upload the the project because i have been trying to do this for about 4hours and i'm failing. Is that ok

0 Likes
Anonymous
Not applicable

Bob or DASG could you send me an email on madunaski@yahoo.com then i can send it through to you because i'm still failing to upload the file. I have reduced it to 600Kb but still failing to upload. Then you can upload it from your side.

0 Likes
Bob_Marlowe
Expert II

Hi Malvin,

   

when I compile your project (Creator 2.0), I get

   

7 Errors,

   

9 Warnings and

   

2 Notes.

   

On the very bottom line (maybe hidden by the task-list at your desktop?) on the right-hand corner are the counts listed for errors, warning and notes. When you click at one of them, the window changes from "output" to "Notice" and you can see all your errors.

   

You may click as well to one of the tabs of the notice-window to hide or show the errors, notes or warnings. Since you did not see any of those (only in the output-window the error-message of the failed compile) I suppose that it is hidden from your sight by the task-bar or something similar.

   

Search for the bottom-line of the >Creator-Window.

   

Bob

0 Likes
Anonymous
Not applicable

The project which Maduna is referring to is attached along with this comment.

0 Likes
Anonymous
Not applicable

I have managed to solve teh issues i had. Its running well now. Thanks for the efforts.

0 Likes
Bob_Marlowe
Expert II

You are welcome!

   

Bob

0 Likes
Anonymous
Not applicable

Hey Maduna,

   

 

   

Good to hear that!

   

Was the error you were getting initially due to improper initialization of the variables using "extern"?

0 Likes
Anonymous
Not applicable

Yes DASg, teh error was due to the initialisation of the 'extern' keyword. And teh error comes as

   

 

   

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

   

 

   

with no reference. That is what was making it dificult but i had to go through the whole program and initialied the extern kewyword in main.c instead of the RGBSensor.c file. Much appreciated.

0 Likes
Anonymous
Not applicable

You can view the errors, notes and warnings by selecting the "Notice List" tab.

   

It gives a list of all the errors and warnings. The snapshot below shows the notice list of the project uploaded.

   

 

   

0 Likes
Anonymous
Not applicable

Hi,

   

I'm strugling also with this error....  Let me tell you what I did:

   

- I import and changed the Graphic LCD module as described in the PSoC-Today video.

   

- Saved it in the Default/MyComponents/  catalog and build the module. No problems.

   

- I archived the module for using it in my project

   

- I opened a new test project and via the Components tab, I imported the archived module

   

- In the Source tab I added the component in TopDesign using the component from the Default/MyComponents catalog

   

- Added I/O pins to the component in TopDesign and assigned pins to the pins I had allocated for this in my hardware

   

- Build the project and solved some minor errors

   

- Build again and the only error what was leftt was the one in the Title.

   

I did this job with other modified modules and no problem when I used them in my projects....  But this one cost me days of searching before I make this help message....

   

I hope anyone can give me the right hint!

   

I added the test project.

   

Rob

0 Likes
Anonymous
Not applicable

Addition info...

   

 

   

when I remove calls to the module from main.c (e.g.  TFTIntf_1_Start();)

   

the problem is over....

   

Maybe it has somthing to do with linking of the module source?

   

Rob

0 Likes
Bob_Marlowe
Expert II

It HAS to do with the linker. When you look at the "output" tab you see an errormessage from "ld" which indeed is the linker. But I cannot say more. Better you create a "MyCase". (At top of this page: Support&Community -> Technical Support)

   

 

   

Bob

0 Likes
Anonymous
Not applicable

Bob,

   

    

   

          

   

thanks for reply!  I had made an other approach which solved the problem….

   

In my first setup I modified the component to my own requirements and build and save it. After importing the module in my project and building it, I had that specific error.

   

Now I first have made a new ‘my_component’ based on the component from the Cy catalog without any mods, built it and imported it in my project. Building the project and NO errors!

   

Next step was to add step by step my new API’s in this component and every time I did a new build of the project and still no errors (beside some typing errors ;-).

   

Conclusion: there was something wrong with my first modified component but don’t know what…. 

   

But problem solved!

   

Next step is to get some lines and color on my TFT display, and that is not the case at this moment. So I have still something to figure out. Maybe I have to check the signals with my scope.

   

Regards,

   

Rob

0 Likes
Bob_Marlowe
Expert II

Thank you for keeping us informed!

   

 

   

Bob

0 Likes
Anonymous
Not applicable

Hi

   

I receive error on my project.
"Build error: The command 'arm-none-eabi-gcc.exe' failed with exit code '1'." 

   

No more error or warnings.

   

For fix bug - was install 
"gcc-arm-none-eabi-4_9-2015q2-20150609-win32.exe" and add to PSoC Creator 3.2 to "Tools->Options-> ARM Toolchar"

and update
"Project->Build Settings->Toolchar"

   

All this - unsuccessful.
 

   

How can I fix problem  ? 

0 Likes
Bob_Marlowe
Expert II

Welcome to the forum.

   

When no other error is mentioned this will probably be a link error. Can you post your complete project, so that we all can have a look at all of your settings? To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

I'm getting an error - The command 'arm-none-eabi-gcc.exe' failed with exit code '1'

0 Likes
Bob_Marlowe
Expert II

There are two files not within the pjoject path: debug.c and ans.c although the ans.h is in the correct place. Please correct that.

   

When the error remains, re-post the corrected workspace bundle.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

I combined 4 programs in a single program for my project. That's why i need both C  file. If i'll remove any the error will remains same. I tried this also.C file

0 Likes
Bob_Marlowe
Expert II

I did not suggest to remove the files, I suggested to move the files to the project path and adjust the references. I cannot compile because the files are missing.

   

 

   

Bob

0 Likes
Bob_Marlowe
Expert II

There is an error message "undefined reference to `UART_PutCRLF". Open datasheet of your UART and look for the correct name (must be something like UART_UartPutCrLf or so).

   

Get rid (correct code) of all warnings!!!

   

 

   

Bob

0 Likes
Anonymous
Not applicable

I corrected them UART_PutCRLF(16). Now also i'm getting same error.

0 Likes
Bob_Marlowe
Expert II

PutCRLF() does not have a parameter and the name is still wrong!

   

 

   

Bob

0 Likes
Anonymous
Not applicable

This is working here, but same error.

   

This is my first project based on PSoC. I'm bit confuse in code.

0 Likes
Anonymous
Not applicable

PSoC is new for me.I'm bit confuse in my code. getting some errors can you please check this once.

0 Likes
Bob_Marlowe
Expert II

Right click on your UART component, select "Open Datasheet". In the PDF search for "putcrlf" then you'll find the correct name.

   

Double click on each warning and correct it. Mostly type-casting will help.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

I checked in data sheet UART_UartPutString(). Error

   

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

0 Likes
Bob_Marlowe
Expert II

... And it will stay the same until you correct all errors. At the bottom of creator all the errors and warnings are shown. When you switch to "Output" tab you will see any linker errors at the end. Exit code 1 just is the capitulation of GCC since there are some errors remaining.

   

I am sorry, but I cannot correct your elaborate, you will have to do that yourself.

   

 

   

Bob

0 Likes