Downloading is possible by making a connection on the user system so that data can be written by the microcontroller to external flash memory.
Note, however, that this method is only usable for debugging and cannot be used for writing data in mass production.
Outline of procedure for downloading to flash memory connected to the external bus
- Design a user system in which data can be written to external flash memory.
- Obtain the external flash memory information file (*.fbd) which is to be used when downloading data to external flash memory.
Download the external flash memory information file from here. Please contact us if the desired external flash memory information file (*.fbd) does not exist.
- Map the target flash memory in the [Memory mappings] category of the [Debug Tool Settings] tabbed page on the Property panel. Then specify the memory type of the target memory area.
- Set up the external bus. Change the peripheral I/O register settings to select the external bus so that the target device can access flash memory. Though the peripheral I/O register settings can be changed from the IOR panel, you will need to set up individual registers. For this reason, we recommend the use of hook transaction. By selecting the [Before download] property in the [Hook Transaction Settings] tabbed page on the Property panel, the hook process can change the register settings all at once before download.
- Register the flash memory information. In the [External Flash Memory Download] category of the [Debug Tool Settings] tabbed page on the Property panel, register the external flash memory information file (*.fbd) or set the start address, data bit width, etc.
- Following the normal download procedure, download a program including the data to be written to external flash memory.
Note that facilities for downloading data to external flash memory, performing stepped execution, and generating an on-chip break are usable but facilities that require rewriting of flash memory (rewriting of flash memory from a memory window and generating a software break) cannot be used. The following notes are also applied.
- When sector protection is set for external flash memory, data cannot be erased or changed.
- When using a device with the facility to disable erasure or writing when the power is turned on or off, erasure or writing cannot be performed because the device-specific command to release lock is not supported.
- Access (read, erasure, or write) cannot be made because device-specific commands for making access to special sectors, such as the secured silicon sector area which can permanently hold data like ESN (electric serial number) that can be randomly assigned are not supported.
|CS+ (formerly CubeSuite+)|
|High-performance Embedded Workshop|
|External Flash Definition Editor|