Getting Started: Running the “External Memory Demo”
This demo project is created to run on supported Microchip Demo Boards and development hardware. Pre-generated hex files are available on the "Precompiled Hex” sub-directory found in the demo directory. These hex files are generated using the alternative hardware profiles found in the sub-directory named "Configs". Use the "Demo Compatibility Guide" when running pre-generated hex files appropriate for your hardware.
For proper demo execution, the external.hex file in "Resources” folder must be programmed into external flash memory installed on the selected hardware. Please refer to the Getting Started - Programming Memory on Graphics PICtail Daughter and Demo Boards.htm.
To create a new hex file containing data for fonts and bitmaps to be located in the external flash memory use “Graphics Resource Converter (grc.jar)” utility included in the Graphics Library. Together with the generated hex file, the utility will also create a C file containing structures for referencing the fonts and bitmaps in the hex file. This C file must be included in the project. Please refer to the help built in the utility for details in generating the hex files. In the application, the use of bitmap and fonts located in external memory can be enabled by defining USE_BITMAP_EXTERNAL and USE_FONT_EXTERNAL in the GraphicsConfig.h included in the application. Stored data in the external memory will be accessed using the ExternalMemoryCallback() function also defined in the application.
Setting up the External Memory Programming Mode
The following projects are set up to the following programming modes:
Project Name(*.mcp) |
Programming Mode |
External Memory Demo dsPIC |
UART |
External Memory Demo UART PIC24 |
UART |
External Memory Demo UART PIC32 |
UART |
External Memory Demo USB PIC24 |
USB |
External Memory Demo USB PIC32 |
USB |
To program the external memory:
For PIC24FJ256DA210 Development Board
1. Hold down MCLR and S2 switches on the board
2. Release MCLR while holding down S2. This will place the board on programming mode.
3. Send the hex data from the External Memory Programmer utility.
For Explorer 16 Board
1. Hold down MCLR and S6 switches on the board
2. Release MCLR while holding down S6. This will place the board on programming mode.
3. Send the hex data from the External Memory Programmer utility.
The Microchip name and logo, the Microchip logo, MPLAB, and PIC are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries.
PICDEM and PICTail are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries.
SD is a trademark of the SD Association in the U.S.A and other countries
Microsoft, Windows, Excel, and Windows Vista are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries.