I have followed instruction given in website . I have flashed arduino with software mentioned . when i open serial monitor . i could see attiny10 device being detected.
Now Setting are made as mentioned link
i have opened simple BlinkLed example code
Arduino: 1.8.9 (Windows 10), Board: "ATtiny10 (bitDuino10-arduinoTPI), 500KHz(Internal)"
Build options changed, rebuilding all
c:/users/ajit.nayak87/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld.exe: cannot find crtattiny10.o: No such file or directory
c:/users/ajit.nayak87/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld.exe: skipping incompatible c:/users/ajit.nayak87/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/lib\libm.a when searching for -lm
c:/users/ajit.nayak87/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld.exe: cannot find -lm
c:/users/ajit.nayak87/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld.exe: skipping incompatible c:/users/ajit.nayak87/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0\libgcc.a when searching for -lgcc
c:/users/ajit.nayak87/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld.exe: cannot find -lgcc
c:/users/ajit.nayak87/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld.exe: skipping incompatible c:/users/ajit.nayak87/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/lib\libm.a when searching for -lm
c:/users/ajit.nayak87/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld.exe: cannot find -lm
c:/users/ajit.nayak87/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld.exe: skipping incompatible c:/users/ajit.nayak87/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/lib\libc.a when searching for -lc
c:/users/ajit.nayak87/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld.exe: cannot find -lc
c:/users/ajit.nayak87/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld.exe: cannot find -lattiny10
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board ATtiny10 (bitDuino10-arduinoTPI).
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
I get above compile error.
I have another core library technobogy and jamessleeman. where i could able build
#include <avr/io.h>
#include <util/delay.h>
#define F_CPU 1000000UL // Define CPU frequency as 1MHz
void InitIO() {
DDRB |= (1 << PB2); // Set PB2 as output
}
int main() {
InitIO();
while (1) {
PORTB |= (1 << PB2); // Turn on LED
_delay_ms(1000); // Delay for 1000 milliseconds (1 second)
PORTB &= ~(1 << PB2); // Turn off LED
_delay_ms(1000); // Delay for 1000 milliseconds (1 second)
}
return 0;
}
This code but not able to flash. I am using arduino uno board to flash attiny10. Even i have USBasp driver installed with kit. let me know any one can support with flash.
if i use other code and librarybelow error will come
Arduino: 1.8.9 (Windows 10), Board: "ATtiny10, 8MHz, No (TPI Programmer Upload), Millis Available, No Tone, Better Or Equal 1.666% Error (Default), Bin Only Supported (Smallest), Half Duplex, Read+Write, LTO Enabled"
Build options changed, rebuilding all
Sketch uses 182 bytes (17%) of program storage space. Maximum is 1024 bytes.
Global variables use 4 bytes (12%) of dynamic memory, leaving 28 bytes for local variables. Maximum is 32 bytes.
Error while uploading: missing 'program.params.quiet' configuration parameter
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.