Do I have a brick? I'm unable to upload sketches after using this library! #21
-
I've tried to use this library (1.7.0) on an Arduino MKR WiFi 1010, and after uploading a simple sketch that uses this library, to blink a led, I'm unable to upload any new sketch! I'm getting the following error when uploading: This is the uploaded code:
I do see "Time's up!" being printed at a very high speed! Do you know if there is any thing wrong with this code? |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 7 replies
-
|
Beta Was this translation helpful? Give feedback.
-
There is a bug of the v1.7.0 which creates an issue for TC3 timer. You have to change and use TCC, then everything will be OK now with v1.7.0 or go back to v1.6.0
Remember that the maximum time you can use directly on SAMD TC3/TCC Timer is ~1398.11ms = 1.39811s. If you use time larger than 1398.11ms, the wrap-around will happen and you'll get much smaller time. |
Beta Was this translation helpful? Give feedback.
-
If you'd like to have much longer time, check the ISR_16_Timers_Array_Complex example. This is the main reason this library is written for. |
Beta Was this translation helpful? Give feedback.
-
Rui - Any different behaviour when you use another version? e.g 1.6.0
Also note that it is inadvisable to use serial from inside an ISR.
…On Sat, 7 May 2022 at 21:40, Khoi Hoang ***@***.***> wrote:
If you'd like to have much longer time, check the
*ISR_16_Timers_Array_Complex*
<https://github.com/khoih-prog/SAMD_TimerInterrupt/tree/main/examples/ISR_16_Timers_Array_Complex>
example.
This is the main reason this library is written for.
—
Reply to this email directly, view it on GitHub
<#21 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABF47HGXB44QKMEWMS4KY43VI3INVANCNFSM5VKJY6BA>
.
You are receiving this because you are subscribed to this thread.Message
ID: <khoih-prog/SAMD_TimerInterrupt/repo-discussions/21/comments/2707335@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
I'll scrap your update in v1.7.0. Can you help debug to see what's wrong with the update in v1.7.0 causing issue in TC3 as described in this Discussion. |
Beta Was this translation helpful? Give feedback.
-
My changes were to illustrate potential fix for the bug report that I made
- they certainly were not fully tested for other cases. I assumed you
would be tesying before releasing. I can try and help but I only have
access to one SAMD21 device.
…On Sat, 7 May 2022, 22:57 Khoi Hoang, ***@***.***> wrote:
@stripwax <https://github.com/stripwax>
I'll scrap your update in v1.7.0. Can you help debug to see what's wrong
with the update in v1.7.0 causing issue in TC3 as described in this
Discussion.
—
Reply to this email directly, view it on GitHub
<#21 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABF47HCU7MDXLSMRMA3GUU3VI3RLPANCNFSM5VKJY6BA>
.
You are receiving this because you were mentioned.Message ID:
<khoih-prog/SAMD_TimerInterrupt/repo-discussions/21/comments/2707537@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
Anyway, in next few releases, I'll try to add more Timers as possible, hopefully time permitted, into the library, such as
|
Beta Was this translation helpful? Give feedback.
-
Just published the new SAMD_TimerInterrupt releases v1.8.0. Your Contribution is noted in Contributions and Thanks Releases v1.8.0
|
Beta Was this translation helpful? Give feedback.
-
Hi @sailorsail Please help test the new SAMD_TimerInterrupt releases v1.9.0, which added 4 more Timers (TC4, TC5, TCC1 and TCC2) for SAMD21 I'm sure you'll find new bug, if exists, with your thorough tests. Have a look at new example SAMD21_MultiTimers for a demo how to use all 6 SAMD21 timers simultaneously. Releases v1.9.0
|
Beta Was this translation helpful? Give feedback.
-
See #17 but I think I found the bug in 1.7.0 (although oddly it looks like you already fixed it for SAMD51 but not SAMD21, but I don't have SAMD51 so can't confirm that). I fixed the bug in my fork and provided my test results in #17 so you can compare. |
Beta Was this translation helpful? Give feedback.
@sailorsail
Just published the new SAMD_TimerInterrupt releases v1.8.0.
Your Contribution is noted in Contributions and Thanks
Releases v1.8.0