Hello, as the subject said, i am looking for info about the options in the IDE under TOOLS/Bootloader, there are many options under there and looking for information in how to use them. this is not about the option BURN Bootloader, but just Bootloader that appears when i select the Attiny13. There are other option that appears once the Attiny13 is selected.
Attiny13 doesn't have a UART and only has 1024 bytes of flash, so it not used any bootloader/ You need an external programator to upload the code on the chip.
Sorry, I forgot to mention that I am using the Arduino uno as the programmer .
Just please focus in the question. Thank you
Which question?
It seems to me that I didn't understand what you asked.
Please clarify your problem.
On the Arduino IDE, Tools, there are options that appear once you choose the attiny13 as the microcontroller target. There is one option in particular that I don't know how to used it. The option is BOOTLOADER (not burn bootloader), if you highlight Bootloader, there are options, the first 2 options are "no bootloader" and "yes". I would like to know how to use them.
I'm trying to burn the bootloader into the attiny13 and don't know what effect will have if I choose one or the other.
Hope I explained better this time....
So i answered the question - do not use bootloader for attiny13.
Well, I still don't have the info that I'm looking for.....
I'm new at this, the bootloader will allow me to reprogram the attiny13 if I mess up with the programming multiple times. The program that I'm going to use in the attiny13 is small enough for it. But I need the flexibility to reprogram it, being new at this, I'm sure I will mess up.
Again...
If you using a Uno as progremmer, you don't need a bootloader.
Hmmm... Alright, I will try with no bootloader.
In my search for info about the project at hand, everytime I have seen a video about programming the Attiny13 or the attiny85 always the bootloader is program into the MCU. So now I am puzzle!, If it is not need it, why the first step is to load the bootloader in the videos I have seen?
If you be kind and explain what is the function of the bootloader?
If I make a programming mistake, will I be able to reprogram the attiny13 with the Arduino uno?
Thank you for your time....
Hello.. Could anyone help me with this program... I am getting an strange error about functions and timer. I am not using any timer here. Please take a look you might be able to see something can not....
:\Program Files (x86)\Arduino\examples\libraries\IRremote\src/private/IRTimer.hpp:1076:2: error: #error Internal code configuration error, no timer functions implemented for this AVR CPU / board
#error Internal code configuration error, no timer functions implemented for this AVR CPU / board
The program:
#include <IRremote.h>
#define IR_PIN 1
#define TOUCH_PIN 2
#define OUTPUT_PIN 5
#define IR_SIGNAL_1 0x40
#define IR_SIGNAL_2 0x19
IRrecv irReceiver(IR_PIN);
decode_results irResults;
void setup() {
pinMode(TOUCH_PIN, INPUT);
pinMode(OUTPUT_PIN, OUTPUT);
irReceiver.enableIRIn();
}
void loop() {
// Check if the touch sensor is pressed
if (digitalRead(TOUCH_PIN) == HIGH) {
// Toggle the lamp state
digitalWrite(OUTPUT_PIN, !digitalRead(OUTPUT_PIN));
delay(200); // Delay for debouncing
}
// Check if an IR signal is received
if (irReceiver.decode(&irResults)) {
// Check if the received IR signal matches either of the defined signals
if (irResults.value == IR_SIGNAL_1 || irResults.value == IR_SIGNAL_2) {
// Toggle the lamp state
digitalWrite(OUTPUT_PIN, !digitalRead(OUTPUT_PIN));
}
irReceiver.resume(); // Receive the next IR signal
}
}
Thanks for any help you could provide....
Note: I am using a 2 button remote. I want either button turn on or off the lamp. The Hex codes are the values of the buttons.
no, you used a timer function:
Huh... Ok, thanks for pointing it out.
It seems to me that you do not quite understand what an attiny13 is.
This is the controller of most basic level, with a minimum of peripherals, with very little memory for programs and even less for data.
For it, you can not write sketches in the usual arduino style. It does not support most of the basic arduino functions and most libraries do not work on it.
This microcontroller needs to be programmed in pure C with direct access to registers.
I appreciate your comment, there are way too many details to be aware of in order to accomplish a simple project as this. But with the feedback I will be able to address it, in this case with C and accessing the registers directly..., Thanks again. Good day
A couple questions if I may:
Can I use Arduino IDE to program in C and uploaded to the MCU?
Second:
If I use assembler for the attiny13, can Arduino IDE be used for that? If not, which tool can be accessible (free) in order to upload the program to the MCU?
Thanks for any comments
Surely.
You already do it, because the language Arduino IDE used is C/C++.
Arduino packages and commands not more than set a C/C++ libraries, classes and methods.
Sorry, I don't use assember so I hardly could be guru in the subject.
in trying to compile a C program (as suggested), i am getting this error.
C:\Users\LALUNA~1\AppData\Local\Temp\ccqgqtkm.ltrans0.ltrans.o: In function main': C:\Users\La Luna\AppData\Local\Arduino15\packages\MicroCore\hardware\avr\2.3.0\cores\microcore/main.cpp:18: undefined reference to setup'
C:\Users\La Luna\AppData\Local\Arduino15\packages\MicroCore\hardware\avr\2.3.0\cores\microcore/main.cpp:21: undefined reference to `loop'
collect2.exe: error: ld returned 1 exit status
exit status 1
Compilation error: exit status 1
Does this mean that the problem resides in Microcode 2.3 library I'm using?
Thank you for any feedback...