Data Types - Renesas FSL-T06 User Manual

Flash self-programming library
Table of Contents

Advertisement

Flash Self-Programming Library

5.2 Data Types

Figure 5-1
Figure 5-2
R01US0046ED Rev. 1.01
User Manual
Internal mode (FSL_STATUS_CHECK_INTERNAL)
Advantages:
Disadvantages:
For details refer to chapter 4.4 User code execution during Self-Programming.
Synchronization between Code and Data Flash
It is not possible to access Code Flash during Data Flash access and vice versa
due to similar hardware and limited internal resources, e.g. a single charge pump.
To protect and synchronize Code Flash and Data Flash accesses a
synchronization mechanism is implemented. This mechanism will postpone all
Code Flash access if a Data Flash access is ongoing until the Data Flash access
is terminated. A Data Flash access during Code Flash accesses is very unlikely,
because code execution is only possible from RAM during Self-Programming.
Therefore the access from Data Flash is not synchronized.
To enable the synchronization mechanism, following define is necessary:
#define FSL_CODE_DATA_FLASH_SYNC_ENABLED
Error
Error
FSL_OK
FSL_OK
FSL_IDLE
FSL_IDLE
FSL_BUSY
FSL_BUSY
Error
Error
FSL_ERR_FLMD0
FSL_ERR_FLMD0
FSL_ERR_PARAMETER
FSL_ERR_PARAMETER
FSL_ERR_PROTECTION
FSL_ERR_PROTECTION
FSL_ERR_ERASE
FSL_ERR_ERASE
FSL_ERR_WRITE
FSL_ERR_WRITE
FSL_ERR_FLOW
FSL_ERR_FLOW
FSL_ERR_INTERNAL
FSL_ERR_INTERNAL
no polling necessary
less RAM consumption
more activation / deactivation time
no return to the application during Self-Programming
user code execution during Self-Programming only by
interrupts
Valu
Valu
Explanation
Explanation
e
e
0x00
0x00
The operation finished successfully
The operation finished successfully
0x30
0x30
No operation is ongoing
No operation is ongoing
The operation has been started
The operation has been started
0xFF
0xFF
successfully and is still running.
successfully and is still running.
FSL status codes
Value
Value
Explanation
Explanation
0x01
0x01
The FLMD0-Pin is not at a High level.
The FLMD0-Pin is not at a High level.
A new operation should be initiated,
A new operation should be initiated,
0x05
0x05
but an error in the given parameter
but an error in the given parameter
occurred.
occurred.
A new operation should be initiated
A new operation should be initiated
0x10
0x10
although this operation is forbidden
although this operation is forbidden
due to a security feature.
due to a security feature.
The current operation stopped due to
The current operation stopped due to
0x1A
0x1A
an error while erasing.
an error while erasing.
The current operation stopped due to
The current operation stopped due to
0x1C
0x1C
an error while writing.
an error while writing.
A new operation should be initiated
A new operation should be initiated
0x1F
0x1F
although the state machine is still
although the state machine is still
busy.
busy.
The current operation stopped due to
The current operation stopped due to
0xAA
0xAA
an internal error.
an internal error.
FSL error codes
User Interface (API)
Responsible
Responsible
FSL Impact
FSL Impact
process
process
Correct result
Correct result
A new function call is
A new function call is
possible
possible
Correct result
Correct result
Responsible
Responsible
FSL Impact
FSL Impact
process
process
Current command
Current command
rejected
rejected
Current command
Current command
rejected
rejected
Current command
Current command
rejected
rejected
Current command
Current command
aborted.
aborted.
Current command
Current command
aborted.
aborted.
Current command
Current command
rejected
rejected
Current command
Current command
aborted.
aborted.
26

Advertisement

Table of Contents
loading

Table of Contents