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

[Solved]Loading eeprom with some initial values
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Jun 01, 2014 3:48 pm     Reply with quote

Actually it does work. I tested it in vs. 5.026 and it works. But the OP
is likely using vs. 4.057, because it fails with that version (returns 0).
ckielstra warned the OP about using vs. 4.057 in this thread:
http://www.ccsinfo.com/forum/viewtopic.php?t=51586
That version is buggy.

Here are the results of running the following test program,
first with vs. 5.026 and then with vs. 4.057:
Quote:

add: 2100
add: 00


Code:
#include <16F886.h>
#fuses INTRC_IO, NOWDT
#use delay(clock=4M)
#use rs232(baud=9600, UART1, ERRORS)

//======================
void main()     
{
printf("add: %Lx\n",getenv("EEPROM_ADDRESS"));
   
while(1);           
}
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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