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

Please add Wemos Lolin S3 #903

Closed
davy39 opened this issue Sep 3, 2022 · 6 comments · Fixed by #905
Closed

Please add Wemos Lolin S3 #903

davy39 opened this issue Sep 3, 2022 · 6 comments · Fixed by #905

Comments

@davy39
Copy link
Contributor

davy39 commented Sep 3, 2022

Hello,
I've just purchased a Lolin S3 which has been added on arduino-esp32.
Could someone add this board to platformio please ?
Thanks by advance !

@davy39
Copy link
Contributor Author

davy39 commented Sep 4, 2022

I don't know if it's optimal since I'm a newbie, but I've created the following json that seems pretty functional.
Could someone tell me if I'm missing something ?

EDIT : Modified with Jason2866's comments

{
  "build": {
    "arduino":{
      "ldscript": "esp32s3_out.ld",
      "partitions": "default_16MB.csv",
      "memory_type": "qio_opi"
    },
    "core": "esp32",
    "extra_flags": [
      "-DBOARD_HAS_PSRAM",
      "-DARDUINO_LOLIN_S3",
      "-DARDUINO_USB_MODE=1",
      "-DARDUINO_USB_CDC_ON_BOOT=1"
    ],
    "f_cpu": "240000000L",
    "f_flash": "80000000L",
    "flash_mode": "qio",
    "hwids": [
      [
        "0x303A",
        "0x1001"
      ]
    ],
    "mcu": "esp32s3",
    "variant": "lolin_s3"
  },
  "connectivity": [
    "wifi"
  ],
  "debug": {
    "openocd_target": "esp32s3.cfg"
  },
  "frameworks": [
    "arduino",
    "espidf"
  ],
  "name": "LOLIN S3",
  "upload": {
    "flash_size": "16MB",
    "maximum_ram_size": 327680,
    "maximum_size": 16777216,    
    "use_1200bps_touch": true,
    "wait_for_upload_port": true,
    "require_upload_port": true,
    "speed": 460800
  },
  "url": "https://www.wemos.cc/en/latest/s3/index.html",
  "vendor": "Wemos"
}

@Jason2866
Copy link
Contributor

maximum_size is wrong. For 16MB it is 16777216

@davy39
Copy link
Contributor Author

davy39 commented Sep 4, 2022

I didn't understand neither... But I took same parameter than in Wemos PR here.
Do you think this is a mistake ?

@Jason2866
Copy link
Contributor

Jason2866 commented Sep 4, 2022

Yes, it is wrong in the Arduino PR from Wemos.
This is useless

"-DARDUINO_RUNNING_CORE=1",
"-DARDUINO_EVENT_RUNNING_CORE=1"

since this is defined (set already) at compile time in the Arduino lib Builder.
and is in sdkconfig.h which is included in every Arduino build.
The variables are read only.
I know many boards.json does have this entrys. It does no harm, but it is litter...

@davy39
Copy link
Contributor Author

davy39 commented Sep 4, 2022

Thanks for your replies, I've modified my json. Shall I open a PR ?

@Jason2866
Copy link
Contributor

Good idea

@valeros valeros linked a pull request Sep 9, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants