Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow use of other SPI ports on boards with multiple SPI #116

Open
jhnwmr opened this issue Oct 14, 2019 · 4 comments
Open

Allow use of other SPI ports on boards with multiple SPI #116

jhnwmr opened this issue Oct 14, 2019 · 4 comments
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@jhnwmr
Copy link

jhnwmr commented Oct 14, 2019

Hello,
I want to use the W5100 Ethernet module with the ESP32 on the second SPI bus.
I also use the other bus. What change do I have to make in the library to use the second bus?

@per1234
Copy link
Contributor

per1234 commented Oct 14, 2019

This issue tracker is only to be used to report bugs or feature requests. It is not a place to request support. This topic is more appropriate for the Arduino Forum. I'm sure we'll be able to help you with your problem over there.

Please do this:

  1. Read http://forum.arduino.cc/index.php?topic=148850
  2. If you haven't already done so, create a new thread in the appropriate section of the forum (http://forum.arduino.cc/), following all the rules. Be sure to post your code, using code tags (</> button on the toolbar).

@per1234 per1234 closed this as completed Oct 14, 2019
@per1234 per1234 added the conclusion: invalid Issue/PR not valid label Oct 14, 2019
@PaulStoffregen
Copy link
Contributor

@per1234 - this kind of is a feature request. It could be re-imagined about any board with more than one SPI port. I would recommend reopening, but rename to something like "allow use of other SPI ports, on boards with multiple SPI".

@per1234 per1234 reopened this Oct 15, 2019
@per1234 per1234 changed the title Configure to HSPI on ESP32 Allow use of other SPI ports on boards with multiple SPI Oct 15, 2019
@per1234 per1234 added Type: Improvement and removed conclusion: invalid Issue/PR not valid labels Oct 15, 2019
@Ralf9
Copy link

Ralf9 commented Jan 20, 2020

I can use this too.
Is this a usable option?
https://github.com/stevstrong/Ethernet_STM32

  • The library needs to know the SPI port on which you connected the W5500 chip, and the corresponding chip select pin. Therefore you have to declare an SPI class object with appropriate SPI port number (1..2 for F1, 1..3 for F4)
    SPIClass mSpi(1); // you can use 1..2 for F1, 1..3 for F4)
  • Then you need to call the following function in setup() before Ethernet.begin():
    Ethernet.init(mSpi, PA4); // SPI class object, chip select pin on your choice

@per1234 per1234 added topic: code Related to content of the project itself type: enhancement Proposed improvement labels Feb 22, 2022
@DprasK
Copy link

DprasK commented Jul 5, 2023

if i use mcu board (official not maple core)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

5 participants