CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Strange problem

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
fr3nsis



Joined: 13 May 2013
Posts: 10

View user's profile Send private message

Strange problem
PostPosted: Fri Apr 04, 2014 10:54 am     Reply with quote

why declaring this array program wont work ?

Code:

unsigned char rawData[264] = {
   0x17, 0x07, 0x01, 0x00, 0x23, 0x13, 0x28, 0x06, 0x10, 0x04, 0x09, 0x1F,
   0x13, 0x17, 0x08, 0x10, 0x14, 0x1D, 0x21, 0x22, 0x03, 0x23, 0x14, 0x19,
   0x1A, 0x0C, 0x03, 0x15, 0x05, 0x06, 0x1E, 0x19, 0x14, 0x27, 0x13, 0x07,
   0x08, 0x19, 0x03, 0x11, 0x04, 0x27, 0x27, 0x23, 0x26, 0x17, 0x12, 0x03,
   0x1D, 0x20, 0x0D, 0x1F, 0x1F, 0x09, 0x06, 0x1C, 0x18, 0x28, 0x1B, 0x14,
   0x20, 0x0E, 0x1A, 0x28, 0x00, 0x25, 0x1D, 0x07, 0x18, 0x10, 0x06, 0x26,
   0x27, 0x08, 0x14, 0x0C, 0x14, 0x24, 0x1A, 0x22, 0x12, 0x02, 0x22, 0x15,
   0x08, 0x08, 0x17, 0x1E, 0x0D, 0x12, 0x04, 0x01, 0x0D, 0x14, 0x21, 0x02,
   0x1C, 0x01, 0x21, 0x04, 0x07, 0x0C, 0x20, 0x15, 0x21, 0x24, 0x13, 0x01,
   0x0E, 0x1F, 0x10, 0x19, 0x17, 0x03, 0x11, 0x09, 0x1D, 0x06, 0x07, 0x04,
   0x1D, 0x03, 0x20, 0x24, 0x27, 0x18, 0x14, 0x24, 0x0D, 0x26, 0x0D, 0x1D,
   0x26, 0x07, 0x22, 0x12, 0x05, 0x0A, 0x14, 0x05, 0x09, 0x12, 0x02, 0x07,
   0x08, 0x03, 0x1B, 0x1D, 0x14, 0x27, 0x1E, 0x0F, 0x0C, 0x13, 0x05, 0x26,
   0x0E, 0x16, 0x1D, 0x11, 0x20, 0x27, 0x0D, 0x0C, 0x20, 0x11, 0x13, 0x09,
   0x01, 0x20, 0x0A, 0x1E, 0x05, 0x02, 0x20, 0x01, 0x15, 0x01, 0x1B, 0x0B,
   0x19, 0x28, 0x0C, 0x16, 0x0A, 0x12, 0x14, 0x03, 0x12, 0x0A, 0x08, 0x0F,
   0x04, 0x05, 0x13, 0x1F, 0x14, 0x21, 0x02, 0x1F, 0x0C, 0x04, 0x10, 0x03,
   0x16, 0x1D, 0x13, 0x19, 0x25, 0x17, 0x28, 0x23, 0x04, 0x28, 0x04, 0x25,
   0x12, 0x00, 0x0F, 0x0D, 0x1B, 0x15, 0x16, 0x0D, 0x12, 0x0A, 0x21, 0x15,
   0x1E, 0x19, 0x0B, 0x0A, 0x0D, 0x04, 0x19, 0x11, 0x0C, 0x12, 0x21, 0x06,
   0x22, 0x00, 0x21, 0x28, 0x20, 0x07, 0x1E, 0x02, 0x0D, 0x0F, 0x05, 0x1E,
   0x1F, 0x05, 0x00, 0x19, 0x06, 0x1D, 0x01, 0x1A, 0x04, 0x17, 0x02, 0x09
};



declaring like this
unsigned char rawData[264] = {0}
and fill it with random byte instead work fine

ccs 5.0.23
asmboy



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

PostPosted: Fri Apr 04, 2014 11:21 am     Reply with quote

what error is returned ?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Apr 04, 2014 12:16 pm     Reply with quote

What PIC are you using ? Always post your PIC.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group