sfyip / STM32F103_MSD_BOOTLOADER

STM32F103 Mass Storage Device Bootloader
MIT License
68 stars 44 forks source link

Firmware update via Macos does not work #15

Open R8CEH opened 1 year ago

R8CEH commented 1 year ago

I'm using a mac and I can't flash the device through it. I have to send a file to a Windows laptop and update the firmware through it. It is very uncomfortable. macOS creates folder ".fseventsd" and file "fseventsd-uuid". Is it possible to prevent the creation of this directory and file at the bootloader level? Or prevent the bootloader from watching files or folders that start with a dot.

R8CEH commented 1 year ago

https://www.utasker.com/kinetis/USB-MSD-MAC.html

sfyip commented 1 year ago

The FAT32 write procedure is handled at fat32_write(). I only tested on macOS Sierra. I will update my macOS to big sur to check it out.

sfyip commented 1 year ago

Do not find any problem if using macOS Big Sur.

Which macOS version are you using? I can't test on MacOS Ventura because my Mac book Air is not compatible.

I just flash STM32_MSD_BTLDR.hex to STM32. Drag and drop the example-hex/STM32F103_FlashPC13LED_FAST.hex to BOOTLOADER drive.

R8CEH commented 1 year ago

Can you repeat this with encrypted firmware?

sfyip commented 1 year ago

Tested STM32F103_FlashPC13LED_FAST_CRYPT.hex. It also works on my Mac book Air (macOS Big Sur and Monterey).