Other Parts Discussed in Thread: BQ78350
I can successfully enter the sealed, unsealed and full access security modes by send the SBS commands and respective keys as described in the datasheet. However, it feels like the security mode definition is erroneous: when I enter the unseal key I end up in the full access mode when I look at the SEC0 and SEC1 flags and compare them to the security mode definition.
This is what I observe (SEC1 is bit 9, SEC0 is bit 8 of Operations Status register):
Sealed mode SEC1,SEC0 = 1,1
Unsealed mode SEC1,SEC0 = 1,0
Full access mode SEC1,SEC0 = 0,1
Section 17.2.38 of the BQ78350 Technical Reference defines the states as following:
SEC1, SEC0 (Bit 9,8): SECURITY mode
0, 0 = Reserved
0, 1 = Unsealed
1, 0 = Full Access
1, 1 = Sealed
The unsealed and full access seem reversed.
Moreover, in section 11.5.2 says:
SEALED to UNSEALED instructs the device to temporarily extend access to the SBS and data flash space and clears the [SEC1][SEC0] flags.
Again, according to the definition of the modes above both flags cleared means the security state is undefined... is this another error?
Funny enough the next section, 11.5.3 UNSEALED to FULL ACCESS, does not specify the state of the SECx flags un the full access mode... so I can't say anything about that.