Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

could also result in issues loading an old application with the new bootloader.
1.3.9.15 From v2.6a to v2.7
No changes required.
1.3.9.16 From v2.6 to v2.6a
1. HID Bootloader for PIC24F devices
The HID Bootloader for PIC24F has been reworked for the v2.6a release. The change involve how interrupt remapping
is handled and how applications relocate their code to make room for the bootloader. Applications built with the v2.6 or
earlier PIC24F compiler should continue using the v2.6 bootloader and support files. It is recommended for new
projects that new bootloader and support files should be used.
In previous revisions of the stack there was a “PIC24F HID Bootloader Remapping.s” file that was added to any
PIC24F project to relocate the application code out of the bootloader space. These files have been deprecated and
should not be used with the new revision of the bootloader. Instead there is a custom linker script
(boot_hid_p24fjxxxGBxxx.gld) file in the HID bootloader folder specifically designed for the application. These are
located in the “Application Files” folder in each of the respective bootloader folders. Copy this file from this folder into
the application folder and add it to the target project. All of the possible interrupts should already be remapped. To use
an interrupt, merely define the interrupt handler as you normally would if you weren’t using a bootloader.
The bootloader for PIC18 and PIC32 devices were not modified.
1.3.9.17 From v2.5 to v2.6
1. Include Files
The files that must be included into a project has changed from v2.5 to v2.6.
Version v2.5 of the MCHPFSUSB stack required multiple include files in order to work properly in device mode. The
usb_device.h, usb.h, usb_config.h, and class specific files (i.e. - “./usb/usb_function_msd.h”) had to be included in all
of the application files that accessed the USB stack as well as other common include files like the GenericTypeDefs.h
and Compiler.h files.
In MHCPFSUSB v2.6, only the usb.h file and the class specific files (i.e. - “./usb/usb_function_msd.h”) must be
included in the project. The usb_device.h and usb_config.h files should no longer be included in the application specific
files.
2. Include Search Paths and Build Directory Policy
The preferred include path list has changed since the initial v2.x release. MPLAB now support compiling projects with
respect to the project file instead of the source file. This is now the preferred method. With this modification the
required include paths are the following:
.
../Microchip/Include
If your project file located in a different format than the example projects, please add or remove the appropriate path
modifiers such that the include path indirectly points to the /Microchip/Include folder.
To change the build directory policy and set the include paths, go to the “Project->Build Options->Project” menu. On
the directories tab, select the include directories from the show directories drop down box.
3. Disabling Interrupt Handlers
In MCHPFSUSB v2.6, the interrupt handler routines are disabled through the usb_config.h file using the following
1.3 Release Notes MLA - USB Library Help Library Migration
34

e-Highlighter

Click to send permalink to address bar, or right-click to copy permalink.

Un-highlight all Un-highlight selectionu Highlight selectionh