"Symbol TERMIO_PutChar in file C:\Program Files\Freescale\CodeWarrior for Microcontrollers V6.0\lib\hc08c\lib\ansii.lib is undefined"
So I have included termio.c file and terminal.c the program get comiled but I got run time error at location
Error: At location 0203 -
Error: Attempt to use invalid or uninitialized memory
I got this error when I tried to execute the line in Bold
"if TEST_TERM
    while (!(SCI.SCSR & 0x80)) {};    /* wait for output buffer empty */
    SCI.SCDR = ch;"
                   
byte ascbuf[20]; // Global array variable for string datavoid send_str(void){byte i = 0;while (ascbuf[i] > 0)TERMIO_SendChar(ascbuf[i++]);}
#include <hidef.h> /* for EnableInterrupts macro */#include "derivative.h" /* include peripheral declarations */#include <string.h>void sendSPI(char *,int);void delay1s(void);void main(void) {int y,rec_data,len;                   //y,rec_data,,lenchar name[8]="Vowelopal"; OSCSC = 0x20;       // Set bus speed to 12.8 MHZ  OSCTRIM = Optional; // this macro loads value at $FFC0 and store it in $0038.                // bus clock speed is 3.2MHz +- 5%  CONFIG1 = 0x01;     // disable the watch dog.    SPSCR = 0x03;                                    SPCR_SPE = 1;  SPCR_SPMSTR = 1;  SPCR_CPHA = 1;  len=strlen(name) ; while(1) {   sendSPI(name,len);  SPDR = 0xAA;    while(!SPSCR_SPRF);    delay1s();  y = SPSCR;  rec_data = SPDR;     }  }  void sendSPI(char *data,int le) {   char i = 0;  int rec_data;   for(i=0; i<(le-1); i++)     {      SPDR = *(data+i);      //na[i]=*(data+i);            while(!SPSCR_SPRF);          SPSCR = SPSCR;      rec_data = SPDR;      delay1s(); }   }void delay1s(void) {   unsigned int i;  int j;   for(j=0;j<10;j++)    {     for (i = 0; i <= 20899;i++);          // Delay of 100mS   }                                       // 15 cycles per delay value                                // 6 uS for a 2.5 MHz clock                                          // 6 uS * 167000 = 1000 mS = 1 sec } 
					
				
		
 CompilerGuru
		
			CompilerGuru
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		