I attempting to add some code to the main.c file of the kernel provided with the Si8250x Development Kit. When I compile the project in the SiLabs IDE using the Keil C51 tools without my additional code it works. However, when I add my code to the main.c file, a main.obj file is not created when I build the project. This prompts a Fatal Error L210 because there is no main.obj file. When I try to manually add the file to project and then build it, the file is renamed during the process and the same error occurs. Any ideas on how to fix this problem? Thanks
No, it is a simple main with some init stuff to set up some timers, then setting port i/o pins based on the timers. It is a simple program, but I still need the kernel functions for later applications.
Does your main.c contain a #pragma SRC? In this case you will not get an object file but only a .src assembler source file.
View all questions in Keil forum