fix speed halved in ESP32-WROOM-32E module#33
Open
sdp8483 wants to merge 21 commits intomiwagner:masterfrom
Open
fix speed halved in ESP32-WROOM-32E module#33sdp8483 wants to merge 21 commits intomiwagner:masterfrom
sdp8483 wants to merge 21 commits intomiwagner:masterfrom
Conversation
ESP32 ECO3 added a configurable bit that will cause CAN bus speeds to be halved in new V3 core 32E module. This bit is in `TWAI_INT_ENA_REG`, bit4 which was previously reserved. Change respects reserved bit and should not cause issues for previous versions since this bit should not have been written to.
pilotak
added a commit
to pilotak/ESP32-Arduino-CAN
that referenced
this pull request
Apr 9, 2022
danielkucera "It looks like the module is much more stable when reset bit is first set and then cleared."
changed per build warning
|
I'm still seeing issues. I have an ESP32-WROOM-32D and am using this library for 1MBPS CAN BUS transfer. This is what I have in CAN.c: Stumped... not sure how to enable 1MBPS |
Author
|
@themagicm This library is outdated and is not maintained by the author. I have forked and updated it for my own purposes using the Espressif IDF API. I have linked it down below if you are interested in using it. Also check out the Espressif IDF page about the CAN peripheral and the API used. This works in the Arduino framework so you can use it directly in your code or use the library I linked above that also implements this API. |
|
I'm using it at 1mbit but it feels slow? Does that make sense?
Sent from Proton Mail mobile
…-------- Original Message --------
On Nov 7, 2023, 8:40 AM, Sam Perry wrote:
***@***.***(https://github.com/themagicm) This library is outdated and is not maintained by the author. I have forked and updated it for my own purposes using the Espressif IDF API. I have linked it down below if you are interested in using it.
[https://github.com/sdp8483/ESP32-Arduino-CAN](url)
Also check out the Espressif IDF page about the CAN peripheral and the API used. This works in the Arduino framework so you can use it directly in your code or use the library I linked above that also implements this API.
[https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/twai.html#](url)
—
Reply to this email directly, [view it on GitHub](#33 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/ACW7EAGBVILSUXXKMEX2JTTYDJB4FAVCNFSM5O47NZI2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZZHA3DQMZZGA3A).
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
enable using build flags
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ESP32 ECO3 added a configurable bit that will cause CAN bus speeds to be halved in new V3 core 32E module.
This bit is in
TWAI_INT_ENA_REG, bit4 which was previously reserved.Change respects reserved bit and should not cause issues for previous core versions since this bit was reserved and should not have been written to.