Hi,
I am trying to run a simple Hello World! program in the e500 core of the PSC9131RDB. But the printf doesn't seem to work. Does PSC9131RDB require extra configurations to make console output work in Codewarrrior?
Regards,
Neena
The latest PSC9131RDB boards start up into U-Boot. If you have a serial terminal connected to the UART connector (J25), you should see the boot process occur. (Also, you can run a serial cable from J25 to your workstation's serial port and have a terminal program monitor the port.) The connection settings are: 115200 bps and flow control off. You can use this setup to confirm that the serial port is operating properly.
Are you running an application under Linux, (in which case the output should appear on the serial port) or are you running a bare-board application? For the bare-board case, you'll need a library linked in your code that accesses the serial port. I assume that this is the case because you mentioned printf(). You will have to check the library documentation on where the output from printf gets directed.
---Tom
Hi,
I got the output displayed in console itself by using <CWInstallDir>\PA\PA_Support\SystemCallSupport\Lib\syscall.a instead of the UART library. Now printf is working fine. But when it comes to file operations fopen is not working.
In <CWInstallDir>\PA\PA_Support\ewl\EWL_C\src\file_io.c functions fopen(), freopen() etc.will get defined only if _EWL_OS_DISK_FILE_SUPPORT is defined.
But function definitions of fclose(), fflush() are not dependent on the macro _EWL_OS_DISK_FILE_SUPPORT. Currently _EWL_OS_DISK_FILE_SUPPORT is having the value 0. In the Code Warrior Help, its given that
_EWL_OS_DISK_FILE_SUPPORT : Defined to 1 if the EWL platform supports disk file I/O. Defined to 0 if the EWL platform does not support disk file I/O.
Even though i tried #define EWL_OS_DISK_FILE_SUPPORT 1 it not seems to be working and i am still getting the same error for fopen :
" illegal implicit conversion from 'int' to 'struct _FILE * '"
Does it require any extra configurations to be done or libraries to be added to make fopen working?
Regards,
Neena