charmedlabs / pixy2

Other
131 stars 98 forks source link

error:firmware header is not present or is corrupt #18

Closed joedeveloper closed 5 years ago

joedeveloper commented 5 years ago

On windows, with unmodified source - the compilation in keil 5 reports no issues, yet when trying to flash I get the following error: error:firmware header is not present or is corrupt

richlegrand commented 5 years ago

Hello, You need to run fappend on the hex file:

https://github.com/charmedlabs/pixy2/blob/master/src/device/main_m4/spifi/fappend

You can run it as

fappend

to specify the firmware version

or you can run it without args if you don't care. The version number is used as a clue to pixymon to compare firmware files.

fappend will take the firmware you built "pixy_firmware2.hex" and output a file with a header.

thanks, --rich

On Thu, Aug 22, 2019 at 9:49 PM joedeveloper notifications@github.com wrote:

On windows, with unmodified source - the compilation in keil 5 reports no issues, yet when trying to flash I get the following error: error:firmware header is not present or is corrupt

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/charmedlabs/pixy2/issues/18?email_source=notifications&email_token=AAG66DMJDGQFRZB3N46O3QLQF5F33A5CNFSM4IO3DQK2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HG54EEQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AAG66DITUUFDS5BNMASNB73QF5F33ANCNFSM4IO3DQKQ .

-- Charmed Labs www.charmedlabs.com

joedeveloper commented 5 years ago

Worked like a charm, thanks!