|
| Downloading to FlashUse the Keil ULINK JTAG-Adapter to download. The steps to setup ULINK for Programming Flash within the µVision IDE are: - Connect the ULINK to the JTAG connector on the MCBSTR7 Board. Note that the red cable marks pin 1 of the JTAG-connector.

Note - The JTAG interface could be disabled by random CPU instructions or by the power-down mode of the device. If this occurs, enable the on-chip boot loader so the STR71x device can execute a valid program.
For more information refer to the web-based Keil Support Knowledgebase, for example to the article ULINK: RECOVER STR71X WHEN JTAG DISABLE.
- Power up the MCBSTR7 Board.
- Configure Flash Programming in the Project — Options for Target — Utilities dialog.
Set the Use Target Driver for Flash Programming option, then select the ULINK ARM Debugger as the Flash programming tool.
Check the Update Target before Debugging option to ensure that the Flash ROM gets programmed whenever the debugger starts.
Click the Settings button to open the Flash Download Setup dialog for the next step.
- Configure the Flash Download Setup dialog as follows:
Set the Download Function options to first Erase Sectors used by the application, then check Program to program the device, and Verify to verify the flash contains the downloaded application.
Set the Start location for the flash programming algorithm to 0x20000000 in RAM and set the Size to 0x0800.
Click the Add button and find the STR71x Bank 0 Flash and STR71x Bank 1 Flash programming algorithms in the list of available algorithms. Select each one, then click the Add button to add each one to your target.
Finally, click the OK button to save the Flash Download settings. - Download to Flash
Click the Download to Flash toolbar button. This executes the Flash download program (Target Driver or External) selected in Project — Options for Target — Utilities and downloads the application program into the STR71x device.
Or Use the µVision command Flash - Download to download the application program into the STR71x device.
ULINK can be also used for application code debugging in Flash ROM or RAM of the STR71x microcontroller. |
|