Page 1 of 1

Using MCC for config

Posted: Mon May 04, 2020 1:34 pm
by W4GNS
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

Re: Using MCC for config

Posted: Mon May 04, 2020 3:08 pm
by Jerry Messina
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.

Re: Using MCC for config

Posted: Mon May 04, 2020 3:22 pm
by W4GNS
OK thanks Jerry did not find in in plugin menu but I did find it in the Swordfish tools folder

Re: Using MCC for config

Posted: Mon May 04, 2020 3:25 pm
by Jerry Messina
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.

Re: Using MCC for config

Posted: Mon May 04, 2020 3:32 pm
by Jerry Messina
I have a PPS tool too that I haven't posted yet, if that's of any interest.

Re: Using MCC for config

Posted: Mon May 04, 2020 3:44 pm
by W4GNS
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

Re: Using MCC for config

Posted: Mon May 04, 2020 4:02 pm
by Jerry Messina
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 5840 times
I need to do a write up and put it (and the modified app) on the wiki ...

Re: Using MCC for config

Posted: Fri May 08, 2020 10:38 am
by Coccoliso
:wink: VEEERY GOOOOOD

Re: Using MCC for config

Posted: Sat May 09, 2020 11:15 pm
by Jerry Messina
PPS Tools is available for download on the wiki.

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