Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Windows and Linux Esptool.py upload error caused by 1.7.5 #54

Merged
merged 2 commits into from
Jul 31, 2023

Conversation

brentru
Copy link
Member

@brentru brentru commented Jul 28, 2023

Partially resolves #53

  • Works on Esptool.py for Mac, Linux and Windows
  • Works on Adafruit Web ESPTool for Mac
    • Does not work on Adafruit Web ESPTool for Windows or Linux

@brentru
Copy link
Member Author

brentru commented Jul 28, 2023

Tests

Upload on Windows esptool.py

:\Users\brentrubell>python -m esptool --port COM7 --before no_reset --baud 115200 write_flash 0 "\\Mac\Home\Downloads\NINA_W102-1.7.6 (1).bin"
esptool.py v4.6.2
Serial port COM7
WARNING: Pre-connection option "no_reset" was selected. Connection may fail if the chip is not in bootloader or flasher stub mode.
Connecting.....
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting....
Detecting chip type... ESP32
Chip is ESP32-D0WD-V3 (revision v3.0)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 40:f5:20:44:c4:30
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Flash will be erased from 0x00000000 to 0x0011bfff...
Compressed 1160192 bytes to 634927...
Wrote 1160192 bytes (634927 compressed) at 0x00000000 in 213.4 seconds (effective 43.5 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...

Hardware Tested: Adafruit CircuitPython 8.2.1 on 2023-07-25; Adafruit Matrix Portal M4 with samd51j19

Internet SimpleTest

ESP32 found and in idle mode
Firmware vers. bytearray(b'1.7.6\x00')
MAC addr: ['0x30', '0xc4', '0x44', '0x20', '0xf5', '0x40']
SNIP AP LIST!!!
Connecting to AP...
Connected to iPhone (2) 	RSSI: -45
My IP address is 172.20.10.6
IP lookup adafruit.com: 104.20.38.240
Ping google.com: 70 ms
Fetching text from http://wifitest.adafruit.com/testwifi/index.html
----------------------------------------
This is a test of Adafruit WiFi!
If you can read this, its working :)
----------------------------------------

Fetching json from http://api.coindesk.com/v1/bpi/currentprice/USD.json
----------------------------------------
{'time': {'updated': 'Jul 28, 2023 19:52:00 UTC', 'updatedISO': '2023-07-28T19:52:00+00:00', 'updateduk': 'Jul 28, 2023 at 20:52 BST'}, 'disclaimer': 'This data was produced from the CoinDesk Bitcoin Price Index (USD). Non-USD currency data converted using hourly conversion rate from openexchangerates.org', 'bpi': {'USD': {'code': 'USD', 'description': 'United States Dollar', 'rate_float': 29300.1, 'rate': '29,300.1336'}}}
----------------------------------------
Done!

Adafruit IO Simpletest (https://learn.adafruit.com/adafruit-matrixportal-m4/internet-connect#wifi-manager-3034791)

code.py | 8.2.1�\ESP32 SPI webclient test
Posting data...{'created_at': '2023-07-28T19:59:34Z', 'id': '0FC0PDKDXQVYXR3C7NMTF4K48Z', 'expiration': '2023-09-26T19:59:34Z', 'created_epoch': 1690574374, 'feed_id': 997503, 'value': '0', 'feed_key': 'test'}
OK

IO Data:
image

@brentru brentru changed the title Fix Windows and Linux upload error caused by 1.7.5 Fix Windows and Linux Esptool.py upload error caused by 1.7.5 Jul 28, 2023
@brentru
Copy link
Member Author

brentru commented Jul 28, 2023

ping @ladyada - This is working with the caveat that it does not upload on Adafruit's Web Esptool for Windows or Linux. It should be OK to use on testers, I've tested with Adafruit IO and the web simpletest.

@brentru
Copy link
Member Author

brentru commented Jul 28, 2023

Firmware binary is below for release

NINA_W102-1.7.6.bin.zip

@ladyada
Copy link
Member

ladyada commented Jul 29, 2023

thanks ill start updating testers. i think its ok as long as esptool.py does work!

@brentru brentru merged commit dffbd44 into adafruit:master Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1.7.5 gets stuck while loading
2 participants