10.07.2015 Views

AN1388 – PIC32 Bootloader - Microchip

AN1388 – PIC32 Bootloader - Microchip

AN1388 – PIC32 Bootloader - Microchip

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>AN1388</strong>APPENDIX D:BOOTLOADERCONFIGURATIONSThe bootloader code provides a few macros forconfiguring the settings while compiling. Table 5through Table 8 list these macros and their usage.Depending on user requirements, the values in thesemacros may need to be changed.TABLE 5: GENERAL MACROSMacroAPP_FLASH_BASE_ADDRESSAPP_FLASH_END_ADDRESSUSER_APP_RESET_ADDRESSMAJOR_VERSIONMINOR_VERSIONUsageBase address of the program Flash reserved for the user application. Theaddress value must point to the beginning of a 4K Flash page.End address of the program Flash reserved for the user application. Theaddress value must point to the end of a 4K Flash page.Address of user Reset vector. The bootloader branches to this addresswhen it must run the user application.Major version of the bootloader firmware.Minor version of the bootloader firmware.TABLE 6:TABLE 7:TABLE 8:UART BOOTLOADER MACROMacroDEFAULT_BAUDRATEUSB_VENDOR_IDUSB_PRODUCT_IDSets the UART baud rate.USB HID BOOTLOADER MACROSMacroETHERNET BOOTLOADER MACROSMacroMY_DEFAULT_MAC_BYTE1MY_DEFAULT_MAC_BYTE2MY_DEFAULT_MAC_BYTE3MY_DEFAULT_MAC_BYTE4MY_DEFAULT_IP_ADDR_BYTE1MY_DEFAULT_IP_ADDR_BYTE2MY_DEFAULT_IP_ADDR_BYTE3MY_DEFAULT_IP_ADDR_BYTE4Sets the vendor ID.Sets the product ID.Sets the MAC address.Sets the IP address.UsageUsageUsageDS01388B-page 14© 2011-2012 <strong>Microchip</strong> Technology Inc.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!