Name |
Description |
|
- USBTasks() has been removed.
- USBInitialize() has been removed.
|
|
USB Host users:
- Make sure you are returning FALSE at the end of the event handler for all unhandled cases. There are two new events added and by returning FALSE, they will operate just as v2.12 and previous revisions did.
USB HID Host users:
- USBHostHIDDeviceDetect() used to take in an address and return a bool if it was ready or not. Now the API doesn't take in any parameters and returns the address of an attached but previously unannounced device.
- Note: every address is only reported once. If you are using multiple HID applications (e.g. targeting both a mouse... more
|
|
- Add "<install directory>/framework/usb/inc" to project include path.
- Remove any "usb/" tags in the include files of any files in your project. For example: change from "<usb/usb.h>" to "<usb.h>".
|
|
Any application projects targeting a PIC16F145x device that is also using the HID bootloader should be modified to use the new bootloader firmware and updated application linker settings. The application "codeoffset" has been changed to 0x904, and the "ROM ranges" has changed to "default,-0-903". The new settings resolve a potential linking problem that could previously occur if the application interrupt handler code section grew too large and would attempt to overlap the locations reserved for the signature word and version word. |
|
In this release all type definitions were changed from GenericTypeDefs.h to the standard C99 types. The size and signedness of the variables remained the same. Applications that used the GenericTypeDefs.h file may need to port their types as well but it should not affect behavior at all. Below is a list of some of the most common usages and their transitions: |
|
No changes required.
However, if using the new HID bootloader features for PIC18 devices, you must rebuild both the bootloader firmware, and the application firmware project (using the updated vector remapping section from the main.c file of the application project). You must also use the updated HID bootloader firmware + application firmware with the updated HID bootloader cross platform software. |
|
No changes required. |
|
No changes required. |
|
No changes required. |
|
- hid_report_in and hid_report_out were removed from the stack. For HID based demos, the user buffers must be defined in user space. For certain product families that have specific USB RAM limitations, make sure that these buffers get located in that USB RAM space. Please refer to the existing HID demos to see how the hid_report_in and hid_report_out were moved to user space for those demos.
|
|
No changes required |
|
No changes required. |
|
No changes required. |
|
No changes required. |
|
No changes required. |
|
No changes required. |
|
- HID Bootloader for PIC32 devices
- An error was fixed in PIC32 bootloader. The previous implementations placed the interrupt vector table on a 1K-page aligned boundary. This table should be on a such a boundary. The user reset vector and the interrupt vector section addresses were switched to meet this requirement. Applications/bootloaders using the old reset vector will not work with applications/bootloaders using the new bootloader linker files.
|
|
- HID Bootloader for PIC32 devices
- The PIC32 bootloader was changed in this revision. The memory region used by the HID bootloader was reduced. This could result in issues loading application projects built with the new linker scripts on a system with the old bootloader. It could also result in issues loading an old application with the new bootloader.
|
|
No changes required. |
|
- 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... more
|
|
- 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... more
|