Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

m128can error 377

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
Ghitab

Bascom Member



Joined: 25 Sep 2012
Posts: 10

PostPosted: Sat Apr 08, 2017 10:56 pm    Post subject: m128can error 377 Reply with quote

Hello. Need little help, I'm stuck with this error 377 : Unexpected non numeric characters found [PORTA.0] .

e(1)=&H20+index_mesaj
e(2)=&h00
e(3)=&H0e
e(4)=&H61
e(5)=&h02
e(6)=&h36 '/////error line
e(7)=&h00
e(Cool=&H00
Bok = Cansend(4 , e(1),Cool
Config Canmob = 4 , Bitlen = 11 , Idtag = &H0300 , Msgobject = Disabled , Msglen = 8'

If I change E(6) from hex 36 into decimal 54 , I have no error, but sometime I have error on other random line too.
I have this strange error only on this at90can128 mcu, most of the code I used on another project with atmega32m1 and there I had no issue.
Why error refer to PORTA.0?
Thank you.

(BASCOM-AVR version : 2.0.7.8 )
Back to top
View user's profile
bzijlstra

Bascom Ambassador



Joined: 30 Dec 2004
Posts: 1179
Location: Tilburg - Netherlands

netherlands.gif
PostPosted: Sat Apr 08, 2017 11:50 pm    Post subject: Check name of your aliases Reply with quote

You have to check the name of your aliases.
Newvar alias oldvar

If you check how a variable should look like check the help.

58 is not a valid variabele name and you aliased PORTA.0 to variable 58.

Could be that I am totally wrong but can not test it on my SmartPhone.

From the help:


Variable Names
A BASCOM variable name may contain up to 32 characters.
The characters allowed in a variable name are letters and numbers.
The first character in a variable name must be a letter.

Have fun
Ben Zijlstra
Back to top
View user's profile Visit poster's website
Ghitab

Bascom Member



Joined: 25 Sep 2012
Posts: 10

PostPosted: Sun Apr 09, 2017 8:22 pm    Post subject: Reply with quote

Thank you Ben.
You are right, I rename output 54 to other name and now works ok.
Best regards.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR 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