• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Can’t get the “wifi scan” program to work

Q&A Forum › Category: ESP32 › Can’t get the “wifi scan” program to work
0 Vote Up Vote Down
Lowell Bye asked 6 years ago

I have just started the “Learn ESP32 with Arduino iDE Course and ran into a snag that I don’t knw how to fix.I have tried everything I know to get this program to work on my ESP-32 boards. I get the same error every time I try to load the Wifi Scan sketch and I can not figure out the problem. Here is the error message I get when I try to load the wifi scan code.

Sketch uses 631346 bytes (48%) of program storage space. Maximum is 1310720 bytes.
Global variables use 37960 bytes (11%) of dynamic memory, leaving 289720 bytes for local variables. Maximum is 327680 bytes.
esptool.py v2.6
Serial port COM4
Traceback (most recent call last):
File “esptool.py”, line 2959, in <module>
File “esptool.py”, line 2952, in _main
File “esptool.py”, line 2652, in main
File “esptool.py”, line 222, in __init__
File “site-packages\serial\__init__.py”, line 88, in serial_for_url
File “site-packages\serial\serialwin32.py”, line 62, in open
serial.serialutil.SerialException: could not open port ‘COM4’: WindowsError(5, ‘Access is denied.’)
Failed to execute script esptool
the selected serial port Failed to execute script esptool
does not exist or your board is not connected

Are the files corrupted? I do not know what to do now, I have tried 2 different ESP-32 modules, different usb cables and two different Windows 10 computers and get the same errors. Can you help please?

I found the problem.

Lowell

2 Answers
0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago

Thanks for letting me know. I’m glad you made it work. If you need further help, feel free to open a new question.
Regards,
Rui

0 Vote Up Vote Down
Lowell Bye answered 6 years ago

Thank you for your  reply. I really spaced out on this problem but found it to be the port speed was not set correctly.
Lowell

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.