element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Experts, Learning and Guidance
  • Technologies
  • More
Experts, Learning and Guidance
Ask an Expert Forum mplabx 6.20 is driving me crazy on fedora 41
  • Blog
  • Forum
  • Documents
  • Leaderboard
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Experts, Learning and Guidance to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 6 replies
  • Subscribers 315 subscribers
  • Views 162 views
  • Users 0 members are here
Related
See a helpful answer?

Be sure to click 'more' and select 'suggest as answer'!

If you're the thread creator, be sure to click 'more' then 'Verify as Answer'!

mplabx 6.20 is driving me crazy on fedora 41

madthescientist
madthescientist 4 days ago

I am trying to start a project using mplab 6.20, pickit 3 and pic16f877.

I am using C language. I have Pragmas set, i defined names for each pin and i could set which ones are inputs and outputs.

i did declare  3 int variables.

The problem i have is: once i get in the void main(void) {} stage, i can write a simple if{} routine assessing whether 2 variables are 0 or 1 and set the state of a the third one. However, if, instead of those variables i try the same with the pin names to read them or write on off  (0 or 1) to them i get inmediatly a spree of red marks in the left and error hints claming unrecognizing tokens. it only happens when invoking named pins as variables, not actual int variables.

I did other job last year using the same setup and a pic16f819 and after some learning curve it works.

May i be forgetting to set something up in the project to use named micro pins as variables?

  • Sign in to reply
  • Cancel
  • michaelkellett
    0 michaelkellett 4 days ago

    It's a bit hard to follow your description of the code.

    If you can condense the issue into one file then you could post that here and it would be easier to understand.

    If your code relies on libraries or special compiler features and header files then make sure you either post them too or explain where they can be found.

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • madthescientist
    0 madthescientist 4 days ago in reply to michaelkellett

    i gave names to pins like rb1, rb2, i did initialize it as inputs or outputs and i can not use that on an if, while or others as variables to be read or write into. if i try that, i get token errors. 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • michaelkellett
    0 michaelkellett 4 days ago in reply to madthescientist

    Sorry that doesn't work - I need to see the actual code.

    For example:

    I declare pins in C for the processor that I use like this:

    #define MY_NEW_PIN   (A, 15)      // defines a pin on bit 15 of port A

    Then I set the pin with

    PIN_SET(MY_NEW_PIN);

    PIN_SET is a macro.

    So when you say 

    madthescientist said:
    i gave names to pins like rb1, rb2

    I don't know how you "gave them names"

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • madthescientist
    0 madthescientist 4 days ago in reply to michaelkellett

    Ooh i see. Does exist any cheatsheet with all the available macros and their purposes? 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • michaelkellett
    0 michaelkellett 4 days ago in reply to madthescientist

    I'm not suggesting that your problem is macros - I can't tell unless you show me the actual code and the compiler's response to it.

    Microchip will certainly not control pins the same way that I do on a different processor.

    Have you read this:

    https://developerhelp.microchip.com/xwiki/bin/view/software-tools/mcc/gpio/

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • madthescientist
    0 madthescientist 2 days ago in reply to michaelkellett

    I think i had answer the wrong question: it looks like is a sort of a problem between mplabx and fedora, it looks like if you have it installed for long, while the system gets updated, it slowly starts developing errors. I am only now starting to be able to figure that.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube