AVR C Programming - Global Arrays
===

I'm trying to use a global array to store data that I know won't be greater than 255 bytes. But when I try to transmit my data using the array, nothing seems to transmit. What am I doing wrong?


    char responseFrame[255];
    
    int main {
    	...
    	while(1){
    		getData();
    	}
    
    };
    void getData(void) {
    	int responseLen = USART1_RX();
    	// put data in the response frame
    	for (int i = 0; i < responseLen; i++){
    		recv_data = USART1_RX();
    		responseFrame[i]=recv_data;
    		//USART0_TX(responseFrame[i]);
    	}
    	
    	LogOutput(responseFrame, responseLen);
    }
    
    void LogOutput(char *msg, int size) {
    
    	int i;
    	for (i = 0; i < size; i++) {
    		USART0_TX(msg[i]);
    	}
    }

However, when I comment the my logging function "LogOutput" and use a straight transmit using the line "USART0_TX(responseFrame[i])", it appropriately transmit the information.