Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Error 369

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive
View previous topic :: View next topic  
Author Message
macraj

Bascom Member



Joined: 02 Jan 2006
Posts: 4
Location: Gliwice

poland.gif
PostPosted: Fri Feb 11, 2011 10:16 pm    Post subject: Error 369 Reply with quote

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
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5921
Location: Holland

blank.gif
PostPosted: Fri Feb 11, 2011 10:47 pm    Post subject: Reply with quote

you need to rename the label. Myrom was also used for a variable/constant.
_________________
Mark
Back to top
View user's profile Visit poster's website
macraj

Bascom Member



Joined: 02 Jan 2006
Posts: 4
Location: Gliwice

poland.gif
PostPosted: Sun Feb 13, 2011 4:33 pm    Post subject: Hi Reply with quote

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
View user's profile
macraj

Bascom Member



Joined: 02 Jan 2006
Posts: 4
Location: Gliwice

poland.gif
PostPosted: Sun Feb 13, 2011 4:49 pm    Post subject: Works Reply with quote

I omitted "Restore Myrom" line. Changed to RomID and now works.

Sorry for confusion.

Regards
macraj
Back to top
View user's profile
sreaves

Bascom Member



Joined: 11 Sep 2014
Posts: 4

blank.gif
PostPosted: Thu Sep 11, 2014 1:26 am    Post subject: DS2450 for ATTiny45 that will compile Reply with quote

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
View user's profile
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive All times are GMT + 1 Hour
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
You cannot attach files in this forum
You cannot download files in this forum