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

Problem configuring the linker and compiler Keil

Hello! During the development of the project, I needed to use it for personal purposes one of the pages my flash memory of the microcontroller (C8051F320) That the linker didn't post the code of the program on this page, I tried to give him the following Directive:
"BL51 SAMOCVET_WORK.OBJ CODE (0 - 0x39FF, 0x3C00- 0x3DFE)"
Here is a link to a screenshot, where I was prescribed a Directive (I apologize for not figured out how to insert pictures on your forum):
community.silabs.com/.../original
As you can see on the screenshot, I use the development environment Simplicity Studio integrated with Keil tools.
After clicking "apply" I built the project and got the error:

/bin/sh: -c: line 0: syntax error near unexpected token '('
/bin/sh: -c: line 0: 'C51 SAMOCVET_WORK.OBJ CODE (0 - 0x39FF, 0x3C00 - 0x3DFE) "@src/F320_FlashPrimitives.__i" || test $? -lt 2'

Building file: ../src/F320_FlashPrimitives.c
Invoking: Keil 8051 Compiler
C51 SAMOCVET_WORK.OBJ CODE (0 - 0x39FF, 0x3C00 - 0x3DFE) "@src/F320_FlashPrimitives.__i" || test $? -lt 2
make: *** [src/F320_FlashPrimitives.OBJ] Error 2


Guessing that something went wrong, I removed the line written by me, and again clicked "apply", but the project continued to build with the error!
Starting to check the file "samocvet_work.m51", I'm at the end of the code is not found errors:

Program Size: data=111.1 xdata=603 code=10675
LINK/LOCATE RUN COMPLETE.  13 WARNING(S),  0 ERROR(S)


Memory code was marked unchanged: "CODE (0X0-0X3DFE)"
But in the file "subdir.mk" I found the following:

# Each subdirectory must supply rules for building sources it contributes
src/%.OBJ: ../src/%.c
        @echo 'Building file: $<'
        @echo 'Invoking: Keil 8051 Compiler'
        C51 SAMOCVET_WORK.OBJ CODE (0 - 0x39FF, 0x3C00 - 0x3DFE) "@$(patsubst %.OBJ,%.__i,$@)" || $(RC)
        @echo 'Finished building: $<'
        @echo ' '


In the end, I'm really confused and don't understand what's going on in my life. Please help to fix the project and is to partition the memory!
P. S. "Release" version is built without errors, and in her "subdir.mk" I did not find anything suspicious.
P. P. S. As you can see in the screenshot, in my project a few .c files, maybe this is also important to consider when marking code memory.

0