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

Bug 313779

Summary: LoggerBuf ROV view problem on MSP430
Product: [Technology] RTSC Reporter: Chris McCormick <c-mccormick>
Component: RtaAssignee: Chris McCormick <c-mccormick>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: d-russo
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Chris McCormick CLA 2010-05-20 13:19:32 EDT
The LoggerBuf ROV view was not properly displaying target strings that were part of event messages on the MSP430.

The xdc.rta.Formatter will look up strings at the address specified as an argument to a format string. If the argument has a negative value, the Formatter attempts to convert this to unsigned in order to treat it as an address. To do this, it was adding 2^32 to the value. This is the incorrect value to add for the MSP430 where the args and pointers are only 16-bits.

The Formatter needs to be initialized with the target size of an argument so that it can know what value to add to any negative numbers to make them unsigned.
Comment 1 Chris McCormick CLA 2010-08-24 17:24:42 EDT
Fixed in xdc-v34. The xdc.rta.Formatter now uses the target arg size when converting negative values to addresses.
Comment 2 Dave Russo CLA 2011-11-09 18:55:48 EST
closing "ancient" resolved bugs