ESP32-WROVER-E and MCP2515 Communication Issues over SPI Bus

PeterG76
Posts: 17
Joined: Wed May 25, 2022 10:25 am

ESP32-WROVER-E and MCP2515 Communication Issues over SPI Bus

Postby PeterG76 » Fri Aug 19, 2022 4:25 pm

Hello,

We are having problems configuring an MCP2515 (TSSOP) CAN controller from our ESP32 application running on an ESP32-WROVER-E processor.

Our esp32 can driver is not getting the expected response. SPI trace is showing the MISO line to be always low. See attached

We are using the SENSOR_VP pin (GPIO32) on the ESP32-WROVER-E and wondered if there is a known issue with this pin pulling the line low.

Are there recommended configuration settings required for the ESP32-WROVER-E to set up our SPI bus correctly?
MISO_on_SPI_bus.png
MISO_on_SPI_bus.png (70.28 KiB) Viewed 3294 times

PeterG76
Posts: 17
Joined: Wed May 25, 2022 10:25 am

Re: ESP32-WROVER-E and MCP2515 Communication Issues over SPI Bus

Postby PeterG76 » Fri Aug 19, 2022 4:29 pm

The same application works on another board using an MCP2515 (QFN) device and an older ESP32-WROVER processor.

The pin-outs are the same as the ESP32-WROVER-E processor, so we are any configuration differences for SPI bus between the ESP32-WROVER and ES32-WROVER-E processors?

ESP_Sprite
Posts: 9766
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32-WROVER-E and MCP2515 Communication Issues over SPI Bus

Postby ESP_Sprite » Sat Aug 20, 2022 2:20 am

No, code should work the same on both modules.

ESP_LJH
Posts: 387
Joined: Tue May 18, 2021 9:21 am

Re: ESP32-WROVER-E and MCP2515 Communication Issues over SPI Bus

Postby ESP_LJH » Mon Aug 22, 2022 3:46 am

Could you provide complete schematic? ESP32-WROVER, do you mean module with 1.8 V flash?
I am confused SENSOR_VP is not GPIO32, could you make sure pin assignments.

PeterG76
Posts: 17
Joined: Wed May 25, 2022 10:25 am

Re: ESP32-WROVER-E and MCP2515 Communication Issues over SPI Bus

Postby PeterG76 » Tue Aug 23, 2022 8:05 am

ESP_LJH wrote:
Mon Aug 22, 2022 3:46 am
Could you provide complete schematic? ESP32-WROVER, do you mean module with 1.8 V flash?
I am confused SENSOR_VP is not GPIO32, could you make sure pin assignments.
Sorry, that is a typo. It should be GPIO36

PeterG76
Posts: 17
Joined: Wed May 25, 2022 10:25 am

Re: ESP32-WROVER-E and MCP2515 Communication Issues over SPI Bus

Postby PeterG76 » Tue Aug 23, 2022 3:43 pm

OK, so we have discovered the cause of our issue.

It turns out the crystal module driving OSC1 on the MCP2515 CAN driver was soldered the wrong way round on the PCB. This meant that the MCP2515 device was not responding to requests on the SPI bus.

Having replaced the crystal module in the correct orientation we now see MISO traffic between the ESP32-WROVER-E processor and the MCP2515 chip.

Thank you for your responses everyone. Our ESP32 application does therefore indeed work on both ESP32-WROVER and ESP32-WROVER-E processors.

Who is online

Users browsing this forum: No registered users and 88 guests