-
Notifications
You must be signed in to change notification settings - Fork 117
Add support for Teknic ClearCore #215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
patrickwasp
wants to merge
10
commits into
platformio:develop
Choose a base branch
from
patrickwasp:develop
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+44,601
−2
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
c799fa8
wip
patrickwasp 55848fd
changed repo link
patrickwasp 3b20918
added clearcore to builder scripts
patrickwasp 226a81b
updated clearcore config
patrickwasp acaf56f
Merge branch 'platformio:develop' into develop
patrickwasp 090389e
clean up
patrickwasp 1718730
Merge remote-tracking branch 'origin/develop' into develop
patrickwasp a11f840
clean up and add to arduino-blink example
patrickwasp 5ec33fd
added newlines
patrickwasp c43ec8b
added newline
patrickwasp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"build": { | ||
"arduino": { | ||
"ldscript": "flash_with_bootloader.ld" | ||
}, | ||
"core": "clearcore", | ||
"cpu": "cortex-m4", | ||
"extra_flags": [ | ||
"-D __SAME53N19A__", | ||
"-D __SAMD53__", | ||
"-D ARDUINO_ARM_ClearCore", | ||
"-D ARDUINO_ARCH_SAM", | ||
"-D __ARM_FEATURE_DSP=1", | ||
"-D __FPU_PRESENT", | ||
"-D ARM_MATH_CM4", | ||
"-D ENABLE_CACHE", | ||
"-D VARIANT_QSPI_BAUD_DEFAULT=50000000" | ||
], | ||
"f_cpu": "120000000L", | ||
"hwids": [ | ||
[ | ||
"0x2890", | ||
"0x0022" | ||
] | ||
], | ||
"mcu": "same53n19a", | ||
"system": "samd", | ||
"usb_product": "Teknic ClearCore", | ||
"variant": "clearcore" | ||
}, | ||
"debug": { | ||
"jlink_device": "ATSAME53N19A", | ||
"openocd_chipname": "at91same53n19", | ||
"openocd_target": "atsame5x", | ||
"svd_path": "ATSAME53N19A.svd" | ||
}, | ||
"frameworks": [ | ||
"arduino" | ||
], | ||
"name": "ClearCore", | ||
"upload": { | ||
"disable_flushing": true, | ||
"maximum_ram_size": 196608, | ||
"maximum_size": 507904, | ||
"native_usb": true, | ||
"offset_address": "0x4000", | ||
"protocol": "sam-ba", | ||
"protocols": [ | ||
"sam-ba", | ||
"jlink", | ||
"atmel-ice" | ||
], | ||
"require_upload_port": true, | ||
"use_1200bps_touch": true, | ||
"wait_for_upload_port": true | ||
}, | ||
"url": "https://www.teknic.com", | ||
"vendor": "Teknic" | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested this on my hardware and the HWID needs to be adjusted to be 0x2890 0x8022, I think the zero was a typo. Specifying the COM port directly will skip that check and will let it keep working, though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correction, this needs to have BOTH HWID's, not changing the singular one. The bootloader, which can sometimes get stuck searching for an upload, uses the HWID you used. There are cases where PIO will get stuck and not be able to find the COM port when that happens, so both will be needed.