Title: Please include hex flashing instructions for MAC · Issue #15 · uArm-Developer/SwiftProForArduino · GitHub
Open Graph Title: Please include hex flashing instructions for MAC · Issue #15 · uArm-Developer/SwiftProForArduino
X Title: Please include hex flashing instructions for MAC · Issue #15 · uArm-Developer/SwiftProForArduino
Description: Here is an example using AVRDUDE, based on the way Arduino IDE flashes after compilation. Save the script to flash.sh, run chmod +x flash.sh, then call it like ./flash.sh firmware.hex. If avr is not installed, first install it with brew ...
Open Graph Description: Here is an example using AVRDUDE, based on the way Arduino IDE flashes after compilation. Save the script to flash.sh, run chmod +x flash.sh, then call it like ./flash.sh firmware.hex. If avr is no...
X Description: Here is an example using AVRDUDE, based on the way Arduino IDE flashes after compilation. Save the script to flash.sh, run chmod +x flash.sh, then call it like ./flash.sh firmware.hex. If avr is no...
Opengraph URL: https://github.com/uArm-Developer/SwiftProForArduino/issues/15
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Please include hex flashing instructions for MAC","articleBody":"Here is an example using AVRDUDE, based on the way Arduino IDE flashes after compilation.\r\n\r\nSave the script to `flash.sh`, run `chmod +x flash.sh`, then call it like `./flash.sh firmware.hex`. If `avr` is not installed, first install it with `brew tap osx-cross/avr` and `brew install avr-gcc`. Make sure to close uArmStudio and ArduinoIDE as they might interfere with the connection while flashing is in progress.\r\n\r\n```bash\r\n#!/bin/bash\r\n\r\n# default location from `brew tap osx-cross/avr` and `brew install avr-gcc`\r\nexport AVR_PATH=/Applications/Arduino.app/Contents/Java/hardware/tools/avr/\r\nexport PROGRAM=\"$1\"\r\n\r\n# search for connected device\r\nfor i in $(seq 1 10); do\r\n export DEVICE_ID=$(ls /dev/tty.usb* 2\u003e\u00261 | grep -v \"No such\")\r\n if [ -z \"$DEVICE_ID\" ]; then\r\n echo -ne \"[$i of 10] Looking for device, connect USB and double tap the button to put it in flash mode \\033[0K\\r\"\r\n sleep 1.5\r\n else\r\n echo \"Found device, flashing ${PROGRAM} to ${DEVICE_ID}\"\r\n # flash the hex program to the device\r\n $AVR_PATH/bin/avrdude \\\r\n -C$AVR_PATH/etc/avrdude.conf \\\r\n -v \\\r\n -patmega2560 \\\r\n -cwiring \\\r\n -P${DEVICE_ID} \\\r\n -b115200 \\\r\n -D \\\r\n -Uflash:w:${PROGRAM}:i\r\n break\r\n fi\r\ndone\r\n```","author":{"url":"https://github.com/southwood","@type":"Person","name":"southwood"},"datePublished":"2020-06-08T22:52:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/15/SwiftProForArduino/issues/15"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:208f10e2-2a5c-3cc5-6602-959fa061d5ef |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EBC2:3D3A6B:50A9D1:6E39AB:6977C7FB |
| html-safe-nonce | c6e88501c0d48a3245b5c2af730e967e220c407105de1ffffd1141382837caba |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQkMyOjNEM0E2Qjo1MEE5RDE6NkUzOUFCOjY5NzdDN0ZCIiwidmlzaXRvcl9pZCI6Ijg4Nzk3MzI2MjAwOTkzMDc1MTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | cbb6e7fe077a89b85f877e99d50ed7985ee0206738c98ed1f6a51de16ade599f |
| hovercard-subject-tag | issue:634985249 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/uArm-Developer/SwiftProForArduino/15/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3f2fbbc583b14ee26e03536a1fcb039cebae7531157e41425b43f5f230ab4a07/uArm-Developer/SwiftProForArduino/issues/15 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3f2fbbc583b14ee26e03536a1fcb039cebae7531157e41425b43f5f230ab4a07/uArm-Developer/SwiftProForArduino/issues/15 |
| og:image:alt | Here is an example using AVRDUDE, based on the way Arduino IDE flashes after compilation. Save the script to flash.sh, run chmod +x flash.sh, then call it like ./flash.sh firmware.hex. If avr is no... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | southwood |
| hostname | github.com |
| expected-hostname | github.com |
| None | 173f8c2eae2e017de550dd28a9ea88ad5c1e52c70df7ea05bcd820330b3b2fec |
| turbo-cache-control | no-preview |
| go-import | github.com/uArm-Developer/SwiftProForArduino git https://github.com/uArm-Developer/SwiftProForArduino.git |
| octolytics-dimension-user_id | 6229790 |
| octolytics-dimension-user_login | uArm-Developer |
| octolytics-dimension-repository_id | 92379761 |
| octolytics-dimension-repository_nwo | uArm-Developer/SwiftProForArduino |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 92379761 |
| octolytics-dimension-repository_network_root_nwo | uArm-Developer/SwiftProForArduino |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7b19554cad55a536fac18eeedb416dd87c37b1f5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width