Skip to content
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

error when using build #14

Open
JackBerg opened this issue Jan 11, 2024 · 0 comments
Open

error when using build #14

JackBerg opened this issue Jan 11, 2024 · 0 comments

Comments

@JackBerg
Copy link

JackBerg commented Jan 11, 2024

Hello,
Can you help me about ATTiny10IDE,

Running ATTiny10IDE, following the instructions on how to produce code for arduino.
I using Windows 10, with only 1 java version on my PC.
64-bit Java for Windows Version 8 Update 391 (filesize: 64.37 MB),

to test I use the Arduino sample from ATTiny10IDE:


#pragma chip attiny10
#pragma efuse 0xFF // default value
#pragma hfuse 0xDF // default value
#pragma lfuse 0x62 // default value

#include "Arduino.h"

void setup() {
pinMode(2, OUTPUT); // Setup pin 4 as an OUTPUT
}

void loop() {
digitalWrite(2, HIGH); // Turn on LED on pin 4
delay(500);
digitalWrite(2, LOW); // Turn off LED on pin 4
delay(500);
}


When click on build I receive this error, even when I reinstall Toolchain.

Compile error (see Error Info pane for details)
java.lang.StringIndexOutOfBoundsException: String index out of range: -1

Here the error listed from ATTiny10IDE:

os.name: windows 10
os: WIN
Stack Trace:
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(Unknown Source)
at ATTinyC.lambda$null$11(ATTinyC.java:578)
at java.lang.Thread.run(Unknown Source)

java

Thank you for your time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant