{"id":34516328,"url":"https://github.com/haschtl/pio-arduinogiga","last_synced_at":"2026-03-12T21:01:04.282Z","repository":{"id":181182017,"uuid":"666359231","full_name":"Haschtl/pio-arduinogiga","owner":"Haschtl","description":"Platformio configuration for Arduino GIGA R1","archived":false,"fork":false,"pushed_at":"2023-07-14T14:10:50.000Z","size":12,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-02T03:59:28.062Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Haschtl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-07-14T10:13:22.000Z","updated_at":"2024-04-26T22:25:06.000Z","dependencies_parsed_at":"2023-07-14T11:51:48.152Z","dependency_job_id":null,"html_url":"https://github.com/Haschtl/pio-arduinogiga","commit_stats":null,"previous_names":["haschtl/pio-arduinogiga"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Haschtl/pio-arduinogiga","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Haschtl%2Fpio-arduinogiga","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Haschtl%2Fpio-arduinogiga/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Haschtl%2Fpio-arduinogiga/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Haschtl%2Fpio-arduinogiga/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Haschtl","download_url":"https://codeload.github.com/Haschtl/pio-arduinogiga/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Haschtl%2Fpio-arduinogiga/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30444290,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T20:23:30.529Z","status":"ssl_error","status_checked_at":"2026-03-12T20:23:14.027Z","response_time":114,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-12-24T04:22:57.568Z","updated_at":"2026-03-12T21:01:04.270Z","avatar_url":"https://github.com/Haschtl.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pio-arduinogiga\n\nThis repo contains a custom platformio board-configuration for Arduino GIGA R1. \nIt is adapted from the board-definition  for the Arduino IDE [here](https://github.com/arduino/ArduinoCore-mbed/blob/main/boards.txt).\n\n## Important: Modify platform-ststm32\n\nThe GIGA board requires a modification of the `platform-ststm32` platform in the [platform.py](https://github.com/platformio/platform-ststm32/blob/develop/platform.py) file.\n\nChange the line \n```\nif board.startswith((\"portenta\", \"opta\", \"nicla_vision\"))\n```\n\nto \n\n```\nif board.startswith((\"portenta\", \"opta\", \"nicla_vision\", \"giga\"))\n```\n\nThe `platform.py` file can be found in `~/.platformio/platforms/ststm32/platform.py` on linux.\n\n## Uploading sketch\n\nWhen flashing the `Arduino GIGA` using the `Arduino IDE`, the board is set to `bootloader mode` automatically. Using this board-definition in platformio will not do this. We need to set it into `bootloader mode` manually for now by double-pressing the `RST`-Button (Refer to the [cheat-sheet](https://docs.arduino.cc/tutorials/giga-r1-wifi/cheat-sheet#mbed-os))\n\n## Upload Troubleshooting\n\nSometimes the Arduino GIGA does not respond after flashing, it's not even possible to enter `bootloader_mode` by double-pressing the `RST`-Button. Workaround for this is to enter `DFU-Mode` by holding the `BOOT0`-button while powering the Arduino GIGA and then flash some sketch using the Arduino IDE, e.g. \n\n```\n#include \u003cArduino.h\u003e\n#include \u003cSerial.h\u003e\n#define LED LED_BUILTIN\n\nvoid setup() {\n  pinMode(LED, OUTPUT);\n  Serial.begin(9600);\n}\nvoid loop() {\n  digitalWrite(LED, digitalRead(LED) ^ 1); // toggle\n  Serial.println(\"Test\");\n  delay(1000);\n}\n```\n\nAfter this, it's possible to enter `bootloader_mode` again.\n\n### Alternative workaround\n\nA more fail-safe workaround is to use the `arduino-cli` to upload the `.bin` file created by platformio: `arduino-cli upload -b arduino:mbed_giga:giga -i .pio/build/giga/firmware.bin`\n\n## References\n\n- [Custom board definition for Portenta X8](https://github.com/maxgerhardt/pio-portentax8/tree/main)\n- [platform-ststm32 pull-request](https://github.com/platformio/platform-ststm32/pull/678/files) for similar board Arduino OPTA\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaschtl%2Fpio-arduinogiga","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaschtl%2Fpio-arduinogiga","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaschtl%2Fpio-arduinogiga/lists"}