{"id":21101166,"url":"https://github.com/crycode-de/mcp-can-boot-flash-app","last_synced_at":"2025-09-16T15:05:48.645Z","repository":{"id":41421590,"uuid":"341924494","full_name":"crycode-de/mcp-can-boot-flash-app","owner":"crycode-de","description":"Flash application for MCP-CAN-Boot, a CAN bus bootloader for AVR microcontrollers attached to an MCP2515 CAN controller.","archived":false,"fork":false,"pushed_at":"2024-08-15T11:48:40.000Z","size":153,"stargazers_count":7,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-08-15T12:53:17.149Z","etag":null,"topics":["avr","bootloader","flash-app","mcp-can-boot"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crycode-de.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","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},"funding":{"github":["crycode-de"],"custom":["https://www.paypal.me/petercrycode"]}},"created_at":"2021-02-24T14:20:53.000Z","updated_at":"2024-08-15T11:13:08.000Z","dependencies_parsed_at":"2024-08-15T12:41:26.187Z","dependency_job_id":null,"html_url":"https://github.com/crycode-de/mcp-can-boot-flash-app","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crycode-de%2Fmcp-can-boot-flash-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crycode-de%2Fmcp-can-boot-flash-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crycode-de%2Fmcp-can-boot-flash-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crycode-de%2Fmcp-can-boot-flash-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crycode-de","download_url":"https://codeload.github.com/crycode-de/mcp-can-boot-flash-app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225444760,"owners_count":17475353,"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":["avr","bootloader","flash-app","mcp-can-boot"],"created_at":"2024-11-19T23:40:45.716Z","updated_at":"2025-09-16T15:05:43.612Z","avatar_url":"https://github.com/crycode-de.png","language":"JavaScript","readme":"# MCP-CAN-Boot Flash-App\n\n![MCP-CAN-Boot logo](https://raw.githubusercontent.com/crycode-de/mcp-can-boot/main/doc/mcp-can-boot-256.png)\n\n[![NPM version](https://img.shields.io/npm/v/mcp-can-boot-flash-app.svg)](https://www.npmjs.com/package/mcp-can-boot-flash-app)\n[![Downloads](https://img.shields.io/npm/dm/mcp-can-boot-flash-app.svg)](https://www.npmjs.com/package/mcp-can-boot-flash-app)\n\n[![NPM](https://nodei.co/npm/mcp-can-boot-flash-app.png?downloads=true)](https://nodei.co/npm/mcp-can-boot-flash-app/)\n\nFlash application for **[MCP-CAN-Boot](https://github.com/crycode-de/mcp-can-boot)**, a CAN bus bootloader for **AVR microcontrollers** attached to an **MCP2515** CAN controller.\n\n## The bootloader\n\nMore information about the bootloader are available in the official repository: [https://github.com/crycode-de/mcp-can-boot](https://github.com/crycode-de/mcp-can-boot)\n\n## Requirements\n\n* Node.js version 12.x or higher.\n\n* The system where the flash-app is run needs a CAN interface to which the target MCU is connected.\n\n  This may be a Raspberry Pi with an attached MCP2515 CAN controller, for example.\n\n## Usage\n\nNo need to install: Just run the flash-app using `npx` (this will take a moment):\n\n```sh\nnpx mcp-can-boot-flash-app [...]\n```\n\nOr install it globally and run it if you need it more often (recommended):\n\n```sh\nnpm install -g mcp-can-boot-flash-app\nmcp-can-boot-flash-app [...]\n```\n\n## Flash-App parameters\n\n```plain\n-f, --file           Hex file to flash                     [string] [required]\n-i, --iface          CAN interface to use           [string] [default: \"can0\"]\n-p, --partno         Specific AVR device like in avrdude   [string] [required]\n-m, --mcuid          ID of the MCU bootloader              [string] [required]\n-e                   Erase whole flash before flashing new data      [boolean]\n-V                   Do not verify                                   [boolean]\n-r                   Read flash and save to given file (no flashing!),\n                     optional with maximum address to read until      [string]\n-F                   Force flashing, even if the bootloader version\n                     missmatched                                     [boolean]\n-R, --reset          CAN message to send on startup to reset the MCU\n                     (\u003ccan_id\u003e#{hex_data})                            [string]\n    --can-id-mcu     CAN-ID for messages from MCU to remote\n                                                 [string] [default: 536870657]\n    --can-id-remote  CAN-ID for messages from remote to MCU\n                                                 [string] [default: 536870658]\n    --sff            Use Standad Frame Format (SFF) instead of the default\n                     Extended Frame Format (EFF) for the CAN-IDs     [boolean]\n    --ping           Send a ping in the given interval (ms) to keep the bus\n                     active (should be used if the bootloader uses bitrate\n                     detection)                                       [number]\n-v, --verbose        Enable verbose logging output                   [boolean]\n-h, --help           Show help                                       [boolean]\n```\n\nExamples:\n\n```sh\nnpx mcp-can-boot-flash-app -f firmware.hex -p m1284p -m 0x0042\nnpx mcp-can-boot-flash-app -f firmware.hex -p m1284p -m 0x0042 --reset 020040FF#4201FA\nnpx mcp-can-boot-flash-app -f firmware.hex -p m1284p -m 0x0042 --reset 020040FF#4201FA --ping 75\nnpx mcp-can-boot-flash-app -r -f - -p m328p -m 0x0042\n```\n\n## License\n\n**CC BY-NC-SA 4.0**\n\n[Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-nc-sa/4.0/)\n\nCopyright (C) 2020-2024 Peter Müller \u003cpeter@crycode.de\u003e [https://crycode.de](https://crycode.de)\n","funding_links":["https://github.com/sponsors/crycode-de","https://www.paypal.me/petercrycode"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrycode-de%2Fmcp-can-boot-flash-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrycode-de%2Fmcp-can-boot-flash-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrycode-de%2Fmcp-can-boot-flash-app/lists"}