SuperHouse / esp-open-rtos

Open source FreeRTOS-based ESP8266 software framework
BSD 3-Clause "New" or "Revised" License
1.53k stars 491 forks source link

Unable to use with Wemos D1 R2 #724

Open just-jason opened 5 years ago

just-jason commented 5 years ago

I have a strange issue that I can not understand. I am able the build a sketch and flash it to a Wemos Mini, but when I flash it to a D1 R2 ( they should be basically the same board +/-) The sketch does not run and the board hangs in boot. I have tried the PWM_test example and flashed it using esp flash download tools from Espresiff. I would have been quick to blame the hardware as defect, but if I test out any examples for the ArduinoIDE it runs just fine, and I am fairly sure that there is no issue in the build/ process as I tried a Wemos mini immediately after and with no changes to the sketch .bin or the flash tool, the board boots up and runs just fine. The only observation I have ben able to make is a very small difference between the boards on the SCK line. ( GPIO14)

D1 R1

On the D1 R2 there is an indicator LED ( with a pull up (?) resistor ), where as on the mini there is none of that. When I load a sketch from Esp-open-RTOS this pin is HIGH (LED is on )and the board just hangs.Tthis is not the case with a sketch from AduinoIDE , and yes, I have double checked my code to ensure that there is nothing going on with GPIO14. and I have checked that both boards have 32Mbit/ 4MB flash. I am not sure if I have overlooked something, but do I need to change the stock rboot .bin or blank_config. bin?