Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
louisvangeldrop opened this issue Nov 17, 2021 · 3 comments
Open

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

louisvangeldrop opened this issue Nov 17, 2021 · 3 comments

Comments

@louisvangeldrop
Copy link

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):

  • OS: Windows 10
  • Browser Edge
  • Version: 97
@jamesadevine
Copy link
Member

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
Copy link
Author

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
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants