This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to communicate with Arduino UNO CAN bus shield

Hi, DevZone,

I am trying connect nRF52480 Preview DK and an Arduino UNO CAN Bus shield.

What I did is:

1) I directly hook CAN Bus shield on the top of nRF52480 Preview DK. 

2) configure SPI PIN number corresponding to Arduino SPI PIN number.

nrf_drv_spi_config_t spi_config = NRF_DRV_SPI_DEFAULT_CONFIG;
spi_config.ss_pin = SPI_SS_PIN;
spi_config.miso_pin = SPI_MISO_PIN;
spi_config.mosi_pin = SPI_MOSI_PIN;
spi_config.sck_pin = SPI_SCK_PIN;

spi_config.irq_priority = APP_IRQ_PRIORITY_LOW;
spi_config.orc = 0xCC;
spi_config.frequency = NRF_DRV_SPI_FREQ_4M;
spi_config.mode = NRF_DRV_SPI_MODE_0;
spi_config.bit_order = NRF_DRV_SPI_BIT_ORDER_MSB_FIRST;

3) modify a CAN bus library...

I would like to know if 1) and 2) are correct?

Appreciate for any comments! 

Parents Reply Children
No Data
Related