Skip to content

H7: issue in bootloader in case of corrupted firmware #6765

@3djc

Description

@3djc

Is there an existing issue for this problem?

  • I have searched the existing issues

What part of EdgeTX is the focus of this bug?

Transmitter firmware

Current Behavior

BL creates a 16Mb drive, but also allows firmware up to UF2_MAX_FW_SIZE which is often set to 16Mb.

When a corrupted firmware is present, the drive will therefore be full, and computer will refuse to flash a correct firmware as the drive is seens as full

Expected Behavior

  1. Drive should at least be twice the size of UF2_MAX_FW_SIZE + margin for fat tables. This cannot be done using TotalSectors16 as currently done

  2. If possible, better detection of broken firmware should be done, and should not list CURRENT_FIRMWARE if broken

Version

Main

Transmitter

Any H750

Metadata

Metadata

Labels

bug 🪲Something isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions