Spi and ethernet shield connect modbus tcp/ip

farazel:
hii
when i tried the examples i get this error error; "espcomm_upload_mem failed" ?? i did everything you said .

How can you get this error if the library examples should be run in the Mega?

i tried run in wemos not mega.because it has to be slave and i run in wemos slave example ?? where do i make mistakes??

Did you flash the WiFiSpi firmware into the Wemos? Did you connect the Wemos to Mega as SPI slave?

yes i flash wemos and connect to mega with spi and that error came with wemos sketch.

you get the error when you flash the firmware? try it with mega not connected

i finished the flash then run spislave sketch in wemos i get that error. ok i 'll try with mega.

the firmware is the slave sketch

i dont understand i run all sketchs for testing i get same error

I do not understand what you do. You can't flash the firmware?

Did you work with esp8266 before? Did you test the Wemos before? Or is this your first try with Arduino esp8266?

yes i worked esp8266 and wemos before. i know how to flash and i did.

hii i did not example codes to cover my project . can yo help ?? thanks

farazel:
i did not example codes to cover my project .

so you have the firmware flashed and the boards are connected over SPI with Mega as master and some good SS pin.

before flashing the firmware did you test the connection with SPI master and slave examples?

then you can test the library.

yes i can all things but i didnt i dont get it ???

farazel:
yes i can all things but i didnt i dont get it ???

what is what you don't get?
the WiFiWebClient example has some output?

i just simple sending and receiving data to master and slave. just my master(mega) send data to slave (wemos) the i read from slave the data just this. i don't get it ?? please help. thank you

the SPI master and slave examples work?

yes it's worked. but i dont figure out how to cover my project. :S

and now you have the WiFiSpiESP firmware in Wemos and you did try the WiFiWebClient example and it worked too?

no i didnt WiFiWebClient example just i tried the SPI master and slave examples because i think they are useful to my project and i just looked them.

farazel:
no i didnt WiFiWebClient example just i tried the SPI master and slave examples because i think they are useful to my project and i just looked them.

is it not the same like your communication between the Megas?