Olimex Support Forum

Microcontrollers => PIC => Topic started by: ScottSD on April 05, 2017, 10:26:59 PM

Title: PIC32-HMZ144 Harmony BSP
Post by: ScottSD on April 05, 2017, 10:26:59 PM
Hello,

I am new to the forum. I received an Olimex PIC32-HMZ144 from a display vendor with some experimental code on it. I've been able to write new display code and program the PIC32MZ on it, but noticed there is not a BSP (board support package) for this Olimex board listed in the Microchip Harmony Configurator.

What is the best way to create a Harmony config for the Olimex board without there being a BSP for it?

Any input you can offer is appreciated.
Title: Re: PIC32-HMZ144 Harmony BSP
Post by: kyrk.5 on April 07, 2017, 04:45:06 PM
I think your question can be split up in two questions:
- How it is possible to create a config for *any* given board in Harmony? => This question you should place on some Microchip forum. Or try to google topics like this
- Have anybody done this already for this olimex board => I guess with this question you are on the right place, but I fear the answer will be no. Mostly because I guess lot of embedded developers will use either self developed drivers or 3rd party purchased software, where also support is included. So there is no real need for Harmony. But who knows... Maybe somebody did it already...

Title: Re: PIC32-HMZ144 Harmony BSP
Post by: LubOlimex on April 12, 2017, 09:11:12 AM
Hello,

The official demo for PIC32-HMZ144 can be used with Harmony configurator already. Please download this archive: https://www.olimex.com/Products/PIC/Development/PIC32-HMZ144/resources/PIC32_HMZ144_demo.zip and read the text file inside that is called "README-FIRST.txt". The important parts are:

1. Use the same version of Harmony as we used (v1.06.01)

2. Place the project in a specific folder:

"
Microchip Harmony Configurator (MHC) requires all *.configs available in order to be initialized. But having all of them in the project would make the archive too big. So in the archive are left only the libraries that are necessary for rebuilding. So if you want to change the configurations from MHC you have to copy the project inside the Microchip harmony directory "..\apps\usb\device\" and then open the MHC from MPLABX.
"

Best regards,
Lub/OLIMEX

Title: Re: PIC32-HMZ144 Harmony BSP
Post by: tancioste on February 04, 2018, 03:21:11 PM
Hi All,
I've just received a brand new Olimex PIC32-HMZ board.
I'm using the latest harmony release (2_05_01) and I create a new BSP config.
I just want to share these files with you.
A good getting started page could be this post:
http://michaelwieckowski.com/creating-a-custom-board-support-package-bsp-for-harmony-2-04/
I create a ZIP file, inside it you will find:
 - A new "DS60001320.hconfig" to be used instead of the original one (C:\microchip\harmony\v2_05_01\bsp\config\DS60001320.hconfig)
 - A folder "pic32_hmz144". Just copy this folder in the BSP folder (C:\microchip\harmony\v2_05_01\bsp\)
Restart MPLAB IDe and you are done.

Download ZIP file:
https://mega.nz/#!qVoj0KKK!2MinP0q_tWuddKDHKaO5og73cKpC1lNzlhN4dxdd9KM (https://mega.nz/#!qVoj0KKK!2MinP0q_tWuddKDHKaO5og73cKpC1lNzlhN4dxdd9KM)

You'll find a new BSP board "Olimex pic32_hmz144". I also added the possbility to use (and autoconfig) the UEXT PINS. If you select "PINS Configurations for UEXT port" all the UEXT port PINS will be selected and configured automatically.
Now...anyone knows How Attach a file to this post? I can't find any attach option...


Stefano
Title: Re: PIC32-HMZ144 Harmony BSP
Post by: LubOlimex on February 05, 2018, 09:27:29 AM
Hey Stefano,

Thank you for the effort and the contribution.

Quote
Now...anyone knows How Attach a file to this post?

There is no such option in the forums. If you wish to share a file, you need to host it elsewhere and provide a link here.
Title: Re: PIC32-HMZ144 Harmony BSP
Post by: tancioste on February 07, 2018, 10:54:20 PM
Hey Stefano,

Thank you for the effort and the contribution.

Quote
Now...anyone knows How Attach a file to this post?

There is no such option in the forums. If you wish to share a file, you need to host it elsewhere and provide a link here.

Thank you, I've added the download link to my previus post.
https://mega.nz/#!qVoj0KKK!2MinP0q_tWuddKDHKaO5og73cKpC1lNzlhN4dxdd9KM (https://mega.nz/#!qVoj0KKK!2MinP0q_tWuddKDHKaO5og73cKpC1lNzlhN4dxdd9KM)