On Tue, Jun 3, 2014 at 1:26 PM, DJ Delorie <d...@redhat.com> wrote:
>
>> Wait, a write() syscall made in the msp430 binary can show up on stdout of
>> the simulator?  How does that work?  Do I need to link in any special
>> function for that?
>
> The RH simulator (msp430-elf-run, not msp430-run) supports TI's "CIO"
> interface, at least for write(), which means the RH simulator can
> write to stdout (we use it for testing).  CIO supports a range of file
> I/O operations, but we only implemented write().
>
> The code in libgloss (part of newlib) has an implementation of CIO
> and write() that works with the simulator.

Somewhat off the specific topic but relevant to the feature: when I
last asked there was no public documentation on this CIO interface.
It communicates with something through an undocumented structure
__CIOBUF__TYPE___ but provides no information on what parameters are
expected for the dozen functions listed (of which two are
implemented).  Looking at the source, I guess it's probably related to
the more complete tic6x CIO implementation.

Will TI be providing sufficient documentation on the CIO API that the
msp430 implementation can be completed, thus making the system
interface usable in other frameworks?

I personally would wish that newlib prefer APIs that are not
proprietary.  My intent for my own msp430-elf projects is to implement
a msp430 libgloss approach that's much closer to what was done in the
arm target for libgloss.  If there's a chance that'd be adopted
upstream as an alternative to the CIO one, it'd motivate me to make
that a priority.

(FWIW: I now have official support for msp430-elf in BSP430, and lack
of a robust system interface is all that's stopping me from being able
to develop real applications in the new toolchain.)

Peter

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to