0

Pyportal Pynt IO and SSL
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Re: Pyportal Pynt IO and SSL

by oldblackcrow on Wed Feb 10, 2021 1:21 pm

And just to clarify on my part... I read and tried to follow the next step:

"If you're using Windows - run the following command, replacing COM7 with the serial port of your board and NINA_W102-1.6.0 with the binary file you're flashing to the ESP32

esptool.py --port COM6 --before no_reset --baud 115200 write_flash 0 NINA_W102-1.6.0.bin"

I get the following: "esptool.py' is not recognized as an internal or external command,
operable program or batch file.

But it does not explain;
1. Where I get the esptool.py (I did find that on a Github search)
2. How to install esptool.py on Windows - I extracted the file but don't know what to do with those...
3. Where the files need to go for Windows Command Prompt to access them.

I would say the instructions are clear as mud for Windows users.

oldblackcrow
 
Posts: 121
Joined: Tue Jun 20, 2017 5:54 pm

Re: Pyportal Pynt IO and SSL

by oldblackcrow on Wed Feb 10, 2021 11:25 pm

Ok... Here is what I've done:
1. Installed Python3.7 on Windows using the Microsoft Store.
2. Installed esptool.py by typing "pip3 install esptool" in Windows Command Prompt - this was successful
3. PyPortal is connected and the white light is on, screen blank, and shows up as COM6 in Device Manager.
4. Inserted the following code in Windows Command Prompt: "esptool.py --port COM6 --before no_reset --baud 115200 write_flash 0 NINA_W102-1.6.0.bin" - An unknown window flashes extremely quickly and then Nothing happens. The window is not visible long enough to know what it says.
5. I re-install the UF2 file in bootloader mode and repeat the process. Same results.

This is exciting. I remember when I had to do 42 tasks just to get Windows 3.0 working! Good times! :-D

oldblackcrow
 
Posts: 121
Joined: Tue Jun 20, 2017 5:54 pm

Re: Pyportal Pynt IO and SSL

by brubell on Thu Feb 11, 2021 1:15 pm

n unknown window flashes extremely quickly and then Nothing happens. The window is not visible long enough to know what it says.

It should take a while to upload. Are you sure you have the COM port correct? Does the PyPortal show up in Windows Explorer as PORTALBOOT?

brubell
 
Posts: 1256
Joined: Fri Jul 17, 2015 10:33 pm

Re: Pyportal Pynt IO and SSL

by oldblackcrow on Thu Feb 11, 2021 3:30 pm

The port is correct. In device manager, if I unplug the PyPortal the com6 disappears. However, it does not show up in file explorer at all.

oldblackcrow
 
Posts: 121
Joined: Tue Jun 20, 2017 5:54 pm

Re: Pyportal Pynt IO and SSL

by brubell on Fri Feb 12, 2021 11:01 am

oldblackcrow wrote:The port is correct. In device manager, if I unplug the PyPortal the com6 disappears. However, it does not show up in file explorer at all.

Strange - if you double-press the RESET button on the PyPortal, does it show up as PORTALBOOT?
https://learn.adafruit.com/adafruit-pyp ... -3061298-2

brubell
 
Posts: 1256
Joined: Fri Jul 17, 2015 10:33 pm

Re: Pyportal Pynt IO and SSL

by oldblackcrow on Fri Feb 12, 2021 5:58 pm

It does go into boot mode and I can install any UF2 file with no issues.

oldblackcrow
 
Posts: 121
Joined: Tue Jun 20, 2017 5:54 pm

Re: Pyportal Pynt IO and SSL

by oldblackcrow on Fri Feb 12, 2021 7:16 pm

Maybe the UF2 file is corrupted? Tomorrow, I will re-download it and try again.

oldblackcrow
 
Posts: 121
Joined: Tue Jun 20, 2017 5:54 pm

Re: Pyportal Pynt IO and SSL

by oldblackcrow on Sat Feb 13, 2021 1:11 pm

I re-downloaded the PyPortal_ESP32_Passthru.UF2, but first, to make sure everything else worked, I uploaded the adafruit-circuitpython-pyportal_pynt-en_US-6.1.0.uf2 file. You can see the process on this video. Notice that when I upload the Passthru file, file explorer does not open.


---
https://photos.app.goo.gl/L19G6rziGYpSojLD9
---


[img]
ESPtool-install.jpg
[/img]
Attachments
ESPtool-install.jpg
ESPtool-install.jpg (336.69 KiB) Viewed 52 times

oldblackcrow
 
