Page 1 of 1

Pi PICO SPI / CAN component pins in FC

Posted: Thu Nov 09, 2023 7:43 pm
by jay_dee
Hi Guys,
Started a FC Pi PICO project, added a CAN component.
Component Channel options are Software/ Channel 1 SPI0 / Channel 2 SPI1

Unfortuantly the CAN device we have on the bench (Waveshare CAN Module) has a fixed pinout.
MISO - GP4
CS - GP5 or GP19
CLK - GP6
MOSI - GP7
INT - GP21 or GP22

FC Pinout options for Channel1 SPI0 are,
MISO - GP4, GP16
CS - Anypin
CLK - GP2, GP18
MOSI - GP3 GP19
This seems to be a partial combination of SPI pins allowed by the possible PICO SPI pins ( unless as is usual I miss understand!)

PICO Pinouts from the Web give the following options.
MISO - GP0, GP4, GP16
CS - GP1, GP5, GP17
CLK - GP2, GP6, GP18
MOSI - GP3, GP7, GP19

Is there a technical reason why not all options are availibe? :)
Thanks, J.

Re: Pi PICO SPI / CAN component pins in FC

Posted: Fri Nov 10, 2023 3:23 pm
by LeighM
Try the attached, into
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\PICO
(seems to work ok, one for the repo)

Re: Pi PICO SPI / CAN component pins in FC

Posted: Fri Nov 10, 2023 4:22 pm
by jay_dee
Thanks Leigh. That looks great in my FC10. I have yet to test on hardware but I'll have a play this weekend. Thanks Again. J.

OK Fantastic, just checked on some smashed together hardware. Getting CAN out. Thanks. Needs a bit of fudging on the Controller Oscillator value but thats a different post. :)