Please create a default bareboard project in CodeWarrior IDE from File->New->CodeWarrior Bareboard project wizards, in "Debug Target Settings" panel, please select "Download" Launch configuration.
Then modify "DDR Controller Setup" section in CodeWarrior initialization file t2081\t2081-core00\CFG\T2081QDS_init_core.tcl according to your custom board.
Then use CodeWarrior to download the project to the target board and run it.
If still no output on the UART port of your custom board, please refer to the following procedure to redirect output to a debugger console instead of UART to check whether there is output in CodeWarrior debugger console.
#-------------------------------------------------------------------------------------
CodeWarrior Debugger Console I/O
#-------------------------------------------------------------------------------------
Every project will print "Welcome to CodeWarrior from Core x - Thread y!" out of the common
serial port (DUART1). To view the output, connect a null-modem serial cable from
the serial port to your computer. Open a terminal program and set it up to match
these settings:
Baud Rate: 115200
Data Bits: 8
Parity: None
Stop Bits: 1
Flow Control: None
NOTES:
* To be able to debug into the UART library you need to do the following steps:
1. Create a stationary project using the UART option.
2. Build the project
3. Right click on the elf file and select properties.
4. On the "File Mappings" tab see the unmapped files, select them, and click the "Add" button.
5. Browse the local file system path according to the UART source files. Default located in
<CWInstallDir>\PA\PA_Support\Serial\T2081QDS_aeabi_32bit_serial\Source
(or T2081QDS_aeabi_64bit_serial, depending on your type of project)
Now you can debug into the UART source files.
* The UART libraries are compiled with a specific CCSRBAR address. For a different
value of the CCSRBAR you need to rebuild the UART library:
1. From your CW install directory, import the
<CWInstallDir>\PA\PA_Support\Serial\T2081QDS_aeabi_32bit_serial (or T2081QDS_aeabi_64bit_serial) project
2. Switch to the correspondent Build Target (eg DUARTA_UC_32bit).
Open duart_config.h file and change the value of the "MMR_BASE" accordingly
3. Re-build the project (and copy the output library in you project)
* The stationery projects use UART1 output by default. If you need to use UART2, please
check the corresponding UART library in the build target and uncheck the default one
(both UART1_T2081QDS.aeabi.UC.[32|64]bit.a and UART2_T2081QDS.aeabi.UC.[32|64]bit.a are included in the
project's Lib folder).
Also please make sure you have the correct library listed in the "Other objects" panel in the project's
Properties > C/C++ Build > Settings > Power AEABI e6500 Linker > Miscellaneous.
* If you want to redirect output to a debugger console instead of UART driver,
please follow above instruction to remove UART1_T2081QDS library from the project and instead use the libconsole.a
library from the project Lib Folder. Please make sure you have the correct library listed in the "Other objects" panel in the project's
Properties > C/C++ Build > Settings > Power Linux Linker > Miscellaneous (replace the UART library with "-lconsole")
Also please make sure you "Activate Support for System Services" in the "System Call Services" sub-tab
from the "Debugger" tab in the corresponding debug launch configuration.