{"id":20675838,"url":"https://github.com/leoliu0605/Hello_NuMaker-M032BTAI","last_synced_at":"2025-09-27T03:31:38.656Z","repository":{"id":220258341,"uuid":"723984943","full_name":"leoli0605/Hello_NuMaker-M032BTAI","owner":"leoli0605","description":"Nuvoton NuMaker-M032BTAI Sample Code with Makefile, Docker and CICD workflows","archived":false,"fork":false,"pushed_at":"2024-05-17T02:46:07.000Z","size":42642,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-16T01:53:01.218Z","etag":null,"topics":["docker","dockerfile","gcc-arm-none-eabi","m031btai","m032btai","makefile","numake-m032btai","numaker","nuvoton","openocd","pyocd"],"latest_commit_sha":null,"homepage":"","language":"C","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/leoli0605.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":"2023-11-27T06:49:56.000Z","updated_at":"2024-05-17T02:46:10.000Z","dependencies_parsed_at":"2024-02-27T04:43:57.456Z","dependency_job_id":null,"html_url":"https://github.com/leoli0605/Hello_NuMaker-M032BTAI","commit_stats":null,"previous_names":["leoli0605/hello_numaker-m032btai"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoli0605%2FHello_NuMaker-M032BTAI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoli0605%2FHello_NuMaker-M032BTAI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoli0605%2FHello_NuMaker-M032BTAI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoli0605%2FHello_NuMaker-M032BTAI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leoli0605","download_url":"https://codeload.github.com/leoli0605/Hello_NuMaker-M032BTAI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234377515,"owners_count":18822544,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["docker","dockerfile","gcc-arm-none-eabi","m031btai","m032btai","makefile","numake-m032btai","numaker","nuvoton","openocd","pyocd"],"created_at":"2024-11-16T21:10:48.084Z","updated_at":"2025-09-27T03:31:33.711Z","avatar_url":"https://github.com/leoli0605.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hello_NuMaker-M032BTAI\n\n## TL;DR\n\nThis repository demonstrates how to develop projects for the\n`NuMaker-M032BTAI` using `gcc-arm-none-eabi` with a `makefile`.\n\nWe use `pyOCD` for flashing and debugging because `OpenOCD` does not\nfully support the `NuMaker-M032BTAI`.\n\nThe example used is\n[SampleCode/NuMaker-M03xBT/BLE/Demo/Central/TRSP_UART_Central](https://github.com/OpenNuvoton/M031BSP/tree/master/SampleCode/NuMaker-M03xBT/BLE/Demo/Central/TRSP_UART_Central).\n\nUse `make help` to quickly see available commands.\n\n## Requirements\n\nBefore proceeding with the commands, ensure you have the following\ninstalled:\n\n- Required\n  - `make`\n  - `gcc-arm-none-eabi 13.2.Rel1+` or `docker`\n- Optional\n  - To install `pyOCD`:\n    1.  Install `Python 3.7+` and `pip`\n    2.  Use `make install` to install `pyOCD` and required setup\n  - To build documentation:\n    1.  Install `node.js 18+` and `npm`\n    2.  Install `pandoc` and `tinytex`\n    3.  Use `make docs-install` to install required extensions\n\n### Windows\n\n``` powershell\nchoco install -y make gcc-arm-embedded python3 nodejs-lts pandoc tinytex\n```\n\n### Linux / macOS\n\n``` bash\n# Linux\nsudo apt update \u0026\u0026 sudo apt install -y curl git\n```\n\n``` bash\n# macOS\nbrew install coreutils curl git\n```\n\n``` bash\ngit clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.14.0\necho \". $HOME/.asdf/asdf.sh\" \u003e\u003e ~/.bashrc\necho \". $HOME/.asdf/completions/asdf.bash\" \u003e\u003e ~/.bashrc\nsource ~/.bashrc\n```\n\n``` bash\nasdf plugin add make\nasdf plugin add gcc-arm-none-eabi\nasdf plugin add python\nasdf plugin add nodejs\nasdf plugin add pandoc\nasdf plugin add tinytex\n```\n\n``` bash\nasdf install make latest\nasdf install gcc-arm-none-eabi latest\nasdf install python latest\nasdf install nodejs 18.18.0\nasdf install pandoc latest\nasdf install tinytex latest\n```\n\n``` bash\nasdf global make latest\nasdf global gcc-arm-none-eabi latest\nasdf global python latest\nasdf global nodejs 18.18.0\nasdf global pandoc latest\nasdf global tinytex latest\n```\n\n## Quick Start\n\n- Compile\n\n``` bash\nmake\n```\n\n- Recompile\n\n``` bash\nmake clean \u0026\u0026 make\n```\n\n``` bash\nmake rebuild\n```\n\n- Flash\n\n``` bash\nmake flash\n```\n\n- Recompile and Flash\n\n``` bash\nmake upgrade\n```\n\n- Generate Documentation\n\n``` bash\nmake docs\n```\n\n## Debugging with `pyOCD`\n\nTo debug the firmware manually, use the following commands:\n\n### Starting the GDB Server\n\nStart the GDB server with `pyOCD`:\n\n``` bash\npyocd gdbserver -t M032BTAIAAN --elf Source\\build\\TRSP_UART_Central.elf\n```\n\n### Connecting GDB to the Target\n\nIn the GDB command line, connect to the target and load the firmware:\n\n``` bash\n(gdb) target remote localhost:3333\n(gdb) monitor reset halt\n(gdb) load\n```\n\n## More Information\n\n- [OpenNuvoton/M031BSP](https://github.com/OpenNuvoton/M031BSP)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleoliu0605%2FHello_NuMaker-M032BTAI","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleoliu0605%2FHello_NuMaker-M032BTAI","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleoliu0605%2FHello_NuMaker-M032BTAI/lists"}