Bootloader Executable Code

Has anybody else gotten “file does not contain executable code” errors when loading code from an SD card, even though the file definitely is executable?

Had this issue pop up a couple of times in development of a new product. Boot error inexplicably shows up even though the .bin file is identical to a file on another board that boots correctly. File can also be put on a different sd card and work, and the sd card with the “bad” file can be loaded on another board and work.

Any ideas on how to detect and/or recover from this error?

Update: Found the issue. Somehow a hidden dot file got added to the card and it has been trying to upload that. I think it got added by deleting the file on macos, but I haven’t confirmed that

This is a ‘feature’ I really dislike on Mac. It litters anything it mounts with hidden files.

1 Like