arumade1990
Hey all, I'm finally trying out running my ESP32 as a slave to the windows runtime.
After a bit of stumbling, I was able to get it to work with being able to upload a .st file from my computer to the site and execute it on the ESP32. I just used the blink program with an extra input added that connects to another coil. Both of the outputs on the ESP32 are connected to physical LEDS.
 
My issue is that the coil that is on the blink timer operates correctly when I run it from the windows runtime, and looks right in the monitor tab, but nothing happens when I try to force either of the inputs true from the monitor tab.
 
I'm not entirely sure what I'm doing wrong.
Reply 0 0
thiagoralves
You can’t force inputs from the monitoring tab. This feature was never implemented fully. You can, however, force from the editor if you connect the debugger to the runtime. Just open your program on the editor and click on the blue bug icon on the top toolbar. Then provide the IP address of your windows runtime (not the ESP) and connect. Once the debugger is connected, you can view the debug instance by clicking on the glasses icon at the left panel
Reply 0 0
arumade1990
I'll give it a shot after work! Do the windows project and the slave runtimes need to match for the wifi debugging to work? Or does it update the editor with whats in the slave board? Yesterday I did try to do the wifi debug mode, but the project on the slave board was just a blank project with the network settings, and it wouldn't let me do it. I didn't try having the same project because I wasn't sure what to do and I then ran out of time to mess with it for the day.
Reply 0 0
thiagoralves
That's what I'm saying, you must connect to the Windows runtime, not to the ESP32. The project on your editor must match the project you have running on your Windows runtime. You will debug the Windows runtime, not the ESP32. The ESP32 is just a slave board in your setup, that works as dumb IO. It is not running any program to be debugged. Once you connect to the Windows runtime you will be able to force things running on the Windows runtime. Since the ESP32 is a slave of that, the IOs there will reflect this.
 
With all that being said, I honestly don't understand why you're using the ESP32 as a slave. With all that horsepower you should be able to run and debug your programs directly on the ESP32 itself. Unless you're trying to replicate a setup with a lot of remote sensors/actuators, and the ESP32 is acting like one of those, to me it makes more sense to just have the ESP32 run everything.
Reply 0 0
arumade1990
I got it working now, with the wifi debug. I was basically just using the ESP32 as a test to see how it worked, but I was trying to do it the wrong way. Makes more sense now though. And yeah, realistically I wouldn't probably ever use the ESP32 as a slave. But it worked for testing. Maybe if I had a huge bank of them and wanted to run them all with the same program, but debug using one location or something. Either way not a likely case for me.
 
Thanks!
Reply 0 0
Reply