View previous topic :: View next topic |
Author |
Message |
macraj
Joined: 02 Jan 2006 Posts: 4 Location: Gliwice
|
Posted: Fri Feb 11, 2011 10:16 pm Post subject: Error 369 |
|
|
Hi,
I'm trying to get work AN #168 - Dallas DS2450 emulation with Tiny AVR
but I can't compile file because of strange error >> Error : 369 Line : 515 Name used by const or variable [MYROM] , in File : C:\Program Files\MCS Electronics\BASCOM-AVR\AN#168\Tiny_DS2450.bas<<
<< code ....
Dim Myrom(8) As Byte
...
...
...
End
Myrom: <- this is line 515
'Data &H20 , &H0D , &HCB , &H0A , 00 , 00 , 00 , &HEC
'Data &H81 , &H55 , &H22 , &H24 , 00 , 00 , 00 , &H6A
'Data &H20 , &HAC , &HC7 , &H0A , 00 , 00 , 00 , &HA6
'Data &H20 , &HA5 , &HC1 , &H0A , 00 , 00 , 00 , &HAC
Data &H81 , &H55 , &H22 , &H24 , 00 , 00 , 00 , &H6A
<< end off code
Can you help me a little ?
Regards
macraj |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Fri Feb 11, 2011 10:47 pm Post subject: |
|
|
you need to rename the label. Myrom was also used for a variable/constant. _________________ Mark |
|
Back to top |
|
|
macraj
Joined: 02 Jan 2006 Posts: 4 Location: Gliwice
|
Posted: Sun Feb 13, 2011 4:33 pm Post subject: Hi |
|
|
Thx for the answer.
Not works.
When I comment label Myrom, compiler said : Error label not found[MYROM] the same if change name of label.
Maybe it's something in project configuration. I have attached source file.
Can You try it ?
Regards
macraj |
|
Back to top |
|
|
macraj
Joined: 02 Jan 2006 Posts: 4 Location: Gliwice
|
Posted: Sun Feb 13, 2011 4:49 pm Post subject: Works |
|
|
I omitted "Restore Myrom" line. Changed to RomID and now works.
Sorry for confusion.
Regards
macraj |
|
Back to top |
|
|
sreaves
Joined: 11 Sep 2014 Posts: 4
|
Posted: Thu Sep 11, 2014 1:26 am Post subject: DS2450 for ATTiny45 that will compile |
|
|
Hello,
Would you please post the file that you got working? It seems that I do not understand completely the fixes that were proposed. I do not have a demo or samples folder or do not know where to find it. Thanks Sam |
|
Back to top |
|
|
|
|
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 You cannot attach files in this forum You cannot download files in this forum
|
|