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

RGB Pins occupied by PSRAM #674

Open
hypercreeper opened this issue Dec 27, 2023 · 2 comments
Open

RGB Pins occupied by PSRAM #674

hypercreeper opened this issue Dec 27, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@hypercreeper
Copy link

Describe the bug
My board uses pins 16, 4, 17 for builtin rgb led, but everytime i try to make a custom board for it, it keeps telling me that the pins are used by psram.

To Reproduce
Create a new board.json with this code in it:

"led": {
        "rgb": [
            {"pin": "LED0"},
            {"pin": "LED1"},
            {"pin": "LED2"}
        ]
    },

and run npm run build
Expected behavior
The system should build succesfully and I can flash the firmware to my board.
Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
The board is an ESP32-2432S028R.
This is the output of npm run build:

> testno2@0.0.0 build
> npm run build:devicescript


> testno2@0.0.0 build:devicescript
> devicescript build src/main.ts

using devs: v2.15.23, runtime: v2.15.23, node: v18.7.0 from C:\Users\hyper\Desktop\DeviceScript\testno2\testno2\node_modules\@devicescript\cli\built
C:\Users\hyper\Desktop\DeviceScript\testno2\testno2\boards\esp32_2432s028r.board.json(1): LED0=17 has 'psram' function
LED2=16 has 'psram' function

board.json file:

{
    "$schema": "https://raw.githubusercontent.com/microsoft/devicescript-esp32/main/boards/esp32deviceconfig.schema.json",
    "devName": "ESP32-2432S028R",
    "productId": "0x3462c836",
    "$description": "Bare ESP32 without any default functions for pins.",
    "archId": "esp32",
    "url": "https://www.espressif.com/en/products/socs/esp32",
    "pins": {
        "P35": 35,
        "P22": 22,
        "P21": 21,
        "P27": 27,
        "LED0": 17,
        "LED1": 4,
        "LED2": 16
    },
    "led": {
        "rgb": [
            {"pin": "LED0"},
            {"pin": "LED1"},
            {"pin": "LED2"}
        ]
    },
    "sd": {
        "pinCS": 5,
        "pinMISO": 19,
        "pinMOSI": 23,
        "pinSCK": 18
    }
}
@hypercreeper hypercreeper added the bug Something isn't working label Dec 27, 2023
@pelikhan
Copy link
Member

pelikhan commented Jan 2, 2024

@mmoskal any idea?

@mmoskal
Copy link
Member

mmoskal commented Jan 2, 2024

Right, 16 and 17 are used by PSRAM if PSRAM is installed. I assume your board doesn't have it. I guess we should have an option in the .board.json to disable PSRAM checking, however the board is unlikely to work very well anyways due to lack of a native USB interface.

From https://microsoft.github.io/devicescript/devices#implementation-status

The ESP32-C3 boards are best supported. The regular ESP32 (without -C3 or -S2) currently have issues with the USB connection (as it's handled by external chip). The ESP32-S2 has limited memory which makes it difficult to use TLS. The ESP32-S3 is very recent and largely untested.

The RP2040 should generally work, but TLS is not supported on Pico-W.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants