Other Parts Discussed in Thread: UNIFLASH
Tool/software: Linux
Hello,
Trying to upload my own .elf file into the TMS57012 board using the uniFlash Linux CLI tool but I get this error from the Linux shell:
DSLite version 8.1.0.1275
Configuring Debugger (may take a few minutes on first launch)...
Initializing Register Database...
Initializing: IcePick
Executing Startup Scripts: IcePick
Initializing: Dap
Executing Startup Scripts: Dap
Initializing: CortexR4
Executing Startup Scripts: CortexR4
Connecting...
CortexR4: GEL Output: Memory Map Setup for Flash @ Address 0x0Failed: Unable to open file: flash
The command I entered in the Linux shell is:
dslite.sh flash -c /home/saeed/Desktop/TMS57012_Kernel/TMS570LS12_Configuration.ccxml -e -f -v /home/saeed/Desktop/kernel.elf
When the endianess flag is set to -mlittle-endian and I try to upload my .efl file into the cloud-based uniflash tool (dev.ti.com/uniflash), the uniFlash tool throws a different error: Does not match the target endianness, not loaded. Check project build options and target configuration file (ccxml).
If I try to set the endianess flag to be -mbig-endian in the Makefile and then try make kernel.elf I get this error from Linux shell: arm-linux-gnueabi-ld: kernel.o: compiled for a big endian system and target is little endian
Right now, I'm trying to get myself started by uploading a very simple compiled code into the board. I am not using the TI ARM compiler, but I'm using the open source arm-linux-gnueabi-gcc compiler. I suspect the issue could be with the Makefile I've written so I've attached my Makefile, file.ccxml and the simple .C file I've mentioned (all files in a zip folder).
Update: Actually, it would be nice if I can get guidance on creating the Makefile for this simple program using arm-linux-gnueabi-gcc tool. The binary image I get when I compile does not seem to work because I think there is a problem with the CFLAGS, LDFLAGS, and the endianess. Also, I'm not sure if the uniFlash tool automatically provides the startup.asm for properly reading the bin image I upload into the board.