error


Closed Thread
Results 1 to 7 of 7

Thread: error

  1. #1

    Default error

    Greetings,

    I'm trying to make a blinking led program for a 10F206 pic.
    The program is just a learning step to see how this little pic works.

    I already made programs for many different pics without problems, but this one i get an error when compiling.

    I'm using microcode studio and the error i'm getting for this microcontroller is:

    ERROR Line 16: Redefiniton of LABEL TRISIO. (10f206.bas)
    ERROR Line 17: Redefiniton of LABEL GPIO. (10f206.bas)
    ERROR Line 21: Redefiniton of LABEL CMCON0. (10f206.bas)

    I get these errors even with just 2 lines of code like:

    TRISIO=%0000
    GPIO=0

    what do these errors mean ?

    Thanks

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,521


    Did you find this post helpful? Yes | No

    Default

    Code:
    TRISIO = %0000
    GPIO = 0
    
    Main:
    GPIO.0 = 1
    Pause 100
    GPIO.0 = 0
    Pause 100
    Goto Main
    Works here, with PBP2.60. I'm assembling with MPASM as I can't use PM on Win7.

    Have you selected the correct PIC in the drop-down list in MCS?

    /Henrik.

  3. #3
    Join Date
    Nov 2007
    Location
    West Covina, CA
    Posts
    219


    Did you find this post helpful? Yes | No

    Default Good here too

    Compiled good with PBP2.47 and MPASM using Henrik's sample.
    Louie

  4. #4


    Did you find this post helpful? Yes | No

    Default

    Greetings,

    Thanks for the help.

    I'm not being able to compile without these errors. Tryed MPASM and PM without success.

    With Henrik's sample i also get these:
    ERROR: RAM END must be defined.
    ERROR: RAM BANKS must be defined.

    I guess it's time to do some fomat c: :S

  5. #5
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by HenrikOlsson View Post
    Code:
    TRISIO = %0000
    GPIO = 0
    
    Main:
    GPIO.0 = 1
    Pause 100
    GPIO.0 = 0
    Pause 100
    Goto Main
    Works here, with PBP2.60. I'm assembling with MPASM as I can't use PM on Win7.

    /Henrik.
    Compiles fine for me too ver2.60, with MpSAM 5.06 and Vista 32bit

  6. #6
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Try changing the file name to something other than the chips part number.

    There is already a 10F206.bas file in the PBP folder that is loaded automatically during the compile.
    But instead it will find your source code again.

    hth,
    DT

  7. #7


    Did you find this post helpful? Yes | No

    Default

    Thanks guys for all the help,

    i've tryed everyting including your tips but i still get errors.

    I belive it's something related with the pc it self. I will have to re-install everything.

    Thanks again

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts