Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 345462 - MSP430 Generic Platform linker command files should add " --args 0" by default
Summary: MSP430 Generic Platform linker command files should add " --args 0" by default
Status: CLOSED FIXED
Alias: None
Product: RTSC
Classification: Technology
Component: Targets (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P1 major (vote)
Target Milestone: ---   Edit
Assignee: Sasha Slijepcevic CLA
QA Contact:
URL:
Whiteboard: target:3.23
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-11 12:29 EDT by Alan DeMars CLA
Modified: 2011-11-24 13:10 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)