|
|
|
Component
IntFLASH
Internal FLASH
Properties:
-
Component name - Name of the component.
-
Settings not supported for Freescale 56800/E, ColdFireV1 and HCS08 derivatives.
-
FLASH - Internal on-chip FLASH resource name.
-
Settings supported for Freescale 56800/E, ColdFireV1 and HCS08 derivatives only.
-
FLASH - Internal on-chip FLASH resource name.
-
Write method - Method of flash-write operations.
- Write - Data are written into FLASH without testing if sector erase is necessary. Only erased bits are affected. To change non-erased bit, an erase method must be used.
- Destructive write (with erase) - Actual sector is erased if necessary (without any data backup) and after that data is written into the FLASH.
- Safe write (with save & erase) - If sector erase is necessary, data from sector are stored into buffer, sector is erased and data are restored back, and new data are written to erased area.
There are 3 modes:
- Write - Data are written into FLASH without any tests. Only erased bits are affected. To change non-erased bit, any of erase method must be used. There are no items in this mode.
- Destructive write (with erase) - Actual sector is erased if necessary (without any data backup) and after that data is written into the FLASH. There are no items in this mode.
- Safe write (with save & erase) - If sector erase is necessary, data from sector are stored into buffer, sector is erased and data are restored back, and new data are written to erased area. The following items are displayed in this mode:
-
Buffer type - Buffer used for storing FLASH content before erasing and rewriting.
Buffer allocation type: - it can be allocated and implemented by the component (usually in the RAM)
- or it can be implemented by the user with support of the events OnSaveBuffer and OnRestoreBuffer. These events are called when saving or restoring of FLASH is needed. The user must handle this action in his/her own code (possible solutions are creating buffer in external memory, sending data using serial line, storing in a different FLASH sector etc.). Typically, these events are called two times for each write request.
-
Interrupt service/event - Required Interrupt support: yes/no.
If interrupt support is disabled the pooling communication with FLASH is used. If this property is set to "Enabled", the component functionality depends on the interrupt service and will not operate if the CPU interrupts are disabled. For details please refer to chapter "interrupt service in the component's generated code".
The following items are available only if the group is enabled (the value is "Enabled"):
-
Wait in RAM - Wait for completion of the write/erase operation in RAM. This option enables to change the FLASH that the application is running in.
-
Settings supported for Freescale ColdFireV1, HCS08, HCS12 and HCS12X derivatives only.
-
WatchDog reset - WatchDog (Init_COP) support in write/erase methods.
If 'yes' is selected and WatchDog or Init_COP component is in the project and enabled, then the wait loop in write/erase methods of IntFLASH component contain COP timer resets. Note: No code is generated if COP operates in the 'window mode'.
-
Virtual page - Virtual page for block access.
This buffer, which is located in memory, is used for a block access into FLASH memory. There are methods for writing into this buffer and also for reading from this buffer. The whole buffer can be stored into FLASH by using SetPage method. Also the buffer can be filled by data from FLASH using GetPage method.
The following items are available only if the group is enabled (the value is "Enabled"):
-
Allocated - The type of a virtual page.
A virtual page can be allocated "By the component" or it can be allocated "By the user" using SetVirtualPageAddr method.
-
Page size - The size of a virtual page in minimal addressable units (usually bytes).The size of a virtual page must be even for HCS12, FUJITSU_16LX and COP8 derivates.
-
Initialization - Initialization of the component
-
Events enabled in init. - This item selects if the component events are enabled or disabled in the initialization code. Events may be also enabled/disabled in run-time using method EnableEvent and DisableEvent. Value of the item is irrelevant if the property Interrupt service/event is not selected.
This item doesn't influence OnEraseError, OnSaveBuffer and OnRestoreBuffer events.
-
Wait enabled in init. - Wait enabled in initialization code (yes/no). If wait is enabled the driver always stays in the loop till the end of operation and data is verified at the end of writing method. Wait can also be selected by SetWait method at runtime. The property is available only if Wait in RAM is set to 'no'.
-
Settings supported for Freescale 56800/E, ColdFireV1, HCS08, HCS12 and HCS12X derivatives only.
-
CPU clock/speed selection - Settings for the CPU speed modes: identifies whether the component is supported or not.
For details about speed modes please refer to page Speed Modes Support.
-
FLASH clock - Flash internal timing clock frequency. The correct value is frequency of 150kHz - 200kHz. For information only.
-
High speed mode - The component is enabled/disabled for write and erase method in high speed mode.
-
Low speed mode - The component is enabled/disabled for write and erase method in low speed mode.
-
Slow speed mode - The component is enabled/disabled for write and erase method in slow speed mode.
|