Timeline for Serial doesent work when calling function from timer
Current License: CC BY-SA 4.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 26, 2020 at 15:26 | comment | added | DataFiddler | It is even impossible to use Serial in an interrupt, if you risk to overflow the output buffer. You cannot write more than 63 characters (to normal arduinos) from an ISR. | |
| Oct 15, 2020 at 19:24 | comment | added | Gerben | It generally not advised to use serial inside an interrupt. | |
| Oct 15, 2020 at 18:11 | answer | added | boki | timeline score: 1 | |
| Oct 15, 2020 at 18:10 | comment | added | boki | @chrisl Timer was to fast! When I decreased frequency everithing worked fine. | |
| Oct 15, 2020 at 17:55 | comment | added | chrisl |
Though that might not be the cause of your problem, do you put the printing of the matrix in loop() into a critical section (with interrupts turned off)? If not, the interrupt might happen in the middle of printing. Please show a complete example sketch for the interrupt version of the code.
|
|
| Oct 15, 2020 at 17:29 | comment | added | boki | I only get hello world in Serial. Did I get overflow on MCU? | |
| Oct 15, 2020 at 17:08 | review | First posts | |||
| Oct 29, 2020 at 17:10 | |||||
| Oct 15, 2020 at 17:08 | history | asked | boki | CC BY-SA 4.0 |