Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Configure QtCreator for (PIC) Microchip XC8/16/32 compilers

Configure QtCreator for (PIC) Microchip XC8/16/32 compilers

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 3.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T3STYT Offline
    T3STYT Offline
    T3STY
    wrote on last edited by
    #1

    I've been looking for guides on how to configure Microchip's XC8, XC16 and XC32 compilers with QtCreator or other IDEs, but I have found nothing; only MPLAB IDE related stuff. These compilers are used to compile Assembly code for Microchip's PIC devices. XC8 and XC16 only compile C code, while XC32 can compile C++ as well. I could read from the manuals that XC16 and XC32 use a gcc/g++ -like compiler, while XC8 seems to be a custom compiler.

    Next there is the download link to these compilers:
    "XC8/16/32 download page":http://www.microchip.com/pagehandler/en_us/devtools/mplabxc/
    And here are the links to their PDF manuals:
    "XC8":http://ww1.microchip.com/downloads/en/DeviceDoc/MPLAB_XC8_C_Compiler_User_Guide.pdf
    "XC16":http://ww1.microchip.com/downloads/en/DeviceDoc/50002071C.pdf
    "XC32":http://ww1.microchip.com/downloads/en/DeviceDoc/50001686G.pdf
    I think the interesting stuff is in chapter 5: Compiler Command Line Driver (chapter 4 for XC8)

    If anyone succeded in using these compilers in QtCreator, could you share the configuration process with me?
    Otherwise, can you help me configuring them? It will be quite hard to do because right now I have no project to test the compiler with... but maybe some simple "hello world" thing is going to work.

    1 Reply Last reply
    1
    • U Offline
      U Offline
      unsanded
      wrote on last edited by
      #2

      I know this is an old post, but i wanted to share what i know.
      Using XC... the compilers is not that hard. What i did was just "steal" the makefiles from the generated project in MPLAB, and modify them.

      What i had the most trouble with was getting the debugger working. To do this, you have to get qt-creator to accept the mdb.sh (or mdb.bat) as a debugger. I started writing a small script that acts as a proxy, and emulates gdb. haven't gotten to testing it yet.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved