Skip to content
New issue

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

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

Already on GitHub? # to your account

Is espusb compatible with FreeRTOS version? #14

Closed
leopck opened this issue Oct 8, 2016 · 21 comments
Closed

Is espusb compatible with FreeRTOS version? #14

leopck opened this issue Oct 8, 2016 · 21 comments

Comments

@leopck
Copy link
Collaborator

leopck commented Oct 8, 2016

I'm curious is the espusb project compatible with the FreeRTOS version of the espressif SDK? I was curious because I heard that the ESP32 is based on the FreeRTOS version. I took a very very short glance at the ESP32 codes and it looks pretty much the same on the C side at the least to ESP8266.

It'll be great if this works on ESP32 as well :D

@cnlohr
Copy link
Owner

cnlohr commented Oct 8, 2016

It certainly does not work on the ESP32 right now, but considering it now works on no SDK, it should also work with FreeRTOS. If you don't mind porting and submitting changes to get it to compile that would be awesome.

@leopck
Copy link
Collaborator Author

leopck commented Oct 8, 2016

Awesome, my ESP32 devkitC should arrive some time this week. I'll keep you posted on this once I receive the ESP32 and I'll give the porting a try as well

@yf-hk
Copy link

yf-hk commented Mar 23, 2017

Any update on this?

@cnlohr
Copy link
Owner

cnlohr commented Mar 23, 2017

"compatible" yes, however, only limitedly so. You would need to set up the interrupts directly, but other than that, it should "just work." EDIT: That's Free RTOS.

The ESP32 on the other hand is a little trickier, since the divisor isn't based around 53, but, 80.

@yf-hk
Copy link

yf-hk commented Mar 23, 2017

Really hope it could work on ESP32, WiFi + BLE + USB, what a combination!

@cnlohr
Copy link
Owner

cnlohr commented Mar 23, 2017

Maaan... so... I think the ESP32 is actually capable of doing full-speed USB (serial, network, etc. support), but I'm just spending all my free time now on libsurvive.

@ConstantinoSchillebeeckx

any movement on this? I'm also looking to use this with the ESP32! 🌟

@cnlohr
Copy link
Owner

cnlohr commented Sep 9, 2017

So, the big reason I have been at a standstill on that is because I really wanted to do full-speed. But it's really hard to do full-speed. I don't actually know if it's even possible.

Is it worth the effort to do low-speed? I don't think so, but if people feel differently... It would be rather easy to port.

@sbuller
Copy link

sbuller commented Sep 9, 2017

I have interest in using the ESP32 as a keyboard controller. As far as I'm aware (so very not an expert...), there's no advantage to full-speed for a keyboard.

Not to say that full-speed wouldn't be great—I can certainly imagine uses for that.

@cnlohr
Copy link
Owner

cnlohr commented Sep 9, 2017

That is correct. HID devices need only low-speed. Hnggg maybe it is worth the 10 or so hours it would take.

@idesignstuff
Copy link

idesignstuff commented Sep 9, 2017 via email

@cnlohr
Copy link
Owner

cnlohr commented Sep 9, 2017

To do something like that, i.e. talk to flash sticks, etc. You would need full-speed :(

@idesignstuff
Copy link

idesignstuff commented Sep 9, 2017 via email

@blackketter
Copy link

+1 for low-speed support! I'm primarily interested in HID, but it would also be super useful for a serial console and firmware updates.

I'm further imagining that once the USB support is reliable, ESP32 dev boards could be even cheaper without a hardware USB chip.

@ConstantinoSchillebeeckx

my application is using an ESP32 as a keyboard, so another +1 for low-speed support!

@cnlohr
Copy link
Owner

cnlohr commented Sep 11, 2017

I know Sprite was considering using the RMT module for low speed. I will be pinging him on Twitter to see where he ended up. It would be much better than the way it is done in ESPUSB, since it wouldn't require blocking a core while receiving. Perhaps I could take his start and put it in to finish.

@benjaminaigner
Copy link

@idesignstuff
Might be perfect for you:
github.com/asterics/FABI

We also want to get rid of the AVR Mega32U4 and do everything in the ESP32 -> one more wish for low speed USB on the ESP32 :-)

@cnlohr
I admire your work with ESPUSB, really nice stuff! And really nice working hours (according to the forum posts), Saturday evening seems to be a good hacking time :-).

@cnlohr
Copy link
Owner

cnlohr commented Nov 15, 2017

Last weekend I've started looking into using the ULP for low-speed USB, however, it would require the ULP being clocked by another source, and I'm unsure if that's possible.

@bryantfhayes
Copy link

Is this still being developed?

@yf-hk
Copy link

yf-hk commented Aug 4, 2020

@bryantfhayes You may try ESP-12K, it supports USB natively

@cnlohr
Copy link
Owner

cnlohr commented Aug 12, 2020

@bryantfhayes I don't think anyone is actively developing this, though it is likely to be ported to a modern esp82xx soon.

Closing issue because there is no plan to port to a freertos platform.

@cnlohr cnlohr closed this as completed Aug 12, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants