Changes between Version 8 and Version 9 of TBR/Review/Debugging/Start


Ignore:
Timestamp:
02/02/06 19:21:45 (16 years ago)
Author:
JoelSherrill
Comment:

Added first cut at file open fails.

Legend:

Unmodified
Added
Removed
Modified
  • TBR/Review/Debugging/Start

    v8 v9  
    166166
    167167GDB should find the source.
     168= Standard IO and File Issues =
     169
    168170= Newlib's Stdio Functions return -1/EOF =
    169171
    170172
    171173The stdio functions in newlib depend on both initialised and uninitialised data.  If you find they are returning -1, ensure your .bss and .data sections are correctly setup. Check your linkcmds file is creating the correct memory map and that your bsp boot process is copying/zeroing all appropriate sections in ram.  It's also worth double checking that your ram and other hardware is working correctly!
     174= open, fopen, and socket creation fail =
     175
     176
     177RTEMS has very tight default configuration limits.  Not being able to open a file or create a socket is a common error which indicates that you need to configure enough open file descriptors.  By default, the constant CONFIGURE_LIBIO_MAXIMUM_DESCRIPTORS is set to 3 for stdin, stdout, and stderr.  You will need to set it to the appropriate value for your application.