Other Parts Discussed in Thread: MSP430F5438A
I'm working with an MSP430 but this question is probably relevant to many platforms. I'm wondering if there is any TI or 3rd party source code that implements the host-side of the C I/O functionality (obviously binary code is embedded in CCS). Seems that C I/O boils down to writemsg()'s and readmsg()'s between the host and target, with higher level code interpreting the messages. Higher level target code is available in the runtime library tree, but I haven't found source code for the host side. Ideally I just want to alter readmsg() and writemsg() (as I have my own transport mechanism) and plug that into source code on either side.
Thanks,
Dan
P.S.
Unrelated minor matter, but it seems that the default data memory model is small, not restricred, for the MSP430X, contrary to the documentation. See below where the same RTS selection is made for the default and explicitly defined cases.
DEFAULT:
"C:/software/TI_CCS/ccsv4/tools/compiler/msp430/bin/cl430" -vmspx -g -O0 --define=__MSP430F5438A__ --diag_warning=225 --issue_remarks --silicon_errata=CPU22 --silicon_errata=CPU21 --silicon_errata=CPU23 --silicon_errata=CPU40 --printf_support=minimal -z -m"hello_memory.map" --stack_size=160 --heap_size=160 --use_hw_mpy=F5 --warn_sections -i"C:/software/TI_CCS/ccsv4/msp430/include" -i"C:/software/TI_CCS/ccsv4/tools/compiler/msp430/lib" -i"C:/software/TI_CCS/ccsv4/tools/compiler/msp430/include" --reread_libs --rom_model -o "hello_memory.out" "./hello.obj" -l"libc.a" "../lnk_msp430f5438a.cmd"
<Linking> remark: automatic RTS selection: linking in "rts430x.lib" in place of index library "libc.a"
EXPLICITLY SET: large code, small data
"C:/software/TI_CCS/ccsv4/tools/compiler/msp430/bin/cl430" -vmspx -g -O0 --define=__MSP430F5438A__ --diag_warning=225 --issue_remarks --code_model=large --data_model=small --silicon_errata=CPU22 --silicon_errata=CPU21 --silicon_errata=CPU23 --silicon_errata=CPU40 --printf_support=minimal -z -m"hello_memory.map" --stack_size=160 --heap_size=160 --use_hw_mpy=F5 --warn_sections -i"C:/software/TI_CCS/ccsv4/msp430/include" -i"C:/software/TI_CCS/ccsv4/tools/compiler/msp430/lib" -i"C:/software/TI_CCS/ccsv4/tools/compiler/msp430/include" --reread_libs --rom_model -o "hello_memory.out" "./hello.obj" -l"libc.a" "../lnk_msp430f5438a.cmd"
<Linking> remark: automatic RTS selection: linking in "rts430x.lib" in place of index library "libc.a"