Skip to content

Commit

Permalink
Added support for ATmega328PB, Updated github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
crycode-de committed Aug 13, 2024
1 parent becd5e4 commit 7af290f
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 11 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Use Node.js 18.x
uses: actions/setup-node@v3
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 20.x

- name: Install dependencies
run: npm ci
Expand All @@ -47,12 +47,12 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Use Node.js 18.x
uses: actions/setup-node@v3
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 20.x

- name: Extract the version and commit body from the tag
id: extract_release
Expand All @@ -72,7 +72,7 @@ jobs:
npm publish
- name: Create Github Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# MCP-CAN-Boot Flash-App Changelog

## v2.2.3 2024-08-13

* Added support for ATmega328PB mcu

## v2.2.2 2023-05-11

* Added support for ATmega32U4 mcu
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ npx mcp-can-boot-flash-app -r -f - -p m328p -m 0x0042

[Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-nc-sa/4.0/)

Copyright (C) 2020-2023 Peter Müller <[email protected]> [https://crycode.de](https://crycode.de)
Copyright (C) 2020-2024 Peter Müller <[email protected]> [https://crycode.de](https://crycode.de)
8 changes: 7 additions & 1 deletion flash-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Flash application for MCP-CAN-Boot, a CAN bus bootloader for
* AVR microcontrollers attached to an MCP2515 CAN controller.
*
* Copyright (C) 2020-2023 Peter Müller <[email protected]> (https://crycode.de)
* Copyright (C) 2020-2024 Peter Müller <[email protected]> (https://crycode.de)
* License: CC BY-NC-SA 4.0
*/

Expand Down Expand Up @@ -832,6 +832,12 @@ https://github.com/crycode-de/mcp-can-boot`)
this.deviceSignature = [0x1E, 0x95, 0x0F];
this.deviceFlashSize = 32 * 1024;
break;
case 'm328pb':
case 'mega328pb':
case 'atmega328pb':
this.deviceSignature = [0x1E, 0x95, 0x16];
this.deviceFlashSize = 32 * 1024;
break;
case 'm64':
case 'mega64':
case 'atmega64':
Expand Down

0 comments on commit 7af290f

Please sign in to comment.