PDA

View Full Version : readcode on 16F737



joeri
- 28th July 2006, 16:25
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.

Melanie
- 28th July 2006, 20:01
It looks like that PIC does not support the READCODE/WRITECODE commands.

joeri
- 29th July 2006, 01:50
it does support it. man thanks to CL who helped me out

Melanie
- 29th July 2006, 07:13
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.

joeri
- 29th July 2006, 11:41
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.

mister_e
- 30th July 2006, 16:01
For the records: this problem doesn't seems to happen with PBP V2.47