tanner87661 / IoTTStick

This is the support repository for the IoTT Stick, port modules and hat devices
31 stars 16 forks source link

macOS update #64

Open DrEVILish opened 1 week ago

DrEVILish commented 1 week ago

unable to update IoTT Stick via macOS

update.mac has the wrong (new line) character.

Giving the below error.

usage: esptool write_flash [-h] [--erase-all] [--flash_freq {keep,40m,26m,20m,80m}] [--flash_mode {keep,qio,qout,dio,dout}]
                           [--flash_size FLASH_SIZE] [--spi-connection SPI_CONNECTION] [--no-progress] [--verify] [--encrypt]
                           [--ignore-flash-encryption-efuse-setting] [--compress | --no-compress]
                           <address> <filename> [<address> <filename> ...]
" must be a numberh: error: argument <address> <filename>: Address "
usage: esptool write_flash [-h] [--erase-all] [--flash_freq {keep,40m,26m,20m,80m}] [--flash_mode {keep,qio,qout,dio,dout}]
                           [--flash_size FLASH_SIZE] [--spi-connection SPI_CONNECTION] [--no-progress] [--verify] [--encrypt]
                           [--ignore-flash-encryption-efuse-setting] [--compress | --no-compress]
                           <address> <filename> [<address> <filename> ...]
esptool write_flash: error: argument <address> <filename>: [Errno 2] No such file or directory: 'LNFP_M5Stick.spiffs.bin\r'

new macOS installations use \n as the newline character not the \r this causes, python to look at the wrong file names.

https://stackoverflow.com/questions/3821784/whats-the-difference-between-n-and-r-n

There was also something else with PySerial not being installed and Python bugging out during the install but I do not feel it's in the realm of your project to fix nor care.

Ryan

tanner87661 commented 1 week ago

Hi Ryan

Thanks for the info. Unfortunately, I have no experience with macOS, so I rely on people who have.

So, the question is: Have you been able to run the update batch after changing the new line from \r to \n? Please confirm so I can change the batch file accordingly.

Thanks

Hans

From: Ryan Freeman @.> Sent: Sunday, June 16, 2024 7:51 PM To: tanner87661/IoTTStick @.> Cc: Subscribed @.***> Subject: [tanner87661/IoTTStick] macOS update (Issue #64)

unable to update IoTT Stick via macOS

update.mac has the wrong (new line) character.

Giving the below error.

usage: esptool write_flash [-h] [--erase-all] [--flash_freq {keep,40m,26m,20m,80m}] [--flash_mode {keep,qio,qout,dio,dout}] [--flash_size FLASH_SIZE] [--spi-connection SPI_CONNECTION] [--no-progress] [--verify] [--encrypt] [--ignore-flash-encryption-efuse-setting] [--compress | --no-compress]

[
...] " must be a numberh: error: argument
: Address " usage: esptool write_flash [-h] [--erase-all] [--flash_freq {keep,40m,26m,20m,80m}] [--flash_mode {keep,qio,qout,dio,dout}] [--flash_size FLASH_SIZE] [--spi-connection SPI_CONNECTION] [--no-progress] [--verify] [--encrypt] [--ignore-flash-encryption-efuse-setting] [--compress | --no-compress]
[
...] esptool write_flash: error: argument
: [Errno 2] No such file or directory: 'LNFP_M5Stick.spiffs.bin\r' new macOS installations use \n as the newline character not the \r this causes, python to look at the wrong file names. https://stackoverflow.com/questions/3821784/whats-the-difference-between-n-and-r-n There was also something else with PySerial not being installed and Python bugging out during the install but I do not feel it's in the realm of your project to fix nor care. Ryan — Reply to this email directly, view it on GitHub , or unsubscribe . You are receiving this because you are subscribed to this thread. Message ID: ***@***.*** ***@***.***> >
DrEVILish commented 1 week ago

Yes, IoTT stick connected via USB Python and it's required dependencies installed and updated to latest versions. Edited the file with macOS native editor. Then ran the update script ./update.mac

I'm now running the latest version of IoTT