Anobium - 2025-01-19

See https://ko-fi.com/post/Enhanced-GCBASIC-Support-for-MPLAB-X-v3-xx-C1C5198VPA


I am excited to announce that I have successfully implemented support for MPLAB-X v3.xx within GCBASIC.

This update allows GCBASIC to utilise the MPLAB PIC-AS compiler/linker to generate PIC HEX files.

However, I encountered a serious issue with the missing CFGMAP file from MPLAB v2.00, which contains all the default CONFIG settings. This omission is critical as it prevents GCBASIC from determining the default CONFIG for the chip. Restoring the CFGMAP file would be the optimal solution to ensure GCBASIC functions correctly with XC8 V3.00.

Despite this challenge, I have found an alternative CONFIG file located at C:\\Program Files\\Microchip\\X.YY\\pic\\dat\\cfgdata\\. I have updated GCBASIC to assume that each entry in the v3.xx .CFGDATA file represents the default CONFIG for each CONFIG bit. For example:

  • CSETTING:40:BOREN: Brown-out Reset Enable bit

  • CVALUE:40:ON,_BODEN_ON: BOR enabled (assuming this is the default)

  • CVALUE:0:OFF,_BODEN_OFF: BOR disabled

This change is transparent to GCBASIC users, who can simply switch from GCASM to PIC-AS in the GCSTUDIO Preferences Editor. GCBASIC will then examine the installed version of MPLAB and use the appropriate file.

I would like to express my frustration with Microchip for not reaching out to the Developer Community before making such changes. This has caused unnecessary complications and extra work for developers like myself.

Thank you for your continued support and understanding as we navigate these changes together.