Skip to main content
CSand
Senior
Jul 17, 2020 1:33 AM UTC
Question

make: *** [Src/subdir.mk:64: Src/main.o] Error 1 - I'm complete newbie to STM32CubeIDE or Eclipse

Hi,

I have this error around since few days. I tried find some answers on forums but not been able to fix it.

When I build my project I get this error:

make: *** [Src/subdir.mk:64: Src/main.o] Error 1

followed by

make: *** Waiting for unfinished jobs....

I am using STM32F103C8T, I reinstalled latest STM32CubeIDE and firmware package from ST site.

My project has been created some time ago on a different computer with different project folder location - not sure this is relevant.

Could anyone support fix this error please?

Thanks

This topic has been closed for replies.

9 replies

TDK
Jul 17, 2020 2:58 AM UTC

I feel like there should be additional error output. Eclipse is pretty verbose with errors.

> My project has been created some time ago on a different computer with different project folder location

Almost certainly this is the issue. See if a new project compiles.

"If you feel a post has answered your question, please click ""Accept as Solution""."
hansd56
Senior
Jul 17, 2020 4:43 AM UTC

You have to give more information. How did you build the project before? How did you setup the project in Eclipse (CubeIDE)?

CSand
CSandAuthor
Senior
Jul 17, 2020 4:21 PM UTC

The project is build using CubeIDE, I attached the project as I am not sure what additional information I should provide.

hansd56
Senior
Jul 18, 2020 3:16 AM UTC
There were no files in CMSIS and the HAL drivers. I put in the latest version (1.8) but it errors now. If you used an older HAL version try this. See if you can resolve it now.
CSand
CSandAuthor
Senior
Jul 18, 2020 2:39 PM UTC

Sorry, can you please tell where can I download files you put? I can't find any donloadable link in your message.

CSand
CSandAuthor
Senior
Jul 18, 2020 8:44 AM UTC

Thanks for the help. I'll check and try to understand where was my mistake.

hansd56
Senior
Jul 18, 2020 3:55 PM UTC

STM32CubeIDE Help->Manage embedded software packages. There you can select and download any STM32Cube Packages and examples. Then just look where your packages are and copy missing files.

CSand
CSandAuthor
Senior
Jul 19, 2020 7:05 AM UTC

Thanks, done that and now works fine. Also during this search and tests I've make my understanding on how to start a new project.