pxt-maker
pxt-maker copied to clipboard
Code not running on LILYGO® TTGO T8 ESP32-S2
Describe the bug After downloading the generated .bin file, the program will not run
To Reproduce Steps to reproduce the behavior:
-
I followed the instructions at adafruit to install TinyUF2. I had to put usb dip-switches in 'otg' mode
-
Download the tinyuf2-lilygo_ttgo_t8_s2_st7789-0.5.2.zip file
-
With the online ESPTool I have flashed the combined.bin at location 0x0
-
Worked well. TTGOS2BOOT (D:) pops up.
-
In maker.makecode.com; select the esp32 board
-
In Javascript:
-
forever(function () { pins.LED.digitalWrite(false) control.waitMicros(1 * 1000 * 1000) pins.LED.digitalWrite(true) control.waitMicros(1 * 1000 * 1000) })
-
Test the program with the simulator. LED-light blinks. Works fine
-
Download the.bin file to the UF2 D-disk as "maker-espressif-esp32-devkit-c (3).bin"
-
LED on the board is not blinking.
-
Switch the usb-dipswitch to 'USB"-mode.
-
Helas. LED on the board is not blinking.
Desktop (please complete the following information):
- OS: Windows 10
- Browser Edge
- Version: 97
Unless the board is pin compatible with an existing target board, it is unlikely that a MakeCode program will work. Here is an example of a pin mapping for one of our internal ESP32-S2 boards: https://github.com/microsoft/pxt-maker/blob/master/libs/jacdac-iot-s2/config.ts You will need to contribute something similar for your particular target board.
If it is the case your board is pin compatible with an existing target board, then we can have a look to see if there is an underlying issue.
I tried with Arduino using ESP32S2 native USB using an LED connected to pin 3 and that works well. Unfortunately when I do the same with Makecode it still does not work
The ESP32S2-board I am using is pin compatible with the espressif-esp32-devkit-c board. The download-button creates a .bin file. Can the extension cause the problem?
How do I flash s generated bin-file to the supported espressif-esp32-devkit-c board?