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

Any hints how to run on an ESP32-S3? (SOLVED with vTaskDelay(1); as found by lordryck) #54

Open
MagnusThome opened this issue Sep 15, 2023 · 4 comments

Comments

@MagnusThome
Copy link

I comment out everything regarding MCP2517FD and MCP2515 in both esp32_can.cpp and esp32_can.h (mainly so no to bother with the GPIOs and an open floating INT pin)

I change the GPIOs in esp32_can.cpp to 13 and 14 which is where the CAN transceiver is connected on my board. I also tried setting them with CAN0.setCANPins((gpio_num_t)13, (gpio_num_t)14);

But booting up stops and hangs on CAN0.begin(CAN_BPS_500K); and I never get any further?

@MagnusThome
Copy link
Author

Ah, read through this thread #52 and added vTaskDelay(1); as described there and everything works!

@MagnusThome MagnusThome changed the title Any hints how to run on an ESP32-S3 ? Any hints how to run on an ESP32-S3? (SOLVED with vTaskDelay(1); as found by lordryck) Sep 16, 2023
@collin80
Copy link
Owner

So, turns out I'm a moron and while I had this problem fixed ages ago, I never committed the changes and pushed them to github. I kept wondering why it worked fine for me and everyone else was having problems.

Sorry everyone... The recently pushed version should work better.

@MagnusThome
Copy link
Author

@collin80

Thank you for your work!

And if you want a RejsaCAN board (https://github.com/MagnusThome/RejsaCAN-ESP32) from me just contact me at magnus@rejsa.nu

@MagnusThome
Copy link
Author

Tested and works very well 👍

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

No branches or pull requests

2 participants