2020-04-25 12:06 PM
Hello everyone,
For some reason, STM32CubeIDE generates a small binary, almost less than 1kb, after re-generating the project from CubeMX at certain point. Clean and build project didn't work. Project compiles successfully without any issue, however, the same incomplete binary is being generated over and over again. The only way to solve it was to remove the entire project from workspace and from disk, create a new project, generate project from CubeMX, then add my own sources from scratch.
The problem is this workaround doesn't last long as I need to re-generate the project from CubeMX many times and at certain time re-generating project from CubeMX corrupts the entire build and results in that weird binary.
Hopefully someone has something to say about it!
Thanks,
Zaher
2020-04-25 04:39 PM
Seen this few times, IIRC because the startup .s file gets removed from the project for some reason.
Then linker cannot find the entry point...
If so, restore most recent .cproject, .project from backup and refresh.
-- pa
2020-04-25 05:00 PM
In my case, startup.s is still there and has not been altered/removed. I still need to verify whether copying .cproject and .project files from backup could solve it!
2020-04-25 09:03 PM
> startup.s is still there and has not been altered/removed.
Yes, but do you see it in the eclipse project explorer tree?
-- pa
2020-04-25 09:24 PM
That's exactly what I meant. The file is sill available in the project and on disk.