first I thought OMG diggin' down all the rabbit-hole of analysing the corefiles.
Did nobody ever before wrote a demo-code?
Sure when arduino-IDE ( I am using the old version 1.8.19) is adjusted to RaspBerry Pi Pico the examples show
File - examples - examples from custom libraries - ACAN2515 - LoopBasicDemoRaspBerryPiPico
And indeed there is a comment
// The Pico has two SPI peripherals, SPI and SPI1. Either (or both) can be used.
// The are no default pin assignments so they must be set explicitly.
// Testing was done with Earle Philhower's arduino-pico core:
// https://github.com/earlephilhower/arduino-pico
though this comment tells not everything that is important:
from this comment I concluded that almost any pin be used and choosed them
"randomly" This resulted in the pico AND Arduino-IDE beeing locked up!
I had to use the task-manager to kill all IDE-processes to make the IDE work again.
So I expanded the comment to explicitly say what is important
// The Pico has two SPI peripherals, SPI-0 and SPI-1. Either (or both) can be used.
// The are no default pin assignments so they must be set explicitly.
// According to the RP2040 data sheet, section 1.4.3 ”GPIO Functions” page 13,
// you have the following choices for SPI pins:
// SPI-0_SCK IO-Pins: 2, 6, 18, 22
// SPI-0_MOSI (SPI0 TX) IO-Pins: 3, 7, 19, 23
// SPI-0_MISO (SPI0 RX) IO-Pins: 0, 4, 16, 20
// SPI-0 CS IO-Pins: 1, 5, 17, 21
// SPI-1_SCK IO-Pins: 10, 14, 26
// SPI-1_MOSI (SPI1 TX) IO-Pins: 11, 15, 27
// SPI-1_MISO (SPI1 RX) IO-Pins: 8, 12, 24, 28
// SPI-1_CS IO-Pins: 9, 13, 25, 29
I found this better and more detailed information in the doc-file of the
ACAN2515.h-library-sub-folder
C:......\libraries\ACAN2515\extras named acan2515.pdf
As much as I appreciate the voluntary work of so many people to create open source software
and I honor this I want to say additionally: improve the documentation
best regards Stefan