Merge pull request #463 from MaxiluxSystems/feature/product-states

flash_h50: add PRODUCT_STATE enum; improve a couple other fields
This commit is contained in:
Dario Nieuwenhuis 2024-04-12 19:38:24 +00:00 committed by GitHub
commit b1034db59a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,6 +46,7 @@ block/FLASH:
- name: OPTSR_CUR - name: OPTSR_CUR
description: FLASH option status register description: FLASH option status register
byte_offset: 80 byte_offset: 80
access: Read
fieldset: OPTSR fieldset: OPTSR
- name: OPTSR_PRG - name: OPTSR_PRG
description: FLASH option status register description: FLASH option status register
@ -54,6 +55,7 @@ block/FLASH:
- name: OPTSR2_CUR - name: OPTSR2_CUR
description: FLASH option status register 2 description: FLASH option status register 2
byte_offset: 112 byte_offset: 112
access: Read
fieldset: OPTSR2 fieldset: OPTSR2
- name: OPTSR2_PRG - name: OPTSR2_PRG
description: FLASH option status register 2 description: FLASH option status register 2
@ -62,6 +64,7 @@ block/FLASH:
- name: NSBOOTR_CUR - name: NSBOOTR_CUR
description: FLASH non-secure unique boot entry register description: FLASH non-secure unique boot entry register
byte_offset: 128 byte_offset: 128
access: Read
fieldset: NSBOOTR fieldset: NSBOOTR
- name: NSBOOTR_PRG - name: NSBOOTR_PRG
description: FLASH non-secure unique boot entry address description: FLASH non-secure unique boot entry address
@ -70,6 +73,7 @@ block/FLASH:
- name: OTPBLR_CUR - name: OTPBLR_CUR
description: FLASH non-secure OTP block lock description: FLASH non-secure OTP block lock
byte_offset: 144 byte_offset: 144
access: Read
fieldset: OTPBLR fieldset: OTPBLR
- name: OTPBLR_PRG - name: OTPBLR_PRG
description: FLASH non-secure OTP block lock description: FLASH non-secure OTP block lock
@ -82,6 +86,7 @@ block/FLASH:
- name: WRPSGN1R_CUR - name: WRPSGN1R_CUR
description: FLASH write sector protection for Bank1 description: FLASH write sector protection for Bank1
byte_offset: 232 byte_offset: 232
access: Read
fieldset: WRP fieldset: WRP
- name: WRPSGN1R_PRG - name: WRPSGN1R_PRG
description: FLASH write sector protection for Bank1 description: FLASH write sector protection for Bank1
@ -90,6 +95,7 @@ block/FLASH:
- name: HDP1R_CUR - name: HDP1R_CUR
description: FLASH HDP Bank1 register description: FLASH HDP Bank1 register
byte_offset: 248 byte_offset: 248
access: Read
fieldset: HDP1R fieldset: HDP1R
- name: HDP1R_PRG - name: HDP1R_PRG
description: FLASH HDP Bank1 register description: FLASH HDP Bank1 register
@ -110,6 +116,7 @@ block/FLASH:
- name: WRPSGN2R_CUR - name: WRPSGN2R_CUR
description: FLASH write sector protection for Bank2 description: FLASH write sector protection for Bank2
byte_offset: 488 byte_offset: 488
access: Read
fieldset: WRP fieldset: WRP
- name: WRPSGN2R_PRG - name: WRPSGN2R_PRG
description: FLASH write sector protection for Bank2 description: FLASH write sector protection for Bank2
@ -118,6 +125,7 @@ block/FLASH:
- name: HDP2R_CUR - name: HDP2R_CUR
description: FLASH HDP Bank2 register description: FLASH HDP Bank2 register
byte_offset: 504 byte_offset: 504
access: Read
fieldset: HDP2R fieldset: HDP2R
- name: HDP2R_PRG - name: HDP2R_PRG
description: FLASH HDP Bank2 register description: FLASH HDP Bank2 register
@ -413,7 +421,6 @@ fieldset/OPTCR:
description: "Bank swapping option configuration bit\r SWAP_BANK controls whether Bank1 and Bank2 are swapped or not. This bit is loaded with the SWAP_BANK bit of FLASH_OPTSR_CUR register only after reset or POR." description: "Bank swapping option configuration bit\r SWAP_BANK controls whether Bank1 and Bank2 are swapped or not. This bit is loaded with the SWAP_BANK bit of FLASH_OPTSR_CUR register only after reset or POR."
bit_offset: 31 bit_offset: 31
bit_size: 1 bit_size: 1
enum: OPTCR_SWAP_BANK
fieldset/OPTSR: fieldset/OPTSR:
description: FLASH option status register description: FLASH option status register
fields: fields:
@ -452,9 +459,10 @@ fieldset/OPTSR:
bit_size: 1 bit_size: 1
enum: OPTSR_NRST_STDBY enum: OPTSR_NRST_STDBY
- name: PRODUCT_STATE - name: PRODUCT_STATE
description: Life state code (based on Hamming 8,4). More information in . description: Life state code (based on Hamming 8,4).
bit_offset: 8 bit_offset: 8
bit_size: 8 bit_size: 8
enum: PRODUCT_STATE
- name: IO_VDD_HSLV - name: IO_VDD_HSLV
description: High-speed IO at low VDD voltage status bit. This bit can be set only with VDD below 2.5 V. description: High-speed IO at low VDD voltage status bit. This bit can be set only with VDD below 2.5 V.
bit_offset: 16 bit_offset: 16
@ -479,7 +487,6 @@ fieldset/OPTSR:
description: "Bank swapping option status bit\r SWAP_BANK reflects whether Bank1 and Bank2 are swapped or not.\r SWAP_BANK is loaded to SWAP_BANK of FLASH_OPTCR after a reset." description: "Bank swapping option status bit\r SWAP_BANK reflects whether Bank1 and Bank2 are swapped or not.\r SWAP_BANK is loaded to SWAP_BANK of FLASH_OPTCR after a reset."
bit_offset: 31 bit_offset: 31
bit_size: 1 bit_size: 1
enum: OPTSR_SWAP_BANK
fieldset/OPTSR2: fieldset/OPTSR2:
description: FLASH option status register 2 description: FLASH option status register 2
fields: fields:
@ -574,11 +581,11 @@ fieldset/WRP:
enum/BKSEL: enum/BKSEL:
bit_size: 1 bit_size: 1
variants: variants:
- name: B_0x0 - name: BANK1
description: Bank1 is selected for Bank erase / sector erase / interrupt enable description: Bank1 is selected for Bank erase / sector erase / interrupt enable
value: 0 value: 0
- name: B_0x1 - name: BANK2
description: Bank2 is selected for BER / SER description: Bank1 is selected for Bank erase / sector erase / interrupt enable
value: 1 value: 1
enum/CODE_OP: enum/CODE_OP:
bit_size: 3 bit_size: 3
@ -619,15 +626,6 @@ enum/NSPRIV:
- name: B_0x1 - name: B_0x1
description: access to non secure registers is denied in case of non privileged access. description: access to non secure registers is denied in case of non privileged access.
value: 1 value: 1
enum/OPTCR_SWAP_BANK:
bit_size: 1
variants:
- name: B_0x0
description: Bank1 and Bank2 not swapped
value: 0
- name: B_0x1
description: Bank1 and Bank2 swapped
value: 1
enum/OPTSR_BKPRAM_ECC: enum/OPTSR_BKPRAM_ECC:
bit_size: 1 bit_size: 1
variants: variants:
@ -715,6 +713,27 @@ enum/OPTSR_NRST_STDBY:
- name: B_0x1 - name: B_0x1
description: no reset generated when entering Standby mode on core domain. description: no reset generated when entering Standby mode on core domain.
value: 1 value: 1
enum/PRODUCT_STATE:
bit_size: 8
variants:
- name: OPEN
description: Open
value: 0xED
- name: PROVISIONING
description: Provisioning
value: 0x17
- name: IROT_PROVISIONED
description: iROT-Provisioned
value: 0x2E
- name: CLOSED
description: Closed
value: 0x72
- name: LOCKED
description: Locked
value: 0x5C
- name: REGRESSION
description: Regression
value: 0x9A
enum/OPTSR_NRST_STOP: enum/OPTSR_NRST_STOP:
bit_size: 1 bit_size: 1
variants: variants:
@ -733,15 +752,6 @@ enum/OPTSR_SRAM_ECC:
- name: B_0x1 - name: B_0x1
description: SRAM2 ECC check disabled description: SRAM2 ECC check disabled
value: 1 value: 1
enum/OPTSR_SWAP_BANK:
bit_size: 1
variants:
- name: B_0x0
description: Bank1 and Bank2 not swapped
value: 0
- name: B_0x1
description: Bank1 and Bank2 swapped
value: 1
enum/OPTSR_WWDG_SW: enum/OPTSR_WWDG_SW:
bit_size: 1 bit_size: 1
variants: variants: