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

PING 10.10.10.10 host unreachable #1

Open
Virencq opened this issue Nov 25, 2023 · 3 comments
Open

PING 10.10.10.10 host unreachable #1

Virencq opened this issue Nov 25, 2023 · 3 comments

Comments

@Virencq
Copy link

Virencq commented Nov 25, 2023

Good day Sir,
I am using Nucleo 446ZE board with Wiznet W5000.
Iahve edited w5x00_spi.h
line16 #define SPI_PORT 2 // GPIOB, SCK_PIN = 3, MISO_PIN = 4, MOSI_PIN = 5 probably needs fixing.
As I have connected wiznet to SPI port 2.
What else and where I have to edit MOSI, MISO.... pins to run.

@cakeslob
Copy link
Contributor

Hey Viren, there are some other parts that need changing, with the board definitions and linker scripts( ?) and stuff. The flexi uses a different bootloader address and clock freq. If you wanna play around, check out the with that stuff check out my other repo. it doesnt work but those are probably some of the things we need to change.

My first steps are to try and get it to run using the flexi hal pins, then work from there. Here is what I mapped out yesterday but I dont know what is needed.

PC3 === W5500 INTn = #define SPI_IRQ_PIN
PA9 === W5500 RSTn = #define SPI_RST_PORT

PA15 SPI CS = #define SPI_CS_PORT
PB3 SCK
PB4 MISO
PB5 MOSI

@cakeslob
Copy link
Contributor

Hey Viren, lets try using this repo to get it working on the nucleo. Lets start with the most vanilla thing we can, and just change the board profile. The main repo is known working, so lets try to just get a working build for just nucleo.

This is my new attempt of getting it working with minimal changes at proof of concept. it compiles but I have not tested it yet.

PA15 SPI CS
PB3 SCK
PB4 MISO
PB5 MOSI

I left some instructions just incase, this build is more like the other ethernet version and less like the mbed version.

https:/cakeslob/Remora-STM32F4xx-W5500/tree/nucleo_2

@Virencq
Copy link
Author

Virencq commented Nov 26, 2023

I tried to upload your repo (compiled firmware.Bin) as it is, with SPI1 pins as you described. Still the same PING error- "Destination host unreachable".
But SPI1 with MBED static repo is working with reset pin. previously if I connect the reset pin to Wiznet LCNC won't come out of estop.
So all in all SPI1 in NucleoF446ZE with ethernet working well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants