{"id":16276539,"url":"https://github.com/virgesmith/pico2-test","last_synced_at":"2026-07-16T15:01:46.457Z","repository":{"id":254590105,"uuid":"846986751","full_name":"virgesmith/pico2-test","owner":"virgesmith","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-08T07:56:11.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-23T20:52:41.113Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","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/virgesmith.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}},"created_at":"2024-08-24T14:23:22.000Z","updated_at":"2025-01-14T19:29:31.000Z","dependencies_parsed_at":"2024-08-24T15:51:06.935Z","dependency_job_id":"3fee42a3-d1dc-4ce3-a70f-30314eee4135","html_url":"https://github.com/virgesmith/pico2-test","commit_stats":null,"previous_names":["virgesmith/pico2-test"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/virgesmith/pico2-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virgesmith%2Fpico2-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virgesmith%2Fpico2-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virgesmith%2Fpico2-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virgesmith%2Fpico2-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/virgesmith","download_url":"https://codeload.github.com/virgesmith/pico2-test/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virgesmith%2Fpico2-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35547971,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-16T02:00:06.687Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2024-10-10T18:48:46.022Z","updated_at":"2026-07-16T15:01:46.414Z","avatar_url":"https://github.com/virgesmith.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pico2-test\n\nSimple C++ test binary for the Pico 2, building for either ARM or RISC-V. Flashes onboard LED, uses hardware SHA256 and prints to serial over USB, which can be seen using:\n\n```sh\nminicom -b 115200 -D /dev/ttyACM0\n```\n\nAlso includes a code example of writing to flash memory (which *is* preserved through a uf2 load). For some reason (probably bootrom errata E10, see datasheet) the final block doesn't preserve the data, but the penultimate one (and presumably all the others) does.\n\n## pico2-rgbhttp\n\nThe build script also has a working [rgb_http](https://github.com/pimoroni/pimoroni-pico/tree/main/examples/pico_wireless) example (http server accepting POST requests to set the colour of the RGB LED) for the Pimoroni Pico Wireless pack. Probably due to the \"E9 bug\" (see datasheet), it required a workaround to ensure the ACK pin functions correctly.\n\nThe workaround is to sublass `PicoWireless` and provide a constructor that forces the ACK pin low before initialisation. See [pico2_wireless.h](./pico2_wireless.h). Other than using this class, the code in the rgb_http.cpp example is unchanged.\n\n## Build\n\nBuild system avoids using the buggy and unreliable (as of Aug 24) pico vscode plugin (it's still in dev apparently).\n\nRISC-V toolchain can be found [here](https://github.com/raspberrypi/pico-sdk-tools/releases/). NB Avoid the builds at https://www.embecosm.com/resources/tool-chain-downloads/#riscv-stable, binaries produced by them can reset the board.\n\nARM build works with `arm-none-eabi-gcc` 10.3 (ubuntu 22 default) and 13.2. `riscv32-unknown-elf-gcc` from above is 14.2.1.\n\nSee CMakeLists.txt:\n\n- Set values `PICO_SDK_PATH` and `PICO_TOOLCHAIN_PATH`  appropriately\n- Generate Makefile using either\n  - `cd build \u0026\u0026 cmake -DPICO_PLATFORM=rp2350-arm-s ..`, or\n  - `cd build \u0026\u0026 cmake -DPICO_PLATFORM=rp2350-riscv ..`\n\n## See also\n\n[https://www.raspberrypi.com/documentation/pico-sdk/](https://www.raspberrypi.com/documentation/pico-sdk/)\n\n[https://datasheets.raspberrypi.com/rp2350/rp2350-datasheet.pdf](https://datasheets.raspberrypi.com/rp2350/rp2350-datasheet.pdf)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvirgesmith%2Fpico2-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvirgesmith%2Fpico2-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvirgesmith%2Fpico2-test/lists"}