Microchip has recently done a major upgrade to their suite of tools. The compiler went to v2.0, the MAL to v2011-06-02, The GOL library to v3.0, and the Graphics Display Designer also upgraded to 2.1.0. Using the MikroElectronica Multimedia Board with these tools was a bit of a struggle as there is no hardware profile defined for this unit, and there is a bug in the display driver. Doing the following steps will allow you to use the Graphics Display Designer with the MMB and get good code that compiles and works.
Step 1: Download the zip attachment. Inside from the hardware profile HWP_MIKRO_MMB_PIC32MX4_16PMP_320x240TFT.h and a revised HX8347.c driver file.
Step 2: Move the HX8347.c file to the MAL folder
located at \Microchip Solutions v2011-06-02\Microchip\Graphics\Drivers
Use the same folder you installed the MAL at.
Take care you insert this to the correct folder.
Step 3: Move the HWP_MIKRO_MMB_PIC32MX4_16PMP_320x240TFT.h file to the MAL folder
located at \Microchip Solutions v2011-06-02\Microchip\Graphics\GDD\Default_Template\Configs
Use the same folder you installed the MAL at.
Take care you insert this to the correct folder.
Step 4: Open MPLAB, and begin a new empty project. This project MUST be directly under the \Microchip Solutions v2011-06-02 folder to be compatible with the Graphics Display Designer. Select Microchip PIC32 C-Compiler Toolsuite. Do not add any files at this time.
Step 5: On the menu select Tools | Graphics Display Designer. Now on the Graphics Display Designer tab select Help and follow the steps for Tutorial 1.
Step 6: When you get to the Selecting the Hardware Profile step comment out the #include file for the Explorer 16 board (shown as circled number 3 in help file) and add this line:
#include Configs/HWP_MIKRO_MMB_PIC32MX4_16PMP_320x240TFT.h
Step 7: Hit Build All.
Step 8: Enjoy Graphics Display Designer goodness.
Of course, you only need do steps 1-3 the first time. I would appreciate any feedback (it works, its broke, could you add ). The hardware profile does not cover many of the nifty items on this board as I have not tested any of them yet. Updates will follow unless you do them on your own.
Step 1: Download the zip attachment. Inside from the hardware profile HWP_MIKRO_MMB_PIC32MX4_16PMP_320x240TFT.h and a revised HX8347.c driver file.
Step 2: Move the HX8347.c file to the MAL folder
located at \Microchip Solutions v2011-06-02\Microchip\Graphics\Drivers
Use the same folder you installed the MAL at.
Take care you insert this to the correct folder.
Step 3: Move the HWP_MIKRO_MMB_PIC32MX4_16PMP_320x240TFT.h file to the MAL folder
located at \Microchip Solutions v2011-06-02\Microchip\Graphics\GDD\Default_Template\Configs
Use the same folder you installed the MAL at.
Take care you insert this to the correct folder.
Step 4: Open MPLAB, and begin a new empty project. This project MUST be directly under the \Microchip Solutions v2011-06-02 folder to be compatible with the Graphics Display Designer. Select Microchip PIC32 C-Compiler Toolsuite. Do not add any files at this time.
Step 5: On the menu select Tools | Graphics Display Designer. Now on the Graphics Display Designer tab select Help and follow the steps for Tutorial 1.
Step 6: When you get to the Selecting the Hardware Profile step comment out the #include file for the Explorer 16 board (shown as circled number 3 in help file) and add this line:
#include Configs/HWP_MIKRO_MMB_PIC32MX4_16PMP_320x240TFT.h
Step 7: Hit Build All.
Step 8: Enjoy Graphics Display Designer goodness.
Of course, you only need do steps 1-3 the first time. I would appreciate any feedback (it works, its broke, could you add ). The hardware profile does not cover many of the nifty items on this board as I have not tested any of them yet. Updates will follow unless you do them on your own.