pierremolinaro / acan-esp32

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

Problème de compilation depuis la Mise à Jour 1.1.0 #6

Closed BOBILLEChristophe closed 10 months ago

BOBILLEChristophe commented 1 year ago

Bonjour Pierre,

Petit problème à la compilation depuis mon passage à la 1.1.0. Du coup, retour à la version précédente qui compile bien.

Mac OSX 10.14.6 - IDE Arduino 1.8.19

Bravo pour le travail réalisé avec ces biblio et merci par avance pour la réponse.

Christophe

/Users/christophe/Documents/Arduino/libraries/ACAN_ESP32/src/ACAN_ESP32.cpp: In member function 'void ACAN_ESP32::setGPIOPins(gpio_num_t, gpio_num_t)': /Users/christophe/Documents/Arduino/libraries/ACAN_ESP32/src/ACAN_ESP32.cpp:52:32: error: 'TWAI_TX_IDX' was not declared in this scope pinMatrixOutAttach (inTXPin, TWAI_TX_IDX, false, false) ; ^ /Users/christophe/Documents/Arduino/libraries/ACAN_ESP32/src/ACAN_ESP32.cpp:55:31: error: 'TWAI_RX_IDX' was not declared in this scope pinMatrixInAttach (inRXPin, TWAI_RX_IDX, false) ; ^ /Users/christophe/Documents/Arduino/libraries/ACAN_ESP32/src/ACAN_ESP32.cpp: In member function 'uint32_t ACAN_ESP32::begin(const ACAN_ESP32_Settings&, const ACAN_ESP32_Filter&)': /Users/christophe/Documents/Arduino/libraries/ACAN_ESP32/src/ACAN_ESP32.cpp:153:25: error: 'PERIPH_TWAI_MODULE' was not declared in this scope periph_module_enable (PERIPH_TWAI_MODULE) ; ^ /Users/christophe/Documents/Arduino/libraries/ACAN_ESP32/src/ACAN_ESP32.cpp:206:19: error: 'ETS_TWAI_INTR_SOURCE' was not declared in this scope esp_intr_alloc (ETS_TWAI_INTR_SOURCE, 0, isr, this, & mInterruptHandler) ;

pierremolinaro commented 1 year ago

Bonjour Christophe,

Il faut sans doute mettre à jour via le Board Manager la gestionnaire des cartes ESP32 : j'utilise la dernière, la 2.0.5.

Quelle version utilises-tu ?

Et merci pour tes encouragements !

Amicalement,

Pierre

Le 6 oct. 2022 à 15:27, BOBILLEChristophe @.***> a écrit :

Bonjour Pierre,

Petit problème à la compilation depuis mon passage à la 1.1.0. Du coup, retour à la version précédente qui compile bien.

Mac OSX 10.14.6 - IDE Arduino 1.8.19

Bravo pour le travail réalisé avec ces biblio et merci par avance pour la réponse.

Christophe

/Users/christophe/Documents/Arduino/libraries/ACAN_ESP32/src/ACAN_ESP32.cpp: In member function 'void ACAN_ESP32::setGPIOPins(gpio_num_t, gpio_num_t)': /Users/christophe/Documents/Arduino/libraries/ACAN_ESP32/src/ACAN_ESP32.cpp:52:32: error: 'TWAI_TX_IDX' was not declared in this scope pinMatrixOutAttach (inTXPin, TWAI_TX_IDX, false, false) ; ^ /Users/christophe/Documents/Arduino/libraries/ACAN_ESP32/src/ACAN_ESP32.cpp:55:31: error: 'TWAI_RX_IDX' was not declared in this scope pinMatrixInAttach (inRXPin, TWAI_RX_IDX, false) ; ^ /Users/christophe/Documents/Arduino/libraries/ACAN_ESP32/src/ACAN_ESP32.cpp: In member function 'uint32_t ACAN_ESP32::begin(const ACAN_ESP32_Settings&, const ACAN_ESP32_Filter&)': /Users/christophe/Documents/Arduino/libraries/ACAN_ESP32/src/ACAN_ESP32.cpp:153:25: error: 'PERIPH_TWAI_MODULE' was not declared in this scope periph_module_enable (PERIPH_TWAI_MODULE) ; ^ /Users/christophe/Documents/Arduino/libraries/ACAN_ESP32/src/ACAN_ESP32.cpp:206:19: error: 'ETS_TWAI_INTR_SOURCE' was not declared in this scope esp_intr_alloc (ETS_TWAI_INTR_SOURCE, 0, isr, this, & mInterruptHandler) ;

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

BOBILLEChristophe commented 1 year ago

Merci Pierre pour la réponse (rapide). Je suis toujours en 1.8 pour l'IDE mais la MAJ de ACAN a bien été faite avec le gestionnaire de carte. C'était principalement pour te signaler le problème mais je suis revenu en 1.0.6 pour ACAN et ça fonctionne pour moi !

Bien à toi

JohnGENZ commented 1 year ago

Hi I think 2.0.5 refers to the Arduino Core. It is good to know that ACAN 1.1.0 works with V2.0.5. of the Core.

I use ACAN 1.1.0 with V2.0.3 and it works perfectly. I had great difficulty updating to V2.0.5 of the Core.

V2.0.5 of the Arduino core uses ESP-IDF v4.4.2. Something in my system (not ACAN) seems not to work with this version of the Espressif IDE.

Kind Regards, John

pierremolinaro commented 1 year ago

Hello,

To be precise, I use:

I have just checked ACAN_ESP32 1.1.0 compiles with ESP32 from Espressif Systems 2.0.4 and ESP32 from Espressif Systems 2.0.0.

Best regards,

Pierre

Le 6 oct. 2022 à 21:57, JohnGENZ @.***> a écrit :

Hi I think 2.0.5 refers to the Arduino Core. It is good to know that ACAN 1.1.0 works with V2.0.5. of the Core.

I use ACAN 1.1.0 with V2.0.3 and it works perfectly. I had great difficulty updating to V2.0.5 of the Core.

V2.0.5 of the Arduino core uses ESP-IDF v4.4.2. Something in my system (not ACAN) seems not to work with this version of the Espressif IDE.

Kind Regards, John

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