Go Down

Topic: Error compiling for board ATtiny13 (Read 8946 times) previous topic - next topic

amkoshesh

hi


this is my code:

void setup() {
  pinMode(4, OUTPUT);
}
void loop() {
  digitalWrite(4, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);              // wait for a second
  digitalWrite(4, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);              // wait for a second
}



I just try " verify "

Who can advise me about this problem
"
recipe.preproc.macros pattern is missing

Error compiling for board ATtiny13 @ 9.6MHz (interne 9.6 MHz clock).
"
I've downloaded  the ATtiny13 core files for Arduino
and
Extract the zipped file in the above location, (Arduino>Hardware folder).

pert

I've downloaded  the ATtiny13 core files for Arduino
From where?

Use this one instead:
https://github.com/MCUdude/MicroCore

Please use code tags (</> button on the toolbar) when you post code or warning/error messages. The reason is that the forum software can interpret parts of your code as markup, leading to confusion, wasted time, and a reduced chance for you to get help with your problem. This will also make it easier to read your code and to copy it to the IDE or editor. Using code tags and other important information is explained in the How to use this forum post. Please read it.

amkoshesh

From where?

Use this one instead:
https://github.com/MCUdude/MicroCore

Please use code tags (</> button on the toolbar) when you post code or warning/error messages. The reason is that the forum software can interpret parts of your code as markup, leading to confusion, wasted time, and a reduced chance for you to get help with your problem. This will also make it easier to read your code and to copy it to the IDE or editor. Using code tags and other important information is explained in the How to use this forum post. Please read it.
Thank you very much
Thank you for your advice

But still the same error

The virus PC is the cause of  error?
Code: [Select]
[code][code][code][/code][/code][/code]

pert

But still the same error
Did you select the MicroCore board from the Tools > Board menu? MicroCore definitely does have recipe.preproc.macros defined.

The virus PC is the cause of  error?
Definitely not. The problem is most likely that you installed a very old hardware package that is not compatible with the version of the Arduino IDE you're using. I can't say for sure because you didn't say which package you installed originally or where you got it from.

amkoshesh





Did you select the MicroCore board from the Tools > Board menu? MicroCore definitely does have recipe.preproc.macros defined.
Definitely not. The problem is most likely that you installed a very old hardware package that is not compatible with the version of the Arduino IDE you're using. I can't say for sure because you didn't say which package you installed originally or where you got it from.
yes

Please see the Picture

http://forum.arduino.ir/4/12/3348.html#post16540





pert

Please post the picture here. I don't want to visit some random website.

amkoshesh

Please post the picture here. I don't want to visit some random website.
excuse me
 can you see in the picture?
Since I put up my picture

picture is ide Windows

for better understanding

Where is upload ? for you

pert

You posted a link to some website named arduino.ir that I've never heard of. I don't know or trust that website so I'm not going to visit it. You can embed the image with the picture icon on the toolbar or you can attach the photo by clicking "Reply" and then "Attachments and other options". Better yet, attach and embed the picture by following the instructions at:
http://forum.arduino.cc/index.php?topic=364156.0

When you post links please use the chain links icon to make them clickable.

oqibidipo

#8
Feb 05, 2017, 02:05 am Last Edit: Feb 05, 2017, 02:05 am by oqibidipo
Please see the Picture

http://forum.arduino.ir/4/12/3348.html#post16540
I get this when I click on untitled.jpg. I think the forum requires me to sign in before I can see it.


amkoshesh

Finally I could send my picture

pert

You're still using the old ATtiny13 package that you originally installed, that's why you're still getting the same error. If the MicroCore board isn't showing in the Tools > Board menu then the old package may be interfering with MicroCore, please uninstall the old package and then restart the Arduino IDE.

amkoshesh

You're still using the old ATtiny13 package that you originally installed, that's why you're still getting the same error. If the MicroCore board isn't showing in the Tools > Board menu then the old package may be interfering with MicroCore, please uninstall the old package and then restart the Arduino IDE.
Good news
Great great great
Very good
Thank you
How I appreciate you
Hardware folders of old files got deleted and new files placed on your attiny13
I'm questions
Files related to the attiny45, attiny85, .... atmega8, atmega16, atmega128, pic ic , se ic
Link the most?
Where is?

Very grateful
Very grateful

amkoshesh




How disable the divide clock by 8؟
Because the disorder Runtime

Hex code has already been made. In this way it is possible to transfer?




amkoshesh

STMicroelectronics IC core for Arduino. There is?

pert

Files related to the attiny45, attiny85
https://github.com/SpenceKonde/ATTinyCore

atmega8
https://github.com/MCUdude/MiniCore

atmega16
https://github.com/MCUdude/MightyCore

atmega128
https://github.com/MCUdude/MegaCore

pic ic
Not sure, maybe someone else knows of a good PIC package for Arduino

se ic
What's that? Intel Quark SE?

STMicroelectronics IC core for Arduino. There is?
https://github.com/rogerclarkmelbourne/Arduino_STM32 (for STM32)

How disable the divide clock by 8
If I'm reading the fuse settings in MicroCore it should do that by default. Here they are for the Tools > Clock > 9.6 MHz internal osc., Tools > B.O.D. > 2.7v board setting:
http://eleccelerator.com/fusecalc/fusecalc.php?chip=attiny13&LOW=3A&HIGH=FB&LOCKBIT=3E
The chip comes from the factory with the fuses set to divide the clock by 8. Did you do Tools > Burn Boorloader? This is required to set the fuses according to your selections in the Tools menus, even though there is no bootloader in MicroCore. Sketch > Upload Using Programmer does not set the fuses

Go Up