Freescale MAC7111LCEVB Board Support Package
This package contains project templates, system files and example programs for the Freescale MAC7111LCEVB.
CrossWorks Version 1 Installation Instructions
- To install this support package
- Download the file Freescale_MAC7111LCEVB.hzq using your web browser.
- Click the Tools > Install Package menu option.
- Select the file you have just downloaded to install the package.
- To install this support package using other versions
- Standard loader is now RPC rather than DCC.
- Initial Release.
Using the MAC7111LCEVB Board Support Package
To create a new MAC7111LCEVB project
- Select the File > New > New Project menu item.
- Select Freescale from the Project Type list.
- Select the required project template type from the Templates list.
- Set the required project name and location directory.
- Click OK.
CrossStudio for ARM supports the MAC7111LCEVB running applications running in both Single-Chip and Expanded mode.
To build and debug an application
- Select the project to work on by using the Project > Set Active Project menu option.
- Select the configuration you require by using the Build > Set Active Build Configuration menu option.
- Build the project by using the Build > Build Project menu option.
- Connect to the appropriate target in the target window.
- Download and start debugging the current project by using Debug > Start Debugging.
If, during downloading, you see the error message Memory erase operation failed: no driver installed for memory range then it is likely that you have selected an Expanded mode configuration with the MAC7100 configured for Single-Chip operation or vice versa. Please ensure that you have selected the build configuration (Expanded or Single-Chip) that matches the operating mode of the MAC7100 (see below).
The following sections describe the MAC7111LCEVB support in more detail.
Both Single-Chip and Expanded modes are supported. Please configure your board for the correct mode using the DIP switches and jumpers before downloading any application to the board.
For Single Chip Mode programming you must remove the FLASH-EN jumper and move the MODB switch to the OFF position. The memory map for Single-Chip mode is:
|Internal Program FLASH
Warning: Note that the MAC7100EVB User Manual specifically states that the external bus cannot be used in single-chip mode.
For Expanded Mode programming you must insert the FLASH-EN jumper on J5, insert the FLASH write enable jumper on J14, and move the MODB switch to the ON position. Note that J14 is not populated on the board as delivered by Freescale.
The Freescale MAC7111LCEVB Users Manual (Revision 1.1, October 2004) schematics indicate that the board is delivered with an Am29F200B device fitted. However, in our experience the production board has an Am29F400BB device fitted. This device is pin-compatible with the Am29F200B but has twice the memory. The MAC7111LCEVB loader will support loading to a board with either an Am29F200B or Am29F400BB device fitted. If your board is populated with any other device, you will need to modify the loader appropriately.
The memory map for Expanded mode is:
|External AM29F160DB-70 FLASH, 4 wait states on CS0
|External CY7C1021B-12 SRAM, 0 wait states on CS1
|SMSC LAN91C111, 0 wait states on CS2
Target Startup Code
The default startup code is in $(StudioDir)/targets/Freescale_MAC7100/MAC7100_Startup.s. It contains the exception vectors and the default exception handlers for operating in Normal Single-Chip mode and Normal Expanded mode. When configured in Expanded mode, the project settings for the startup code will set up chip selects CS0, CS1, and CS2 for the memory map above, set the PLL to run at 50MHz and run the system clock from the PLL.