I get an error about timerISR when I try to upload the Arduino Runtime sketch. Only happens on some computers, not others.

The error is:

exit status 1
'timerISR' was not declared in this scope

asked 15 May '16, 09:13

Scott's gravatar image

Scott ♦♦
61138
accept rate: 13%

edited 15 May '16, 09:18


This appears to be a bug in the Arduino C++ compiler. It sometimes fails to create a function prototype. In this case the setup() function in the main sketch (ArduinoFirmware.ino) is hooking up a callback function (timerISR()) to be called by the TimerOne library. It so happens that the timerISR() function is after the setup() function. The compiler should automatically create a function prototype for this case before the setup() function but it doesn't.

You can create one yourself by adding the following line before the setup() function:

void timerISR();

You can also just move the entire timerISR() function before the setup() function.

I am working on a fix for the next version.

link

answered 15 May '16, 09:17

Scott's gravatar image

Scott ♦♦
61138
accept rate: 13%

edited 15 May '16, 09:18

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×4
×4

Asked: 15 May '16, 09:13

Seen: 3,981 times

Last updated: 15 May '16, 09:18

powered by OSQA