pierremolinaro / acan-esp32

An ESP32 CAN 2.0B library
MIT License
40 stars 16 forks source link

esp32-S3 #8

Closed taoloo897 closed 10 months ago

taoloo897 commented 10 months ago

Hi again and thanks a lot for your work. With esp32 wroomer 32U/D works greate. Today i bought a esp32-s3 with tft screen and it not work. This is the board https://vi.aliexpress.com/item/1005005187357655.html?spm=a2g0o.order_list.order_list_main.5.3e181802D58sAr&gatewayAdapt=glo2vnm Sketch is uploaded ok but after recieved on serial the first debug line " Serial.println("Configure ESP32 CAN");" nothing happen. This bord had available pins 15,16,17,18,43,44. I tried them all. The same thing. Please if you have any ideea. Thanks in advance

PS , this is what i received and esp reboot itself

21:41:04.959 -> 21:41:04.959 -> ELF file SHA256: 8e45cccc34f74f6c 21:41:04.959 -> 21:41:04.959 -> Rebooting... 21:41:04.959 -> ESP-ROM:esp32s3-20210327 21:41:04.959 -> Build:Mar 27 2021 21:41:04.959 -> rst:0xc (RTC_SW_CPU_RST),boot:0x8 (SPI_FAST_FLASH_BOOT) 21:41:04.959 -> Saved PC:0x40376c78 21:41:04.959 -> SPIWP:0xee 21:41:04.959 -> mode:DIO, clock div:1 21:41:04.959 -> load:0x3fce3808,len:0x44c 21:41:04.959 -> load:0x403c9700,len:0xbe4 21:41:04.959 -> load:0x403cc700,len:0x2a68 21:41:04.959 -> entry 0x403c98d4 21:41:05.154 -> Configure ESP32 CAN 21:41:10.393 -> Saved PC:0x40376c78 21:41:10.393 -> SPIWP:0xee 21:41:10.393 -> mode:DIO, clock div:1 21:41:10.393 -> load:0x3fce3808,len:0x44c 21:41:10.393 -> load:0x403c9700,len:0xbe4 21:41:10.393 -> load:0x403cc700,len:0x2a68 21:41:10.425 -> entry 0x403c98d4 21:41:10.588 -> Configure ESP32 CAN 21:41:15.606 -> E (10297) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time: 21:41:15.606 -> E (10297) task_wdt: - IDLE (CPU 0) 21:41:15.606 -> E (10297) task_wdt: Tasks currently run

pierremolinaro commented 10 months ago

Hi,

I've just looked at the ESP32S3 documentation, and I have discovered that the modules are not at the same address as for the ESP32.

I've made a new release with correct addresses at: https://github.com/pierremolinaro/acan-esp32

Can you try this ?

Unfortunatly, I have no ESP32-S3 board, so I cannot check my self.

Pierre

Le 12 août 2023 à 19:32, taoloo897 @.***> a écrit :

Hi again and thanks a lot for your work. With esp32 wroomer 32U/D works greate. Today i bought a esp32-s3 with tft screen and it not work. This is the board https://vi.aliexpress.com/item/1005005187357655.html?spm=a2g0o.order_list.order_list_main.5.3e181802D58sAr&gatewayAdapt=glo2vnm Sketch is uploaded ok but after recieved on serial the first debug line " Serial.println("Configure ESP32 CAN");" nothing happen. This bord had available pins 15,16,17,18,43,44. I tried them all. The same thing. Please if you have any ideea. Thanks in advance

— Reply to this email directly, view it on GitHub https://github.com/pierremolinaro/acan-esp32/issues/8, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEWKZVCGE4J67N62TU77VNDXU644NANCNFSM6AAAAAA3OCC26Y. You are receiving this because you are subscribed to this thread.

taoloo897 commented 10 months ago

Hi again.

I tested

Library works on esp32 normal but on esp32-s3 , first good thing is not reboot the board but not receive any message

Recieved

15:56:34.029 -> Configure ESP32 CAN 15:56:34.029 -> Bit Rate prescaler: 4 15:56:34.029 -> Time Segment 1: 13 15:56:34.029 -> Time Segment 2: 6 15:56:34.029 -> RJW: 4 15:56:34.029 -> Triple Sampling: no 15:56:34.029 -> Actual bit rate: 500000 bit/s 15:56:34.029 -> Exact bit rate ? yes 15:56:34.029 -> Sample point: 70% 15:56:34.029 -> Configuration OK!

but after these , not received id's and data . Same pins config with the esp32-32u wroomer. I have both on the table.

Thanks

pierremolinaro commented 10 months ago

Hello,

Currently, I have no ESP-S3 board, so I cannot help you.

I have ordered some XIAO ESP32-S3 boards, I will receive them in the next few days.

I'll let you know as soon as I've made any progress.

Pierre

Le 16 août 2023 à 09:28, taoloo897 @.***> a écrit :

Hi again.

I tested

Library works on esp32 normal but on esp32-s3 , first good thing is not reboot the board but not receive any message

Recieved

