This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Multiple modules of the main function in Keil uVision

Hi,

I have created a project using STM32CubeMX and Keil uVision.

The generated CubeMX comes with its own main.c and main function.

What I want to do is disable that main.c build in the project and create my main.cpp file,

where I can put my main function.

The problem I'm now facing is that the compiler is giving the following warning-

While going through this documentation it says to configure the linker and scatter file.

https://developer.arm.com/documentation/ka004041/latest/

But I'm not able to figure it out. is there some other document I can go through?