Posts: 121
Joined: Tue Jun 20, 2017 5:54 pm

Re: Pyportal Pynt IO and SSL

by oldblackcrow on Sat Feb 13, 2021 1:28 pm

And so you can see the device manager...

[img]
Not-plugged-in.jpg
[/img]


[img]
Plugged-in.jpg
[/img]
Attachments
Plugged-in.jpg
Plugged-in.jpg (116.22 KiB) Viewed 51 times
Not-plugged-in.jpg
Not-plugged-in.jpg (108.4 KiB) Viewed 51 times

oldblackcrow
 
Posts: 121
Joined: Tue Jun 20, 2017 5:54 pm

Re: Pyportal Pynt IO and SSL

by brubell on Mon Feb 15, 2021 10:45 am

We also host a web-based ESPTool which might work better than the command-line ESPTool since you're having issues with it:

https://learn.adafruit.com/adafruit-met ... al-esptool

brubell
 
Posts: 1256
Joined: Fri Jul 17, 2015 10:33 pm

Re: Pyportal Pynt IO and SSL

by oldblackcrow on Mon Feb 15, 2021 11:13 am

brubell wrote:We also host a web-based ESPTool which might work better than the command-line ESPTool since you're having issues with it:

https://learn.adafruit.com/adafruit-met ... al-esptool


That seems to be working ... but now I'm getting this: Error: The device has been lost.

oldblackcrow
 
Posts: 121
Joined: Tue Jun 20, 2017 5:54 pm

Re: Pyportal Pynt IO and SSL

by oldblackcrow on Mon Feb 15, 2021 11:28 am

I did erase the flash memory first, ran the thing...

I'm almost through and then it gives me this:

Writing data with filesize:1159168
Erase size 1159168, blocks 2264, block size 512, offset 0x0000, encrypted no
Timed out after 2000 milliseconds
Error: Didn't get enough status bytes
To run the new firmware, please reset your device.

This is much better and I thank you!

I had to reload Chrome, reboot the PyPortal and then reconnect. Now I get this:

Connected to ESP32
MAC Address: 24:62:AB:B9:0F:50
Uploading stub...
Running stub...
Stub is now running...

oldblackcrow
 
Posts: 121
Joined: Tue Jun 20, 2017 5:54 pm

Re: Pyportal Pynt IO and SSL

by oldblackcrow on Mon Feb 15, 2021 11:47 am

Been like 5-10 minutes and still has the following message:

Connected to ESP32
MAC Address: 24:62:AB:B9:0F:50
Uploading stub...
Running stub...
Stub is now running...

oldblackcrow
 
Posts: 121
Joined: Tue Jun 20, 2017 5:54 pm

Re: Pyportal Pynt IO and SSL

by oldblackcrow on Mon Feb 15, 2021 11:54 am

I tried the newer 1.7.1 bin file and it went much further, like 60-70% but then it did the same thing:

Error: Didn't get enough status bytes
To run the new firmware, please reset your device.

IDK LOL.

When it says, Reset your device, do I use the black button and press it once or twice? I've tried both, but don't see anything happening either way. Just want to make sure I do the proper steps. Thanks!

Also, when I send over the CircuitPython bootloader file, none of my code runs. The drive shows up with all the folders and files, but when I run my code, I get several errors.

oldblackcrow
 
Posts: 121
Joined: Tue Jun 20, 2017 5:54 pm

Re: Pyportal Pynt IO and SSL

by oldblackcrow on Mon Feb 15, 2021 4:12 pm

I just received a brand new PyPortal... straight out of the package and it is displaying the same message (in its entirety):

Adafruit WebSerial ESPTool loaded.
Connecting...
Connected successfully.
Timed out after 100 milliseconds
Timed out after 100 milliseconds
Timed out after 100 milliseconds
Timed out after 100 milliseconds
Timed out after 100 milliseconds
Timed out after 100 milliseconds
Timed out after 100 milliseconds
Timed out after 100 milliseconds
Connected to ESP32
MAC Address: 24:62:AB:B9:C7:FC
Uploading stub...
Running stub...
Stub is now running...
Erasing flash memory. Please wait...
Finished. Took 15043ms to erase.
Writing data with filesize:1159168
Erase size 1159168, blocks 2264, block size 512, offset 0x0000, encrypted no
Timed out after 2000 milliseconds
Error: Didn't get enough status bytes
To run the new firmware, please reset your device.

oldblackcrow
 
Posts: 121
Joined: Tue Jun 20, 2017 5:54 pm

Please be positive and constructive with your questions and comments.