15:56:34.029 -> Configure ESP32 CAN 15:56:34.029 -> Bit Rate prescaler: 4 15:56:34.029 -> Time Segment 1: 13 15:56:34.029 -> Time Segment 2: 6 15:56:34.029 -> RJW: 4 15:56:34.029 -> Triple Sampling: no 15:56:34.029 -> Actual bit rate: 500000 bit/s 15:56:34.029 -> Exact bit rate ? yes 15:56:34.029 -> Sample point: 70% 15:56:34.029 -> Configuration OK!

but after these , not received id's and data . Same pins config with the esp32-32u wroomer. I have both on the table.

Thanks

— Reply to this email directly, view it on GitHub https://github.com/pierremolinaro/acan-esp32/issues/8#issuecomment-1680102301, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEWKZVGLZKASDYHIGBOOALTXVRZCPANCNFSM6AAAAAA3OCC26Y. You are receiving this because you commented.

taoloo897 commented 10 months ago

Hi again and thanks. I saw a little, because i don;t know very good the c or c++ , language in you made the library, do you use TWAI libray too?

pierremolinaro commented 10 months ago

Hi,

I have began my library before the TWAI api was exposed, so I do not use it.

I have just received the XIAO ESP32-S3 boards, I begin the tests this afternoon.

Pierre

Le 18 août 2023 à 14:15, taoloo897 @.***> a écrit :

Hi again and thanks. I saw a little, because i don;t know very good the c or c++ , language in you made the library, do you use TWAI libray too?

— Reply to this email directly, view it on GitHub https://github.com/pierremolinaro/acan-esp32/issues/8#issuecomment-1683832788, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEWKZVCZ2UKFREXXD5DMI7TXV5MHFANCNFSM6AAAAAA3OCC26Y. You are receiving this because you commented.

pierremolinaro commented 10 months ago

I think it is now ok for an ESP32S3. Can you check with the library at: https://github.com/pierremolinaro/acan-esp32

Pierre

Le 18 août 2023 à 14:15, taoloo897 @.***> a écrit :

Hi again and thanks. I saw a little, because i don;t know very good the c or c++ , language in you made the library, do you use TWAI libray too?

— Reply to this email directly, view it on GitHub https://github.com/pierremolinaro/acan-esp32/issues/8#issuecomment-1683832788, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEWKZVCZ2UKFREXXD5DMI7TXV5MHFANCNFSM6AAAAAA3OCC26Y. You are receiving this because you commented.

taoloo897 commented 10 months ago

I downloaded your library again and put over the old one. Nothing receive on canbus and nothing display on serial with s3, with wroomer works . STRANGE!

pierremolinaro commented 10 months ago

Sorry, I did not check bit rate, there is a bug here.

Le 19 août 2023 à 14:52, taoloo897 @.***> a écrit :

I downloaded your library again and put over the old one. Nothing receive on canbus and nothing display on serial with s3, with wroomer works . STRANGE!

— Reply to this email directly, view it on GitHub https://github.com/pierremolinaro/acan-esp32/issues/8#issuecomment-1684937423, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEWKZVFBVMNVJDTSU637C7DXWCZKLANCNFSM6AAAAAA3OCC26Y. You are receiving this because you commented.

pierremolinaro commented 10 months ago

Ok, I have understood : the TWAI_BUS_TIMING_0 is not the same, different in ESP32 and ESP32-S3. I make a release soon.

Le 19 août 2023 à 14:52, taoloo897 @.***> a écrit :

I downloaded your library again and put over the old one. Nothing receive on canbus and nothing display on serial with s3, with wroomer works . STRANGE!

— Reply to this email directly, view it on GitHub https://github.com/pierremolinaro/acan-esp32/issues/8#issuecomment-1684937423, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEWKZVFBVMNVJDTSU637C7DXWCZKLANCNFSM6AAAAAA3OCC26Y. You are receiving this because you commented.

pierremolinaro commented 10 months ago

I have fixed the bit rate bug for ESP32S3. Can you check with the library at: https://github.com/pierremolinaro/acan-esp32

Pierre

Le 19 août 2023 à 14:52, taoloo897 @.***> a écrit :

I downloaded your library again and put over the old one. Nothing receive on canbus and nothing display on serial with s3, with wroomer works . STRANGE!

— Reply to this email directly, view it on GitHub https://github.com/pierremolinaro/acan-esp32/issues/8#issuecomment-1684937423, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEWKZVFBVMNVJDTSU637C7DXWCZKLANCNFSM6AAAAAA3OCC26Y. You are receiving this because you commented.

taoloo897 commented 10 months ago

IT WORKS GREATE on Lilygo t-hmi 2.8" esp32 S3. Many Thanks. PS: for singleStandardFilter did exist an option to put more than 2 id's in filter?

pierremolinaro commented 10 months ago

Thank you !

In summary, there were two points to correct:

Pierre

Le 24 août 2023 à 08:57, taoloo897 @.***> a écrit :

IT WORKS GREATE on Lilygo t-hmi 2.8" esp32 S3. Many Thanks.

— Reply to this email directly, view it on GitHub https://github.com/pierremolinaro/acan-esp32/issues/8#issuecomment-1691113099, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEWKZVAIRWVMTWWWNLQCNLLXW33NNANCNFSM6AAAAAA3OCC26Y. You are receiving this because you modified the open/close state.