I am developing a project for LPC54018 iot module where I am using MDK toolchain to compile the project through the command line. I am developing cmake based build environment.
While compiling, I am facing the error "No section matches selector - no section to be FIRST/LAST". What is the issue and How I can resolve this?
So what debugging have you done to find out what's wrong ?
I compiled the start-up file, created .o file and I linked this .o file with binary. While flashing this binary from Keil, it shows error like: Error: Flash Download failed - "Cortex-M4". and error on console "No Algorithm found for: 00000000H - 00005B53H"
So I added one linker option using: target_link_options(Mcu PUBLIC --predefine="-DXIP_IMAGE")
After adding this linker option, the built binary is flashing but the application is not working/started.
The code is wrriten to blink the LED. But it is not blinking. The code is verified and working with other toolchain.
Please let me know what is missing.
It might be assembler ...
The startup file is a source file like all your other files. Compile it and link it like any other source file.
using toolchain of Keil. but developing project to build using the command line.
That's not a Keil thing, is it?
Yes. How can I link the startup file using CMake?
Likely entirely missing a startup file.
Missing main()...?
Probably a disparity between the startup.s file and the scatter file the linker is using.
View all questions in Keil forum