Menu

asm errors when compile

2009-03-29
2013-05-30
  • Nobody/Anonymous

    i get errors saying the processor type is undefined when i compile this:

    #chip 10F220, 8 'mhz
    #config MCLRE=off, WDT=off

    'Main routine
    Start:
    set GPIO.1 on
    wait 35 ms
    wait 255 us
    wait 255 us
    wait 204 us
    set gpio.1 off
    wait 35 ms
    wait 255 us
    wait 255 us
    wait 204 us
    goto start

     
    • Nobody/Anonymous

      That is an error on the assembler side, not the compiler.

      I have the same error in other compilers when assembling with gputils, looks like 10F220 is not supported by gputils, perhaps Mpasm works for this Pic, but i have no idea.

      Is possible that newer versions of gputils support this Pic, see this:
      _____________________________________________________________________

      Recent NEWS

      March 13, 2009 -- gputils-0.13.7 Released

      Added support for all processors supported by MPLAB 8.20 (except eeprom16 and related).
      Added support for "LIST M=?" directive.
      Fixed several bugs.

      Source: http://gputils.sourceforge.net/
      _____________________________________________________________________

       
    • kent_twt4

      kent_twt4 - 2009-04-03

      Indeed, GCBasic/MPASM works with the 10fXXX series.  At least as far as blinking an LED on and off.  You will find it necessary to set the port dir on the baseline devices, like; dir GPIO b'001000' for an all digital output configuration.

      Glad to see GPUTILS expanding their device selection.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.