Hello,
i'm working with F28335 and CCS v6.1. and i have problem with showing message on my screen. I can not use puts() or printf()
there is my code and screen.
**** Build of configuration Debug for project project1 ****
' '
'Building target: project1.out'
'Invoking: C2000 Linker'
"G:/ti/ccsv6/tools/compiler/ti-cgt-c2000_6.4.6/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -O4 --opt_for_speed=5 --preinclude="G:/ti/ccsv6/tools/compiler/ti-cgt-c6000_8.1.0/include/stdio.h" -g --diag_warning=225 --display_error_number --diag_wrap=off -z -m"project1.map" --stack_size=0x400 --warn_sections -i"G:/ti/ccsv6/tools/compiler/ti-cgt-c2000_6.4.6/lib" -i"G:/ti/ccsv6/tools/compiler/ti-cgt-c2000_6.4.6/include" --reread_libs --display_error_number --diag_wrap=off --xml_link_info="project1_linkInfo.xml" --rom_model -o "project1.out" "./DSP2833x_ADC_cal.obj" "./DSP2833x_CodeStartBranch.obj" "./DSP2833x_DefaultIsr.obj" "./DSP2833x_EQep.obj" "./DSP2833x_GlobalVariableDefs.obj" "./DSP2833x_Gpio.obj" "./DSP2833x_PieCtrl.obj" "./DSP2833x_PieVect.obj" "./DSP2833x_SysCtrl.obj" "./DSP2833x_usDelay.obj" "./main.obj" "../28335_RAM_lnk.cmd" "../DSP2833x_Headers_nonBIOS.cmd" -l"libc.a"
<Linking>
warning #10247-D: creating output section ".cio" without a SECTIONS specification
warning #10210-D: creating ".esysmem" section with default size of 0x400; use the -heap option to change the default size
"../28335_RAM_lnk.cmd", line 130: error #10099-D: program will not fit into available memory. run placement with alignment/blocking fails for section ".stack" size 0x400 page 1. Available memory ranges:
>> Compilation failure
RAMM1 size: 0x400 unused: 0x0 max hole: 0x0
error #10010: errors encountered during linking; "project1.out" not built
gmake: *** [project1.out] Error 1
gmake: Target `all' not remade because of errors.
**** Build Finished ****
#include "DSP2833x_Device.h"
#include "DSP2833x_Examples.h"
#include <stdio.h>
void delay_loop(void);
//void prin(void);
void main(void)
{
InitSysCtrl();
EALLOW;
GpioCtrlRegs.GPCPUD.bit.GPIO87=0;
GpioCtrlRegs.GPCPUD.bit.GPIO86=1;
GpioCtrlRegs.GPCMUX2.bit.GPIO87=0;
GpioCtrlRegs.GPCDIR.bit.GPIO87=1;
EDIS;
puts("fd");
while(1)
{
if (GpioDataRegs.GPCDAT.bit.GPIO86==1)
{GpioDataRegs.GPCSET.bit.GPIO87=1;
}
else GpioDataRegs.GPCCLEAR.bit.GPIO87=1;
}
}
void delay_loop(void)
{
volatile long i;
for (i=0; i<1000000; ) {i=i+2;}
}