Menu

Error Compilng Code for 18F2585

2008-05-15
2013-05-30
  • Nobody/Anonymous

    Error: GCASM: Duplicate, Conflicting Definition for F

     
    • Nobody/Anonymous

      Might be a hiccup with GCASM, as it compiles with MPASM.  Or maybe you have defined a constant, and then tried to manipulate it outside the context within which it was defined.  Ok, doesn't sound quite right but consider below:

      #define number 25 'This is a byte sized number
      ...
      ...
      ...
      If number.8 On Set LED ON 'Can't do that

      At any rate check your defines and how you use them.  Or are you using a single value that is defined as "F".  The GCBasic help file shttp://gcbasic.sourceforge.net/help/
      says you need to minimum 2 characters.

      Kent

       
    • Nobody/Anonymous

      Hi, thanks for the reply, but if you take any of the sample programs (Blinkled) for example, the error as above is reported. I will try using mpasmwin.exe and see if that helps. Program works OK if you use an 18F2550 though!

      Phil. 

       
    • Hugh Considine

      Hugh Considine - 2008-06-30

      There was a problem with the chip data file for the 18F2585. Here is a fixed replacement: http://gcbasic.sourceforge.net/newfiles/18f2585.dat

      The issue was that there were 2 definitions for F. I've removed the one for the F bit in the ECANCON register, as it already has another name (FIFOWM).

       

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.