Arudino PortentaH7 with the Longan Labs CAN FD Library Porting issue
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- arduino, c
- Ambito
- embedded-iot
Direzione di ricerca
Riprodurre la build dell’esempio CAN20_RECV_INT su un Arduino PortentaH7 con la libreria Longan_CANFD. Inizia da src/mcp2518fd_can_dfs.h alla riga 663 e confronta i nomi GPIO con l’header STM32 HAL mostrato nell’output del compilatore. L’attività è completata quando l’esempio viene compilato senza gli errori GPIO_PIN_POS.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Because of my years of work on the maker100 course using the Arduino PortentaH7, I get a lot of online requests for help. Often I can help by showing my library the Portenta Pro Community Solutions which can just be searched from the Arduino library manager. But sometimes, like this one, a request for help is way above my abilities.
@facchinm
@thechordmaster is trying to connect the PortentaH7 to the automotive CAN FD bus. Here is the link to the library Longan_CANFD. I don't have the hardware so can't do my normal brut force methods, trying stuff until something works or breaks. Any suggestions for @thechordmaster about what to try with these examples.
Jeremy Ellis
@hpssjellis
Having a quick look at the errors after installing the Longan_CANFD library link above it looks like it the issue is about the GPIO pin settings, which is a standard porting portenta issue. Can someone from Arduino have a look at this.
C:\Arduino-1.8.19\portable\packages\arduino\hardware\mbed_portenta\4.1.5\cores\arduino/mbed/targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/STM32H7xx_HAL_Driver/stm32h7xx_hal_gpio.h:86:36: error: expected identifier before '(' token
#define GPIO_PIN_0 ((uint16_t)0x0001) /* Pin 0 selected */
^
C:\arduino-1.8.19\portable\sketchbook\libraries\Longan_CANFD-master\src/mcp2518fd_can_dfs.h:663:16: note: in expansion of macro 'GPIO_PIN_0'
typedef enum { GPIO_PIN_0, GPIO_PIN_1 } GPIO_PIN_POS;
^
C:\Arduino-1.8.19\portable\packages\arduino\hardware\mbed_portenta\4.1.5\cores\arduino/mbed/targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/STM32H7xx_HAL_Driver/stm32h7xx_hal_gpio.h:86:36: error: expected '}' before '(' token
#define GPIO_PIN_0 ((uint16_t)0x0001) /* Pin 0 selected */
^
C:\arduino-1.8.19\portable\sketchbook\libraries\Longan_CANFD-master\src/mcp2518fd_can_dfs.h:663:16: note: in expansion of macro 'GPIO_PIN_0'
typedef enum { GPIO_PIN_0, GPIO_PIN_1 } GPIO_PIN_POS;
^
C:\Arduino-1.8.19\portable\packages\arduino\hardware\mbed_portenta\4.1.5\cores\arduino/mbed/targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/STM32H7xx_HAL_Driver/stm32h7xx_hal_gpio.h:86:47: error: expected ')' before numeric constant
#define GPIO_PIN_0 ((uint16_t)0x0001) /* Pin 0 selected */
^
C:\arduino-1.8.19\portable\sketchbook\libraries\Longan_CANFD-master\src/mcp2518fd_can_dfs.h:663:16: note: in expansion of macro 'GPIO_PIN_0'
typedef enum { GPIO_PIN_0, GPIO_PIN_1 } GPIO_PIN_POS;
^
In file included from C:\arduino-1.8.19\portable\sketchbook\libraries\Longan_CANFD-master\src/mcp2518fd_can.h:6:0,
from C:\arduino-1.8.19\portable\sketchbook\libraries\Longan_CANFD-master\examples\CAN20_RECV_INT\CAN20_RECV_INT.ino:32:
C:\arduino-1.8.19\portable\sketchbook\libraries\Longan_CANFD-master\src/mcp2518fd_can_dfs.h:663:41: error: 'GPIO_PIN_POS' does not name a type; did you mean 'GPIO_PIN_SET'?
typedef enum { GPIO_PIN_0, GPIO_PIN_1 } GPIO_PIN_POS;
^~~~~~~~~~~~
GPIO_PIN_SET
- Lingua principale
- C
- Stelle
- 411
- Fork
- 229
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di arduino/ArduinoCore-mbed
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
arduino/ArduinoCore-mbed#1126 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
arduino/ArduinoCore-mbed#1123 · 1 commento ·
-
bug GIGA Portenta WiFi
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
arduino/ArduinoCore-mbed#653 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
arduino/ArduinoCore-mbed#616 · 1 commento ·
-
RP2040
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
arduino/ArduinoCore-mbed#288 ·
Tutte le issue di arduino/ArduinoCore-mbed
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
-
zkp_ctime_tests leaves the last blinding factor of pedersen_blind_generator_blind_sum unmarkedApertasecurity
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 93/100
btclib-org/btclib-secp256k1#1427 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
esmuellert/codediff.nvim#594 ·
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 67/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 60/100
phuslu/nginx-ssl-fingerprint#108 ·
I maintainer di solito rispondono entro 1 giorno