YDD files are created using AZ481 (KEY File Generator).
The settings to be configured in the YDD file are as follows:
| Setting items | ADDRESS | Number of bytes | Set value | Required field | remarks |
| Operation Mode | 00000000 | 1 |
FF:Command Protection Mode 00:ID Authentication Mode |
Yes | The microcontroller's factory default state is command protection mode. |
| OCD ID setting availability | 00000001 | 1 | 00:available | No | This setting is used when you want to use command protection mode and perform ID authentication when connecting to the debugger. |
| Security settings | 00000002 | 1 |
bit7:Read restriction flag 1: Read allowed 0: Read restricted bit6:Write protection flag 1: Write allowed 0: Write prohibited bit5:Erase Prohibition Flag 1: Erase Allowed 0: Erase Prohibited bit4~0:1 (Fixed value) Example : If only read access is prohibited, 7F |
No | When setting a restriction, you will also need to change the MCU Operation Mode setting (you must set the MCU Operation Mode to a security-enabled setting (0001 or 0011); otherwise, you will get the error 1123: WARNING SECURITY SETTING). |
| Serial programming disable settings | 00000003 | 1 | 00:disable serial programming | No | You also need to set bit 7 of address 0C0 in Parameter Table 2 to "1" (if you don't set it, an error won't occur, but serial programming will not be disabled). |
| Authentication ID-code | 00000010 | 16 |
ID setting value for authentication (Match the value set on the microcontroller to be programmed) |
No / Yes | If the microcontroller is set to ID authentication mode, configuration is required. |
| Set ID-code | 00000020 | 16 | ID setting value to be set on the microcontroller | No / Yes |
If "Operation Mode" is set to "ID Authentication Mode", configuration is required. If OCD ID is enabled, configuration is required. |
|
Option byte settings (OPBT0~OPBT7) |
00000040 | 4~32 |
Describe in the order of OPBT0 to OPBT7. Each option byte is written in little-endian format. Example setting: Option byte setting value 12345678 -> YDD file description 78563412 |
No | When setting option bytes, you also need to set the MCU Operation Mode (0010 or 0011). (Even if you don't set option bytes, it won't result in an error, but the option bytes won't be set.) |
| CodeFlash1 OTP Settings | 00000100 | 1~65 | Set the bit corresponding to the block number for which you want to configure OTP to 0 | No | You also need to set bit 1 of address 0C0 in Parameter Table2 to "1" (if you don't set it, it won't result in an error, but the OTP setting won't be enabled). |
| CodeFlash2 OTP Settings | 00000180 | 1~32 | Set the bit corresponding to the block number for which you want to configure OTP to 0 | No | |
| UserBootArea OTP Setting | 000001FF | 1 | Set the bit corresponding to the block number for which you want to configure OTP to 0 (UserBootArea has only one block, so the setting value is fixed to FE). | No |
<Remark>MCU Operation Mode setting
|
MCU Operation Mode Setting Value |
0000 | 0001 | 0010 | 0011 |
| Security Setting | No | Yes | No | Yes |
| Option byte setting | No | No | Yes | Yes |
Related articles
[avant, acorde] Option byte of RH850 cannot be set. (Model: FRX830)