-
readcode on 16F737
Hi,
I want to program a serial number with the melabs programmer and use it in my program.
Therefore, I added following code in my program;
adrs VAR BYTE
ReadCode $0FFF, adrs '
And this is what I get during compiling:
PicBasic Pro Compiler 2.46, (c) 1998, 2005 microEngineering Labs, Inc.
All Rights Reserved.
PM Assembler 4.07, Copyright (c) 1995, 2004 microEngineering Labs, Inc.
Error C:\PBP\PBPPIC14.LIB : [225] Undefined Symbol 'PMDATA'
Error C:\PBP\PBPPIC14.LIB : [212] Extra Tokens on End of Line Error C:\CODEDE~1\SWPBPC~1\SNDREN~1\RCVR73~4\RCVR_7~2.AS M : [225] Undefined Symbol 'PMADR'
Error C:\CODEDE~1\SWPBPC~1\SNDREN~1\RCVR73~4\RCVR_7~2.AS M : [225] Undefined Symbol 'PMADR'
Error C:\CODEDE~1\SWPBPC~1\SNDREN~1\RCVR73~4\RCVR_7~2.AS M : [225] Undefined Symbol 'PMADR'
Error C:\CODEDE~1\SWPBPC~1\SNDREN~1\RCVR73~4\RCVR_7~2.AS M : [225] Undefined Symbol 'PMADR'
Error C:\CODEDE~1\SWPBPC~1\SNDREN~1\RCVR73~4\RCVR_7~2.AS M : [225] Undefined Symbol 'PMADR'
*** 7 Errors ***
How does this come, and what can I do to make it work? Without the 2 lines of code I don't have any error.
-
It looks like that PIC does not support the READCODE/WRITECODE commands.
-
it does support it. man thanks to CL who helped me out
-
Congratulations on getting it to work. Why don't you post how you managed to do that here on the forum for everyone elses benefit? So that next time someone plays with your chip and has a similar problem we all have a canned solution.
-
because it was 3am and I needed to sleep (I live in Belgium) :)
The solution was that someone from Melabs sent me a file 'M16F7X7.INC' which I replaced, and now it compiles error-free.
-
For the records: this problem doesn't seems to happen with PBP V2.47