Hi,
I'm getting the following errors on compiling my project:
I'm attaching the screenshot of my linker .cmd file below:
Kindly help me resolve this error.
Thanks,
Kiranjit
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I'm getting the following errors on compiling my project:
I'm attaching the screenshot of my linker .cmd file below:
Kindly help me resolve this error.
Thanks,
Kiranjit
Hi,
Do you know how big is your program? You can check the map file in the Debug directory. See below. I see you start the FLASH section at 0x84000. That is more than 0.5MB of space you are not reserving for your code. Why do you want to do that? If your code is more than 0.5MB then it will not fit between 0x84000 and 0x100000. One more comment is that you declare the FLASH memory as (RXW). You should change to (RX). See one of the TivaWare examples for reference.
Hi,
Do you know how big is your program? You can check the map file in the Debug directory. See below. I see you start the FLASH section at 0x84000. That is more than 0.5MB of space you are not reserving for your code. Why do you want to do that? If your code is more than 0.5MB then it will not fit between 0x84000 and 0x100000. One more comment is that you declare the FLASH memory as (RXW). You should change to (RX). See one of the TivaWare examples for reference.
I did the suggested changes. Following is my map file.
My updated linker.cmd file is:
The error now is:
Best Regards,
Kiran
Hi,
Can you try two things:
- Try to import an existing TI-RTOS example. It should work out of box. Use the .cmd file that is used by the example. The best approach to start a new project is to use an existing example as a starting point where all the system variables, .cmd and etc are already setup for you. I'm not sure where you got your initial .cmd file from. You will have a much easier time if you start from a working example.
- Or try the below .cmd file. This is an .cmd for one of the TI-RTOS examples.
/* * Copyright (c) 2016, Texas Instruments Incorporated * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * * Neither the name of Texas Instruments Incorporated nor the names of * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * ======== EK_TM4C1294XL.cmd ======== * Define the memory block start/length for the EK_TM4C1294XL M4 */ MEMORY { FLASH (RX) : origin = 0x00000000, length = 0x00100000 SRAM (RWX) : origin = 0x20000000, length = 0x00040000 } /* Section allocation in memory */ SECTIONS { .text : > FLASH .const : > FLASH .cinit : > FLASH .pinit : > FLASH .init_array : > FLASH .data : > SRAM .bss : > SRAM .sysmem : > SRAM .stack : > SRAM }