B4R Question [SOLVED] WeMos D1 Mini clone ... Having problems uploading sketch

Cableguy

Expert
Licensed User
Longtime User
Hi Guys...

I'm trying my WeMos Clone and I'm always getting a time out error...

Here's my board:
ed0532e3d105c90af5a24072431d6d7d.jpg

I'm trying a very simple example derivate from one of EREL's examples, that in this case (should) just log the wireless networks in range SSID's

B4X:
Sub Process_Globals
  Public Serial1 As Serial
  Private wifi As ESP8266WiFi
End Sub

Private Sub AppStart
   Serial1.Initialize(115200)
   Log("AppStart")
   ScanNetworks
End Sub

Private Sub ScanNetworks 'ignore
   Dim numberOfNetworks As Byte = wifi.Scan
   Log("Found: ", numberOfNetworks, " networks.")
   For i = 0 To numberOfNetworks - 1
     Log(wifi.ScannedSSID(i))
   Next
End Sub

Please help!!
 
Last edited:

barx

Well-Known Member
Licensed User
Longtime User
What's your settings in Board selector?
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
WeMos D1 R2 & Mini
160Mhz(tried 80MHz)
4M3M(tried 4M1M)
921600
COM3(same as my Duino R3 clone, auto-detected)
115200
 
Upvote 0

barx

Well-Known Member
Licensed User
Longtime User
same as my woring settings for full size board, cannot see why it wouldn't work at that. Have you tried slowing down the upload speed?

can you write to it from arduino ide with same settings?
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
I haven't tried writing to it from Arduino ide because I cannot make sense of it... or find a simple enough sketch, like the above
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
From time to time, my error changes from a simple time out, to this:
exit status 1C:\Users\psapg\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar: unable to rename '\\RASPBERRYPI\Data\B6SOM5~D\B4R\ESP8266\Objects\bin/arduino.ar'; reason: Permission denied

So I decided to copy the folder to my D drive and it did compile... eventually! Timeout set to 280secs...
But nothing happens after the compile successful message... it's like the code is not executed
 
Last edited:
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
So I finally got it working... Seems like B4R does not like much working with remote locations...
I copied the project folder to my Local D drive, and re-set all the Board params to their default values and lowered back my timeout to 120..
All works fine!!
 
Upvote 0

barx

Well-Known Member
Licensed User
Longtime User
So you had the project on a network share and it wouldn't work. Interesting to know. I will have to keep a mental note of that one ;)

Good find @Cableguy
 
Upvote 0
Top