I am trying to compile using cmake, all the components[Softdevice, Freertos, Drivers] are built as static libraries.
Using SEGGER Embedded Studio projects compiles without any issues.
We also need to support build support using CMAKE tool, so I have written the cmake for individual modules [ like Softdevice, Freertos, Drivers]. Each module is built as static library and finally executable [.elf] is generated by combining the libraries.
All modules are built but at linking stage I am getting below error
arm-none-eabi/7.2.1/../../../../arm-none-eabi/bin/ld.exe: cannot find crti.o: No such file or directoryarm-none-eabi/7.2.1/../../../../arm-none-eabi/bin/ld.exe: cannot find crtbegin.o: No such file or directoryarm-none-eabi/7.2.1/../../../../arm-none-eabi/bin/ld.exe: cannot find crt0.o: No such file or directory
I looked into the SEGGER installation tool chain folder but it doesn't have this files but the code compiles perfectly fine using SEGGER embedded studio.
I am not sure why crti.o flies are required.. also I doubt on the compiler settings.
Can someone help me to proceed further to fix this issue!
Dear Nordic Team,
I do see some code related crti in nrf_common.ld, but I am not able understand where crti module in the project gets used!
These files are part of the ARM GCC libraries. It seems you are missing some paths to these include files. This is not a Nordic-specific problem. Please search the internet for solutions, the error you get will give you many results.