Bootloader Scratch Register description

Hi,

I want to understand better the register layout for the bootloader scratch register. The documentation says:

5-4: current slot number
3-0: Boot slot status flag

Then it says:

  • The current slot number is 0 for slot A and 1 for slot B.

  • The boot slot status flag uses bits to indicate the following slot statuses:

    • 0: valid

    • 1: invalid

    For example, 0001b means slot A is invalid.

Why is there 2 bits for the current slot number and 4 for the boot slot status. Is it for redundancy? So say I want to set the current slot number to be slot A or B, what value should be set in bit 5-4?

Can you explain the example, in particular where is slot B? bit 1?

Thanks

  • See documentation:

hello sebastien.schertenleib,

it’s redundant.

for instance, current slot number to be slot-B, invalid = 010001b.

Hi,

Thanks for the clarifications. This is clear now.