Other Parts Discussed in Thread: MSP-CGT,
Tool/software:
We usually develop using the IAR toolchain.
But for a side project, I want to use TI's MSP-CGT environment.
I've successfully downloaded the tools and now have a directory with a ./bin subdirectory full of executables, a ./include subdirectory full of headers, and a ./lib subdirectory that contains:
-rw-r--r-- 1 7440 Sep 23 2022 lib/libc.a
-rw-r--r-- 1 3597 Sep 23 2022 lib/lnk.cmd
-rw-r--r-- 1 3735 Sep 23 2022 lib/lnkx.cmd
-rw-r--r-- 1 3936 Sep 23 2022 lib/lnkxl.cmd
-rw-r--r-- 1 1720012 Sep 23 2022 lib/mklib
-rw-r--r-- 1 68839 Sep 23 2022 lib/mklib.c
-rwxr-xr-x 1 382064 Sep 23 2022 lib/mklib.exe
-rw-r--r-- 1 29387168 Sep 23 2022 lib/rts430_eabi.lib
-rw-r--r-- 1 29246898 Sep 23 2022 lib/rts430x_lc_rd_eabi.lib
-rw-r--r-- 1 29235266 Sep 23 2022 lib/rts430x_lc_sd_eabi.lib
drwxr-xr-x 1 0 Jan 28 14:45 lib/src
And with these, I've successfully compiled my hello.c “Hello World!” program and converted the elf image to a TI .txt file. But it's linked for some default MSP430 described by one of those three link.cmd files contained in the ./lib subdirectory.
Apparently, I need a linker command file (.cmd file) that describes the memory layout of my particular MSP430F5359. From whence do these linker command files come? Do I need to download another installer from somewhere?