Author Topic: MPLAB tools for VS Code-Anyone using it?  (Read 3232 times)

0 Members and 1 Guest are viewing this topic.

Offline djsbTopic starter

  • Super Contributor
  • ***
  • Posts: 1126
  • Country: gb
MPLAB tools for VS Code-Anyone using it?
« on: December 24, 2025, 08:40:03 am »
I usually work with MPLABX and the CCS C compiler (with occasional use of XC8). I'm thinking of using MPLAB tools for VS Code with the XC8 compiler and pic-as assembler (versions 3.10) as well as xc-dsc (version 3.10). I use obsolete (but useful) ICD3 and pickit 4 programmers, and I'm not sure if these will work from within VS Code.
I'm going to try it myself with a simple XC8 Blink LED project. Has anyone else used this IDE and if so what are your experiences. Is the AI agent any good?
David
Hertfordshire, UK
Retired University Electronics Technician, London, PIC16/18, CCS PCM C, Arduino UNO, NANO,ESP32, KiCad V10+, Altium Designer 21.4.1, Alibre Design Expert 28 & FreeCAD beginner. LPKF S103,S62 Operator, Electronics instructor. Credited KiCad French to English translator.
 

Online fchk

  • Frequent Contributor
  • **
  • Posts: 428
  • Country: de
Re: MPLAB tools for VS Code-Anyone using it?
« Reply #1 on: December 24, 2025, 11:25:05 am »
The PICKIT4 will work, but ICD3 isn't supported anymore - both in MPLABX and the MPLAB Tools, which seems to use the most current tools support layer from MPLABX that includes MPLAB basic but drops everything with "3" (PICKIT3, ICD3).
 
The following users thanked this post: djsb

Offline Fire Doger

  • Frequent Contributor
  • **
  • Posts: 301
  • Country: gr
  • Stefanos
Re: MPLAB tools for VS Code-Anyone using it?
« Reply #2 on: December 24, 2025, 02:57:55 pm »
Many many people use VSCode for writing code.
In regards to AI, for line completion, comments, etc is amazing.
For generating whole functions probably bellow than average. Depends on the function ofc..
It can perfectly create a function that will calculate a CRC but it's all over the place when it has to take into consideration the context/state of the device...
It also has a lot of plugins that may help, like clang format, colorized brackets, colorized comments, TODO finder etc..

VSCode for debug, in my opinion, is atrocious...
I find it's windows extremely difficult to work with. I like to have a gazillion windows open during debug like live watch, expressions, breakpoints, flash, ram, etc.. like in eclipse, IAR, MPLAB

So my workflow is:
1. Edit code in VSCode (configure .h library paths to remove include errors)
2. Build and debug with whatever they used to create the project
3. Repeat
 
The following users thanked this post: djsb

Offline JPortici

  • Super Contributor
  • ***
  • Posts: 3923
  • Country: it
Re: MPLAB tools for VS Code-Anyone using it?
« Reply #3 on: December 25, 2025, 07:06:17 am »
I usually work with MPLABX and the CCS C compiler (with occasional use of XC8). I'm thinking of using MPLAB tools for VS Code with the XC8 compiler and pic-as assembler (versions 3.10) as well as xc-dsc (version 3.10). I use obsolete (but useful) ICD3 and pickit 4 programmers, and I'm not sure if these will work from within VS Code.
I'm going to try it myself with a simple XC8 Blink LED project. Has anyone else used this IDE and if so what are your experiences. Is the AI agent any good?

i do, since day one.
Now i tend to use it for all new projects.
3rd gen tools are not supported. 4th gen tools are, and they work so much better in VSCode it's unbeliveable.
Just remember to set up a new profile dedicated to MPLAB. It also works on VSCodium if you care about freeing yourself as much as possible from microsoft's telemetry
Also, update the compiler versions to the latest. They are better integrated.
There are a whole new sets of quircks, of course, but i made a (long) thread on the microchip's forums addressing those, and one member from the extensions team is very active in providing feedback and discussing changes.

If you go bare metal, the only thing you can't do yet is generating the configuration bits.

Re: "AI". The LLM is trained on MCC code, what do you expect? I refuse to use any of that stuff, but i've seen its output. It's bloated shit, and it likes to generate wrong comments. Stick to bare metal, trust me.
 
The following users thanked this post: djsb


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

- - -
-->