# Portenta Vision Shield shared I/O pins

**URL:** <https://forum.arduino.cc/t/portenta-vision-shield-shared-i-o-pins/897396>\
**Category:** Portenta Vision Shield\
**Created:** [August 20, 2021, 7:11am UTC](https://forum.arduino.cc/t/portenta-vision-shield-shared-i-o-pins/897396 "2021-08-20T07:11:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Workshopshed](https://avatars.discourse-cdn.com/v4/letter/w/5fc32e/32.png) [@Workshopshed](https://forum.arduino.cc/u/Workshopshed)\
**Post date:** [August 20, 2021, 7:11am UTC](https://forum.arduino.cc/t/portenta-vision-shield-shared-i-o-pins/897396/1 "2021-08-20T07:11:24Z")

</div>

I am trying to get an SPI based EPaper board to work with the Portenta + Vision shield.  
I am using the H7 core and SPI1 along with digital pins D2-D5

Having some challenges and wondered if there were any pins on the low density header that were shared with the shield?

One of my symptoms was the red Led flashing with what seems to be a code.

---

<div class="post-metadata">

**Author:** ![Workshopshed](https://avatars.discourse-cdn.com/v4/letter/w/5fc32e/32.png) [@Workshopshed](https://forum.arduino.cc/u/Workshopshed)\
**Post date:** [August 23, 2021, 8:48pm UTC](https://forum.arduino.cc/t/portenta-vision-shield-shared-i-o-pins/897396/2 "2021-08-23T20:48:47Z")

</div>

Found out about the flashing red light on this thread.

> <https://github.com/107-systems/107-Arduino-MCP2515/issues/36>
>
> Hello! I'm trying to receive CAN frames with the Portenta and the \[MKR CAN shiel…d\](https://store.arduino.cc/arduino-mkr-can-shield) using this library. However, I'm not able to receive anything. I'm trying the CAN sniffer example. The code compiles, but I do not see any data in the serial terminal. I visualize the CAN frame in an oscilloscope and it seems to be fine. Any idea why it might not be working? 
> Update: I noticed that once the CAN frame starts to arrive to the Portenta, it enters in some sort of error mode (the RGB LED starts to blink in red). I even tried the loopback example without any physical CAN bus connected to the Portenta, and it keeps crashing.

I found the schematic for the vision shield particularly hard to read, it has stuff crossed out etc, so Massimo pointed me at the pinout docs. I cross checked the pins Vs those on the low density headers, just the I2C pins are shared, D11 and D11.

> **[Pinout\_VisionShield\_latest.pdf](https://content.arduino.cc/assets/Pinout_VisionShield_latest.pdf)**
>
> 392.82 KB

My trouble turned out to be driver/code related and nothing to do with the shield or SPI.  
For more on SPI see [Minimal example of SPI for Portenta H7 · Issue #131 · arduino/ArduinoCore-mbed · GitHub](https://github.com/arduino/ArduinoCore-mbed/issues/131)

---

<div class="post-metadata">

**Author:** ![Workshopshed](https://avatars.discourse-cdn.com/v4/letter/w/5fc32e/32.png) [@Workshopshed](https://forum.arduino.cc/u/Workshopshed)\
**Post date:** [September 3, 2021, 11:26pm UTC](https://forum.arduino.cc/t/portenta-vision-shield-shared-i-o-pins/897396/3 "2021-09-03T23:26:03Z")

</div>

> [@Workshopshed](#):
>
> just the I2C pins are shared, D11 and D11.

After further experimentation / digging I discovered that as well as these 2 pins, D1 aka PK1 aka PWM5 is also used by the camera code to implement a timer.

Also couple of analogue pins used:  
PA4 / A6  
PA6 / A7

See

> <https://github.com/arduino/ArduinoCore-mbed/blob/d9b005f210ae96adc34672f012ed637f52a8ad5b/variants/PORTENTA_H7_M7/variant.cpp>

and

> <https://github.com/arduino/ArduinoCore-mbed/blob/d9b005f210ae96adc34672f012ed637f52a8ad5b/libraries/Portenta_Camera/camera.cpp>

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [January 1, 2022, 11:26pm UTC](https://forum.arduino.cc/t/portenta-vision-shield-shared-i-o-pins/897396/4 "2022-01-01T23:26:43Z")

</div>

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.
