Skip to content

ESP32 on Mac #11

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

Merged
merged 5 commits into from
Apr 16, 2025
Merged

ESP32 on Mac #11

merged 5 commits into from
Apr 16, 2025

Conversation

KevinTriplett
Copy link
Contributor

Three commits:

  1. on mac, the serial port is similar to T5Gray
  2. without serial driver, I was getting a confusing message ("flash is up to date")
  3. update README with troubleshooting information for no serial port detected

Commit 1 may not be acceptable, let me know if you want do this another change.

Also, I notice that recipe flash looks identical to fullflash -- is it vestigial and can be removed?

@@ -151,6 +151,8 @@ ifndef SERIAL
SERIAL = $(shell ls /dev/tty.usbserial-????)
else ifeq ($(BOARD),T5gray)
SERIAL = $(shell ls /dev/tty.usbserial-???????????)
else ifeq ($(BOARD),TBeam)
SERIAL = $(shell ls /dev/tty.usbserial-???????????)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will need QA.

endif

# catch all
SERIAL ?= $(shell ls /dev/tty* | grep 'ACM\|USB\|wchusb')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know makefile, but this looks smarter than an else if it does what I think (i.e. try setting this if SERIAL was not set)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KevinTriplett
I think we can simplify this to just

SERIAL ?= $(shell ls /dev/tty* | grep 'ACM\|USB\|wchusb\|usbserial')

and skip the else clause. Otherwise looks good.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I simplified it further .. see commit

@mixmix
Copy link
Contributor

mixmix commented Apr 16, 2025

I'm not an expert in Makefile, but this passes the "looks good" test.

I'd like someone to "smoke test" this - try running this on TBeam to confirm no smoke comes out the side when you turn it on

@nanomonkey nanomonkey merged commit 582530a into tinySSB:main Apr 16, 2025
@KevinTriplett KevinTriplett deleted the triplett-make branch April 16, 2025 15:36
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.

3 participants