| Test Case ID | Scenario | Expected Outcome | | :--- | :--- | :--- | | | Successful Update | Device downloads, installs, and boots into new firmware within 5 minutes. | | TC-02 | Power Loss during Flash | Power cut during Slot B writing. On power restore, device boots into Slot A (previous version) safely. | | TC-03 | Corrupted Payload | Device detects checksum mismatch, rejects update, and remains on current version. | | TC-04 | Wrong Signature | Device refuses to install unsigned/hacked firmware. | | TC-05 | Rollback Mechanism | New firmware crashes on startup loop. Bootloader reverts to Slot A after 3 failed boots. |
Before writing to flash: