I'm working on STM32f0xx (CM0), and using keil to build the project and getting hex file. I want to write a makefile which will do the exact same job.
Cool. Go for it.
I'm able to compile the files using "armcc" which will give the .o files. But I'm unable to use "ArmLink" to link these .o files and create a .hex.
I was referring to the batch file(created by Keil), which uses the .lnp file for linker. Internally .lnp using .sct, .map and .axf file. I'm not sure how to create these files using "makefile".
Can anyone guide me for the same?
Use the current scatter file.
The map and axf files is what the linker is expected to produce.