microsoft / pxt-maker

MakeCode target for "Maker" boards (beta)
https://maker.makecode.com/
Other
115 stars 80 forks source link

Code not running on LILYGO® TTGO T8 ESP32-S2 #350

Open louisvangeldrop opened 2 years ago

louisvangeldrop commented 2 years ago

Describe the bug After downloading the generated .bin file, the program will not run

To Reproduce Steps to reproduce the behavior:

  1. I followed the instructions at adafruit to install TinyUF2. I had to put usb dip-switches in 'otg' mode

  2. Download the tinyuf2-lilygo_ttgo_t8_s2_st7789-0.5.2.zip file

  3. With the online ESPTool I have flashed the combined.bin at location 0x0

  4. Worked well. TTGOS2BOOT (D:) pops up.

  5. In maker.makecode.com; select the esp32 board

  6. In Javascript:

  7. forever(function () { pins.LED.digitalWrite(false) control.waitMicros(1 1000 1000) pins.LED.digitalWrite(true) control.waitMicros(1 1000 1000) })

  8. Test the program with the simulator. LED-light blinks. Works fine

  9. Download the.bin file to the UF2 D-disk as "maker-espressif-esp32-devkit-c (3).bin"

  10. LED on the board is not blinking.

  11. Switch the usb-dipswitch to 'USB"-mode.

  12. Helas. LED on the board is not blinking.

Desktop (please complete the following information):

jamesadevine commented 2 years ago

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.

louisvangeldrop commented 2 years ago

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

louisvangeldrop commented 2 years ago

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?