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

PlatformIO board definition #228

Open
thijstriemstra opened this issue Jul 6, 2021 · 0 comments
Open

PlatformIO board definition #228

thijstriemstra opened this issue Jul 6, 2021 · 0 comments

Comments

@thijstriemstra
Copy link

thijstriemstra commented Jul 6, 2021

In case anyone's looking for a board definition, try this definition:

{
    "build": {
        "arduino": {
            "ldscript": "esp32_out.ld"
        },
        "core": "esp32",
        "extra_flags": "-DARDUINO_ESP32_DEV",
        "f_cpu": "240000000L",
        "f_flash": "40000000L",
        "flash_mode": "dio",
        "partitions": "partitions-16MB.csv",
        "mcu": "esp32",
        "variant": "esp32"
    },
    "connectivity": [
        "wifi",
        "bluetooth",
        "ethernet",
        "can"
    ],
    "debug": {
        "default_tool": "ftdi",
        "onboard_tools": [
            "ftdi"
        ],
        "openocd_board": "esp-wroom-32.cfg"
    },
    "frameworks": [
        "arduino",
        "espidf"
    ],
    "name": "Espressif ESP32 SHA2017",
    "upload": {
        "flash_size": "16MB",
        "maximum_ram_size": 327680,
        "maximum_size": 16777216,
        "protocols": [
            "esptool",
            "espota",
            "ftdi"
        ],
        "require_upload_port": true,
        "speed": 921600
    },
    "url": "https://wiki.sha2017.org/w/Projects:Badge/Documentation/ESP32",
    "vendor": "Espressif"
}

Place it in boards/esp32-sha2017.json of your project and specify it in platformio.ini:

[env:sha-badge]
platform = espressif32
board = esp32-sha2017
framework = arduino
monitor_speed = 115200
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

1 participant