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.
When I build this asm code I am gettting following warning-
CODE:
.def _main
.data
In
.int 1,2,3,4,5
Ot
.usect "b array",5*4
.text
_main:
MVK In,A4
MVKH In,A4
mvk Ot,a6
mvkh Ot,a6
MVK 6,B0
repeat:
LDW *A4++,a2
stw a2,*a6++
SUB B0,1,B0
[B0] B repeat
warning: creating output section "b array" without a SECTIONS specification
how do I correct this error?
When I do run the code, my memory locations are updated, but I am getting this error-
TMS320C6713: Error: Memory Map Error: READ access by CPU to address 0x40000, which is RESERVED in Hardware.
I want to know how do I correct these error?
Any guidance would be of great help.
Thanks in Advance
Gajendra,
Do you have a linker command file (.cmd) included in your project? It is always advisable to have a linker command file which specifies the available memory regions on your target hardware and allocates the different compiler generated sections to specific regions of memory. In this case, you would need to add an allocation for "b array" to the linker command file so it gets placed at a specific memory region. Without it the linker will perform a default allocation, which may or may not be to memory that is accessible.
Hello,
Gajendra Kanjikar said:warning: creating output section "b array" without a SECTIONS specification
Sounds like you are building without a linker command file that specifies the memory ranges and sections for your program.
Gajendra Kanjikar said:TMS320C6713: Error: Memory Map Error: READ access by CPU to address 0x40000, which is RESERVED in Hardware.
Because you built without a linker command file, the linker allocated your code in to default locations. That default location is not valid memory to load your program on for your target.
The best way to resolve all the error/warnings is to use a linker command file. There is a sample one posted for C6713 in the below url:
http://processors.wiki.ti.com/index.php/Linker_CMD_Files_for_CCS#C6000 (look under C6000 and select the one for C6713)
if you truly want to understand how linker command files work (so you can create your own), take a look at section 7.5 of:
http://www.ti.com/lit/ug/spru186v/spru186v.pdf
Thanks
ki