Other Parts Discussed in Thread: TRF7960A, MSP430F2370
I have the TRF7960A EVM (actually 2, one I reserve for reference and the other's what I'm testing with). I am trying to compile what I perceive to be the source code running on said EVM (SLOC251) so I can verify that I can make changes from a known starting point. This is not going well. The code I compile (using CCS 6.2.0.00048 - a free version) does not reflect the behavior seen that comes stock in the EVM. As a matter of fact, when I download the compiled code into the EVM, it (in effect) no longer works (it doesn’t see any of the example tags supplied with the EVM, whereas before it did). It does seem to run though, i.e. I can JTAG in and step through the code, watch the power on LED state change, etc. OTOH, I notice that one of the global variables gets corrupted on function calls. Once this happens, I use MSPFLasher to grab the image off the “reference” EVM and download said image into the “victim” EVM and everything starts working again on the victim. I’m using a MSP430USB debug dongle (MSP-FET430UIF).
There appear to be two source code repositories out on the TI website: sloc251.zip (newer) and sloc203.zip (older). I’m trying to get this working with the newer code as it appears to be more aligned with the EVM(s) that I have.
Comparing the image that I generate with CCS against what I pull out of the reference EVM, shows the images to be very different. On the CCS side, under the properties::general page, I have the family set to MSP430, the variant set to MSP430F2370 (as stamped on the EVM 430 chip). The output is legacy COFF. The compiler version is TI v3.3.1 (TI v15.12.3.LTS).
During the compile, I get a snot-a-gram (warning) about the compiler version that is not currently installed and it defaults to the compiler that is in ()’s above.
During link, I get a couple of warnings about the linker command file having no sections of type “VECT_INIT” and what it does to deal with this. I also get a warning about creating an output section with no SECTIONS spec’d. The console window suggests this is due to the linker command file being out of date. However, this is the linker command file that is packaged with the source code.
So,
1) Is sloc251 the latest and greatest source code for the EVM?
2) What’s the story on the linker warnings? Is this related to #1?
3) Any other insights into what’s going on? E.g. compiler settings?
Let me know if you’d be so kind.
-Chris