Look at lines 12 and 39 in your program.
Look at lines 12 and 39 in your program.
DT
There is nothing of wrong or strange at those lines and the program is compiled without errors
I'm confused, I can't understand. This is not a new program, I use it since some years. The only difference is that I have recentrly upgrade to PBP3. I have never seen this errors before.
Please post the first 40 lines of your code.
DT
Guessing a former label that is now a reserved word. Look at page 301 of the manual.
Ioannis
These are the first lines of the code. I can't see any reserved word.
![]()
Please note that thought a syntax error is reported at line 11, the EEPROM at address ee_id is correctly programmed with "Bls1 8888 3.00"
Since I have upgraded to PBP3 I experience unespected resets of the board, never seen before.
Really other things are changed also, ICD2 to ICD3, the board has been a bit redesigned, the source code is a bit changed.
I'm investigating where could be the problem. Now is the turn of this strange "Syntax error".
Marco
All of your EEPROM statements are incorrect.
You would have to create each of the locations (ee_id, ee_numtel ,ee_numbc etc.) as constants before the EEPROM statements.
If you are expecting PBP to assign the locations to those labels, you would need to use the DATA statements instead.
I've typed in the first few lines from your image and get different errors.
I'm not sure why you are not getting the proper errors reported, but I'm guessing there are too many errors and the compiler gets confused.Code:... PICBASIC PRO(TM) Compiler 3.0.5.4, (c) 1998, 2012 microEngineering Labs, Inc. All Rights Reserved. C:\PIC\HIH6131_HUMID\HIH6131.PBP ERROR Line 11: Expected '['. C:\PIC\HIH6131_HUMID\HIH6131.PBP ERROR Line 11: Expected ']'. ERROR Line 11: Bad variable modifier: .00. WARNING Line 11: Bad token """.11: Syntax error 11: Syntax error BUILD FAILED: Tue May 01 08:10:03 2012
I'm not going to type them all, but if you want to send the files to [email protected] I can try to compile the whole thing and see if the errors change.
Or you can just rewrite the code to use DATA statements.
DT
yes Darrel, all of those are declared constant in another include file, ee_id CON 0 ee_numtel CON 20 etc.
the program is compiled and i see in eeprom what i wrote in the code.
tomorrow i'll send you the whole project so you can understand where the problem is
thanks
marco
Bookmarks