Hi misterT,
Did you mean the Atmel Studio 6.2 Beta? I have Win 8.1 on my laptop.
I bought 3 extra 328 uControllers. The one that was on the board I boot loaded with the Arduino IDE.
I want to boot load a different chip for the Atmel Studio 6. All I see on the webpage is 6.1 & 6.2.
Hi there misterT,
What would you say the learning curve looks like for the Atmel Studio 6 or whatever? I am new to the Atmel chips more or less coming in from a PIC background.
Can you program Sketch's from the Arduino library with that too? How about the bootloader, can you burn a bootloader from Arduino?
Xmega works with same programmers and compilers, but the chip is different from other "mega". It is really clever design.. the registers for all peripherals are structured so that you can easily map C structures in a standard way to them etc... but I would not jump to xmegas until you really want to or really need to.. For Xmegas you really need to change some fundamental ways of thinking.. but xmega is a really nice uC design.I also wanted to look into the Xmega chips as they have some features i can use. Have you worked with any of those yet or do you know if they can be programmed the same way with the same programmer?
Hi misterT,The Atmel Studio 6.2 Beta is good. Go with that. I have not found any problems with it so far.. only improvements.
If you do not have a programmer, then you need a bootloader in the uControllers and then use the arduino software to program the hex into the uC.. or you can use the arduino as an In System Programmer..
Hi misterT,
Thanks for the info. I haven't tried using the Studio6.2 yet.
Right now I'm just learning the Arduino with the books and learning.
Why turn your back on Arduino IDE?
...
It seems a shame to make life more difficult for yourself by shunning half the stuff people have worked on to make it easy for people.
Why turn your back on Arduino IDE? It comes with a lot of code for various example mini-projects to help the learning experience. The code from these can become a basis of projects of your own. Lots of the examples demonstrate libraries you can download which will help interface with lots of nice (often cheap ebay etc) hardware sensors, displays, motor drivers etc.
You mean a terminal? Putty is the best terminal program I know. And it is free. With it you can log your output data into a file, copy-paste it into excel and plot into a graph.. Nice way to debug and use ADC data.. test digital filters etc.The IDE comes with a serial monitor to display serial output from your program which can be invaluable for debugging, and can pass PC keyboard input to your code.
On the Arduino forums there's a very active community of users who can provide help.
... just like with a regular C language, but it may be limited im just not sure yet.
#include <Arduino.h>
int main(void)
{
init();
#if defined(USBCON)
USBDevice.attach();
#endif
setup();
for (;;) {
loop();
if (serialEventRun) serialEventRun();
}
return 0;
}
C++ is an extension to C. The goal of C++ is to be Object Oriented language. The main use of C++ is in really large and complicated software projects. When you program microcontrollers, plain C is "lean and mean".. C++ is just uselessly complex. Use C++ only when you have a good reason to use it.. most times the reason is that you have no other option.What is wrong with using C++ ?
No, no, no.. bootloader is just a piece of code that helps you download the actual code (that you have written and compiled) in the AVR program memory. After that the bootloader does nothing. The code you wrote and uploaded is executed and main function is the entry-point of that program.I take it that main() function is in the bootloader? If so then i guess the bootloader would have to be changed for some things. Any ideas without modifying the whole bootloader?
I'm interested in using the interrupts too and found this useful page from Nick Gammon: https://gammon.com.au/interruptsHi again,
Im still playing around with the Arduino platform in an attempt to evaluate this interesting tool for writing code for some microcontrollers. For now my opinion is divided a little. On the one hand there is lots of example code. On the other hand if you want to do anything special you really have to understand the whole library.
Interrupt support may be limited. It appears that there are interrupts for pins but not for peripherals, so i have not found out yet how to use an interrupt for the ADC after putting the chip to sleep. It might be simple or more complicated, but i just havent found out how to do that yet. I've only written one application so far too, but if it is just basic stuff it's pretty fast and relatively easy.
Supposedly you can enter asm code too just like with a regular C language, but it may be limited im just not sure yet.
I'm interested in using the interrupts too and found this useful page from Nick Gammon: https://gammon.com.au/interrupts
It lists the interrupts available and the vector names to use for each.
I had thought that maybe the bootloader was part of the Arduino system.
You are not using the bootloader then.. Your external chips probably do not have a bootloader.I also wonder now if i am even using the bootloader because i switched to using the three wire programming interface, using the Uno to program external chips.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?