problem with compiling program for pic18f252

Varun
2007-12-03
2013-03-12
  • Varun
    Varun
    2007-12-03

    i am using sdcc to compile a simple program for the pic18f2f2

    the program "servo.c" is as follows-

    #include <pic18fregs.h>

    void main(void)
    {
      unsigned char count;
     
      TRISA = 0;
      count = 0;
     
      while(1)
      {
        PORTA = count;
        count++;
      }
    }

    on giving the command -

    sdcc -mpic16 -p18f252 servo.c

    gives the following error -

    'gpasm' is not recognized as an internal or external command, operable program or batch file. Can anyone help me solve this problem?

     
    • Download and install gputils.