Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 345462

Summary: MSP430 Generic Platform linker command files should add " --args 0" by default
Product: [Technology] RTSC Reporter: Alan DeMars <ademars>
Component: TargetsAssignee: Sasha Slijepcevic <sascha>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P1    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: target:3.23

Description Alan DeMars CLA 2011-05-11 12:29:22 EDT
Build Identifier: gep-c03

In the absence of explicit placement of the .args section, the linker attempts to place it at location 0, which is the "SFR", a memory mapped MSP430 core register. This causes problems when CCS tries to load the application onto the device. A memory initialization error results.

Reproducible: Always
Comment 1 Sasha Slijepcevic CLA 2011-11-04 19:14:12 EDT
I added the code that sets argSize to 0, in ti.platforms.msp430.Platform.xs. The code runs before the user's script, so the user has a chance to overwrite it if needed.
Comment 2 Sasha Slijepcevic CLA 2011-11-04 19:14:35 EDT
The fix is in 3.23.00.26.
Comment 3 Alan DeMars CLA 2011-11-15 14:12:50 EST
Verify Pass

1) Using CCS and xdc tools 3.23.00.29, I built the SYS/BIOS msp430 stairstep example.

2) I then removed the explicit setting of the "Program.argSize = 0" from the config script, cleaned, and rebuilt the testcase.

3) I inspected the generated linker command file and observed the expected:

   "--args 0x0"
Comment 4 Dave Russo CLA 2011-11-24 13:10:27 EST
shipped in XDCtools 3.23 (http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/rtsc/3_23_00_32)