{"id":21744613,"url":"https://github.com/github0null/stm8-debug","last_synced_at":"2026-03-07T21:01:49.898Z","repository":{"id":42842705,"uuid":"262808484","full_name":"github0null/stm8-debug","owner":"github0null","description":"STM8 Debugger for vscode","archived":false,"fork":false,"pushed_at":"2023-03-04T17:38:31.000Z","size":59490,"stargazers_count":10,"open_issues_count":8,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T05:12:26.577Z","etag":null,"topics":["debug","debugger","stm8","stm8s","swim","vscode"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/github0null.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2020-05-10T14:45:48.000Z","updated_at":"2023-05-22T08:30:56.000Z","dependencies_parsed_at":"2024-11-26T07:22:11.472Z","dependency_job_id":null,"html_url":"https://github.com/github0null/stm8-debug","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/github0null/stm8-debug","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github0null%2Fstm8-debug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github0null%2Fstm8-debug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github0null%2Fstm8-debug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github0null%2Fstm8-debug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/github0null","download_url":"https://codeload.github.com/github0null/stm8-debug/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github0null%2Fstm8-debug/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30231489,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T19:01:10.287Z","status":"ssl_error","status_checked_at":"2026-03-07T18:59:58.103Z","response_time":53,"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":["debug","debugger","stm8","stm8s","swim","vscode"],"created_at":"2024-11-26T07:12:05.381Z","updated_at":"2026-03-07T21:01:49.879Z","avatar_url":"https://github.com/github0null.png","language":"TypeScript","readme":"# STM8 Debugger\n\n## Summary 📑\n\nA STM8 Debugger for vscode. Use STLink to debug your STM8 program\n\n**Only for Windows platform**\n\n***\n\n![preview](./image/show.png)\n\n***\n\n## Usage 📖\n\n### Preparatory work\n\n- Install STLink or RLink driver program on your PC\n\n***\n\n### Start 🏃‍♀️\n\n1. Fill in `launch.json`, there are some examples: \n\n- **Use IAR/COSMIC Toolchain :**\n\n```json\n{\n    \"version\": \"0.2.0\",\n    \"configurations\": [\n        {\n            \"type\": \"stm8-debug\",\n            \"request\": \"launch\",\n            \"name\": \"Launch Program\",\n            \"serverType\": \"st7\",\n            \"executable\": \".\\\\out\\\\Debug\\\\stm8_demo.out\",\n            \"cpu\": \"STM8S003F3P\"\n        }\n    ]\n}\n```\n\n- **Use SDCC Toolchain :**\n\n**Notice:** make sure you can find your 'target' and 'interface' in OpenOcd config folder !, like: 'target/stm8s003.cfg'\n\n```json\n{\n    \"version\": \"0.2.0\",\n    \"configurations\": [\n        {\n            \"type\": \"stm8-debug\",\n            \"request\": \"launch\",\n            \"name\": \"Launch Program\",\n            \"serverType\": \"stm8-sdcc\",\n            \"executable\": \".\\\\out\\\\Debug\\\\stm8_demo.elf\",\n            \"openOcdConfigs\": [\n                \"interface/stlink.cfg\",\n                \"target/stm8s003.cfg\"\n            ]\n        }\n    ]\n}\n```\n\n2. link your STLink and board, press `F5` to launch stm8 debugger\n\n\n***\n\n## Notice 🚩\n\n- ### The file path must contain only **ASCII** characters\n\n- ### The debugger 'ST7' is not support suspend your program\n\n***\n\n## Peripheral View support\n\nYou can browse **cpu peripheral value** by **Peripheral View**, like this:\n\n![peripheral view](./image/peripheral_view.png)\n\n\n#### built-in peripheral view support\n\n- stm8s103f3\n- stm8s003f3\n- stm8s105k4\n\n#### custom peripheral view support\n\n**Note:** You need to create a new **\\\u003ccpu_name\u003e.svd.json** file to support a new stm8 cpu.\n\nstep 1. create a new **`\u003ccpu_name\u003e.svd.json`** file, write peripheral descriptions.\n\nstep 2. set **svdFile** property in **launch.json**\n\n***\n\nThere is a demo for `stm8s003f3` cpu, file name: `stm8s003f3.svd.json`\n\n```json\n[\n    {\n        \"name\": \"GPIOA\",\n        \"baseAddress\": \"0x5000\",\n        \"registers\": [\n            {\n                \"name\": \"ODR\",\n                \"bytes\": 1,\n                \"fields\": [\n                    {\n                        \"name\": \"0\",\n                        \"bitsOffset\": 0,\n                        \"bitsWidth\": 1\n                    }\n                ]\n            },\n            {\n                \"name\": \"IDR\",\n                \"bytes\": 1\n            },\n            {\n                \"name\": \"DDR\",\n                \"bytes\": 1\n            },\n            {\n                \"name\": \"CR1\",\n                \"bytes\": 1\n            },\n            {\n                \"name\": \"CR2\",\n                \"bytes\": 1\n            }\n        ]\n    },\n    {\n        \"name\": \"FLASH\",\n        \"baseAddress\": \"0x505A\",\n        \"registers\": [\n            {\n                \"name\": \"CR1\",\n                \"bytes\": 1\n            },\n            {\n                \"name\": \"CR2\",\n                \"bytes\": 1\n            },\n            {\n                \"name\": \"NCR2\",\n                \"bytes\": 1\n            },\n            {\n                \"name\": \"FPR\",\n                \"bytes\": 1\n            },\n            {\n                \"name\": \"NFPR\",\n                \"bytes\": 1\n            },\n            {\n                \"name\": \"IAPSR\",\n                \"bytes\": 1\n            },\n            {\n                \"name\": \"PUKR\",\n                \"baseAddress\": \"0x5062\",\n                \"bytes\": 1\n            },\n            {\n                \"name\": \"DUKR\",\n                \"baseAddress\": \"0x5064\",\n                \"bytes\": 1\n            }\n        ]\n    }\n]\n```\n\n## Feedback 💡\n\n[forum: https://discuss.em-ide.com/t/stm8-debug](https://discuss.em-ide.com/t/stm8-debug)\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub0null%2Fstm8-debug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithub0null%2Fstm8-debug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub0null%2Fstm8-debug/lists"}