Comments (5)
Hi @JanuNoo ,
So far I've only tested with opencores support in IDF and it worked without problems. I believe because it is not a real driver, opencores does not have support turned on in the Arduino.
https://github.com/espressif/qemu/wiki#enabling-ethernet-support
Theoretically, the ESP32 should work with the ETH W5500 connected to the SPI port, but I haven't done that test yet.
Below the examples: https://github.com/espressif/esp-idf/tree/master/examples/protocols/http_request and https://github.com/espressif/esp-idf/tree/master/examples/protocols/http2_request configured to run on PICSimLab:
It's only work on the last version of PICSimLab https://github.com/lcgamboa/picsimlab/releases/tag/latestbuild
from picsimlab.
Hello,
I can confirm that the new examples you posted work indeed.
Regarding on arduino:
I tried using ESP32 with the ETH W5500 connected to the SPI port but again no luck.
I have tried manually configuring the CS pin ("Ethernet.init(10);") and without.
Because W5500 part does not support DHCP I used a static IP address ("Ethernet.begin(mac, ip)").
For configuring W5500 part I used the following pins:
W5500 <---> ESP32
MOSI <---> GPIO23
MISO <---> GPIO19
SCK <---> GPIO18
SS/CS <---> GPIO5
INT <---> GPIO4
Also I tried adding this one too:
RST <---> EN (pin 2)
I don't know if I am doing something wrong or if it is just not possible.
Also, does "picsimlab" support SPIFFS? if not, do you have any plans to support it in the future?
Thanks
from picsimlab.
I confirm that a code that works for the real w5500 and ESP32 does not work in the simulator.
I detected some issues that need to be fixed. The main thing is that the data written by the SPI is not being generated correctly in MOSI pin. The current implementation of the w5500 also does not yet implement the interrupt output and the version register (which is not documented in the datasheet most used by the idf driver).
The W5500 implemented in PICSimLab has DHCP support implemented, but the W5500 IP address is not used for packet routing, the localhost address is always used.
Yes, the qemu-esp32 (used by PICSimLab) has support to SPIFFS.
As soon as I have time I will try to find the source of the problem. Any news I'll get in touch.
from picsimlab.
Hello,
Thanks for the fast and useful replies. Everything is more clear for me now.
And thanks also for this wonderful project, is very nice.
from picsimlab.
I solved the qemu-esp32 SPI problem. But I couldn't make it work with the IDF ethernet support because it uses the MACRAW mode of the w5500 that is not yet implemented in PICSimLab. I believe it is possible to implement MACRAW mode using RAW sockets (which usually requires administrator privileges), but I won't have time to implement that for now. And I believe it will take a considerable amount of work.
from picsimlab.
Related Issues (20)
- simavr tagging and naming scheme (to build Flatpak) HOT 14
- Problem with RTC HOT 7
- PICSimLab don't resize or refresh this window on wayland (Linux) HOT 1
- [question/suggestion] save/load memory state to/from file HOT 4
- Problem with 74xx595 block. HOT 1
- Trying to program LCD1602 in PICGenios using PIC16F877A HOT 2
- stm32 is using a qemu version that is too old and zephyr is crashing HOT 18
- [TIP] Installing on Ubuntu 18.04.5
- gdk pixbuf error HOT 9
- PicsimLab will not run HOT 7
- I2C is not working on BluePill HOT 3
- PIC18F26K80 HOT 4
- Error compiling with Clang on macOS HOT 6
- LEDs with push button don't hold up on continuous press HOT 3
- Load Cell & HX711 Module HOT 3
- PICGenios 4 digit 7 segment multiplexing uneven contrast HOT 4
- Cannot build PICSimlab 0.8.12 from source HOT 1
- Error loading saved Workspace on Windows HOT 2
- Remote TCP interface HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from picsimlab.