Using MCC for config

Discuss PIC and electronic related things

Moderators: David Barker, Jerry Messina

Post Reply
W4GNS
Registered User
Registered User
Posts: 29
Joined: Wed Nov 03, 2010 7:18 pm
Location: Occupied South (Virginia)

Using MCC for config

Post by W4GNS » Mon May 04, 2020 1:34 pm

If I use MCC to generate config for Swordfish do I need to add the following also? I assume the answer is yes, but rather not add if not necessary

/**
@Generated PIC10 / PIC12 / PIC16 / PIC18 MCUs Source File

@Company:
Microchip Technology Inc.

@File Name:
mcc.c

@Summary:
This is the device_config.c file generated using PIC10 / PIC12 / PIC16 / PIC18 MCUs

@Description:
This header file provides implementations for driver APIs for all modules selected in the GUI.
Generation Information :
Product Revision : PIC10 / PIC12 / PIC16 / PIC18 MCUs - 1.81.0
Device : PIC18F27Q43
Driver Version : 2.00
The generated drivers are tested against the following:
Compiler : XC8 2.10 and above or later
MPLAB : MPLAB X 5.35
*/

/*
(c) 2018 Microchip Technology Inc. and its subsidiaries.

Subject to your compliance with these terms, you may use Microchip software and any
derivatives exclusively with Microchip products. It is your responsibility to comply with third party
license terms applicable to your use of third party software (including open source software) that
may accompany Microchip software.

THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES, WHETHER
EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE, INCLUDING ANY
IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS
FOR A PARTICULAR PURPOSE.

IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE,
INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY KIND
WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF MICROCHIP
HAS BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE FORESEEABLE. TO
THE FULLEST EXTENT ALLOWED BY LAW, MICROCHIP'S TOTAL LIABILITY ON ALL
CLAIMS IN ANY WAY RELATED TO THIS SOFTWARE WILL NOT EXCEED THE AMOUNT
OF FEES, IF ANY, THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FOR THIS
SOFTWARE.
*/

// Configuration bits: selected in the GUI
Gary W4GNS

Jerry Messina
Swordfish Developer
Posts: 1469
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

Re: Using MCC for config

Post by Jerry Messina » Mon May 04, 2020 3:08 pm

If all you're using MCC for is to generate the CONFIG settings, there should be a copy of the ConfigGenerator utility in the Tools folder which you can add to the IDE. See the file 'AddingPluginsAndExectuablesToTheIDE.txt' in Tools for how to do that if you're unsure.

You can use the 'ChangeFolder' button to point it to the swordfish\bin folder. Click 'LoadFile' and you should be good to go.

I guess I should add it automatically to the IDE... something else for the todo list.

W4GNS
Registered User
Registered User
Posts: 29
Joined: Wed Nov 03, 2010 7:18 pm
Location: Occupied South (Virginia)

Re: Using MCC for config

Post by W4GNS » Mon May 04, 2020 3:22 pm

OK thanks Jerry did not find in in plugin menu but I did find it in the Swordfish tools folder
Gary W4GNS

Jerry Messina
Swordfish Developer
Posts: 1469
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

Re: Using MCC for config

Post by Jerry Messina » Mon May 04, 2020 3:25 pm

You caught me in mid-edit. I thought I had already added it to the IDE plugin menu, but looks like I never got to it.

You can run the tool standalone from the Tools folder or add it to the IDE.

Jerry Messina
Swordfish Developer
Posts: 1469
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

Re: Using MCC for config

Post by Jerry Messina » Mon May 04, 2020 3:32 pm

I have a PPS tool too that I haven't posted yet, if that's of any interest.

W4GNS
Registered User
Registered User
Posts: 29
Joined: Wed Nov 03, 2010 7:18 pm
Location: Occupied South (Virginia)

Re: Using MCC for config

Post by W4GNS » Mon May 04, 2020 3:44 pm

Jerry Messina wrote:
Mon May 04, 2020 3:32 pm
I have a PPS tool too that I haven't posted yet, if that's of any interest.
It will be to me! Should have a 18F27Q43 in a couple days and will be playing around with it. Though I don't expect to break any speed records working with it, I have yet to dwell into the data sheet deeply yet
Gary W4GNS

Jerry Messina
Swordfish Developer
Posts: 1469
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

Re: Using MCC for config

Post by Jerry Messina » Mon May 04, 2020 4:02 pm

It's a port I did for Swordfish based on the PPS tool from https://sourceforge.net/projects/pps-tool/ so most of the credit goes to petereverett.
It only works with devices that are part of mplabx MCC (so newer chips only) but that includes the Q43.

It's a bit of cut-and-paste in its current form but it has most of the important info you'll need to include

Clipboard02.jpg
Clipboard02.jpg (55.28 KiB) Viewed 5491 times
I need to do a write up and put it (and the modified app) on the wiki ...

User avatar
Coccoliso
Posts: 152
Joined: Mon Feb 17, 2014 10:34 am

Re: Using MCC for config

Post by Coccoliso » Fri May 08, 2020 10:38 am

:wink: VEEERY GOOOOOD

Jerry Messina
Swordfish Developer
Posts: 1469
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

Re: Using MCC for config

Post by Jerry Messina » Sat May 09, 2020 11:15 pm

PPS Tools is available for download on the wiki.

http://www.sfcompiler.co.uk/wiki/pmwiki ... er.PPSTool

Post Reply