PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sun Jun 01, 2014 3:48 pm |
|
|
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:
| 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);
} |
|
|