{"id":23187295,"url":"https://github.com/svenssonjoel/cortex_m_mcgee","last_synced_at":"2026-04-29T17:09:19.924Z","repository":{"id":140042065,"uuid":"292488860","full_name":"svenssonjoel/cortex_m_mcgee","owner":"svenssonjoel","description":"ARM Cortex M0-4 machine code generator","archived":false,"fork":false,"pushed_at":"2020-09-24T06:34:32.000Z","size":88,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-10T13:12:01.373Z","etag":null,"topics":["assembler","cortex-m","cortex-m0","cortex-m3","cortex-m4","machinecode"],"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/svenssonjoel.png","metadata":{"files":{"readme":"README.md","changelog":null,"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-09-03T06:42:57.000Z","updated_at":"2023-03-05T01:19:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"016933c7-7dcc-45df-9ed5-4aaca454f511","html_url":"https://github.com/svenssonjoel/cortex_m_mcgee","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svenssonjoel%2Fcortex_m_mcgee","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svenssonjoel%2Fcortex_m_mcgee/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svenssonjoel%2Fcortex_m_mcgee/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svenssonjoel%2Fcortex_m_mcgee/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/svenssonjoel","download_url":"https://codeload.github.com/svenssonjoel/cortex_m_mcgee/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247289429,"owners_count":20914464,"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":["assembler","cortex-m","cortex-m0","cortex-m3","cortex-m4","machinecode"],"created_at":"2024-12-18T10:19:06.587Z","updated_at":"2026-04-29T17:09:14.889Z","avatar_url":"https://github.com/svenssonjoel.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Cortex M. McGee\n\nARM Cortex M0-4 machine code generator\n\n_WORK IN PROGRESS_\n\n\n\n\n# Debug on stm32f4-discovery GDB\n\n- Run the `debug.sh` to start OpenOCD and connect to the board\n\n- Start gdb (`arm-none-eabi-gdb`)\n  - Issue command `target extended-remote localhost:3333` or short version `tar ext :3333`\n  \n# Debug on stm32f4-discovery Telnet\n\n- Run the `debug.sh` to start OpenOCD and connect to the board\n\n- Telnet `telnet localhost 4444`\n  - load binary code into memory with command: `load_image filename address`\n    For example: `load_image out.bin 0x20000000`\n  \n  - Disassemble loaded code `arm disassemble address number-of-instructions`\n     Example:\n\t```\n\t\u003e arm disassemble 0x20000000 10\n\t0x20000000  0x20ff    \tMOVS\tr0, #0xff\n\t0x20000002  0x21de    \tMOVS\tr1, #0xde\n\t0x20000004  0x22ad    \tMOVS\tr2, #0xad\n\t0x20000006  0x230f    \tMOVS\tr3, #0x0f\n\t0x20000008  0x24f0    \tMOVS\tr4, #0xf0\n\t0x2000000a  0x25ab    \tMOVS\tr5, #0xab\n\t0x2000000c  0x26dc    \tMOVS\tr6, #0xdc\n\t0x2000000e  0x2712    \tMOVS\tr7, #0x12\n\t0x20000010  0x2043    \tMOVS\tr0, #0x43\n\t0x20000012  0x2199    \tMOVS\tr1, #0x99\n    ```\n  - Display registers contents: `reg`\n  - Set register contents: `reg name value`\n    Example: `reg pc 0x20000000`\n\t\n  - Set breakpoint `bp address length`\n    Example: `bp 0x20000012 2`\n\n  - Run: `resume`\n  - Step through code: `step`\n\n# Quick debug with xxd\n\n- View binary file contents as HEX values: `xxd filename`\n- View binary file contents as BIN values: `xxd -b filename`\n\t\n# To figure out\n\n- Byte ordering for 32bit thumb\n- Generation of elf header and sections.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvenssonjoel%2Fcortex_m_mcgee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsvenssonjoel%2Fcortex_m_mcgee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvenssonjoel%2Fcortex_m_mcgee/lists"}