Hello,
I have code in text and I need to write it into .c file and compile it to .hex file.
Can anybody help me to find right software, please?
Thanks.
Hello,
I have code in text and I need to write it into .c file and compile it to .hex file.
Can anybody help me to find right software, please?
Thanks.
If you were able to find the forum, I'm surprised that you were not able to find the Main Site (there is a link at the top of every forum page). From there, I'm sure that you could have found the Getting Started link, and from there downloaded the Arduino IDE for your operating system.
Type in your code, press the compile button, and presto, a hex file is produced.
Arduino IDE can compile C code?
I have this problem: I have downloaded ATmega644P bootloader from Google Code Archive - Long-term storage for Google Code Project Hosting. and I want to change baudrate from 38600 (I guess) to 19200 to be able work with Bluetooth module (and than upload into MCU in hex, of course).
Arduino IDE can compile C code?
Yes. That's what it's for. And C++ too.
OK, I though Arduino can compile only arduino language into C and hex...
But when I write bootloader in C into Arduino and verify, some errors appears. For example this one:
sketch_feb23a.cpp: In function 'int main()':
sketch_feb23a:223: error: 'NUM_LED_FLASHES' was not declared in this scope
sketch_feb23a.cpp: In function 'char getch()':
sketch_feb23a:690: error: 'MAX_TIME_COUNT' was not declared in this scope
What can be wrong with it?
What can be wrong with it?
Probably a coding error. But, since we can't see the code, that's just a guess.
Ah. I missed what you were trying to compile. As far as I am aware, you can't use the IDE to compile a bootloader. Google for 'compile arduino bootloader'. I think you need to 'make' it from a command line.
I tried it, but the same errors like during compiling in Arduino IDE have appeared...
I tried it
What is "it" that you tried?
If "it" was compiling from a command line, show us your makefile.
I copy this Google Code Archive - Long-term storage for Google Code Project Hosting. into text editor, modified it and in Total Commander I changed it into C file. I used Sanguino Makefile (I have 644P).
I also tried to modify Makefile in text editor, but unsuccessfully.
OK, I though Arduino can compile only arduino language into C and hex...
Arduino is programmed in C/C++. The compiler invoked by the IDE is in fact gcc.
Can anybody help me to find right software, please?
From the chip45 bootloader doc at http://download.chip45.com/chip45boot2_infosheet.pdf
WHAT ELSE DO YOU NEED?
...
– The AVR GNU Toolchain development environment from Atmel (avr-toolchain-3.3.0.710-win32.x86) or older
WinAVR (see http://winavr.sourceforge.net) if you want to modify the bootloader code.
Hope that helps.
Thanks for your help and I am sorry for a delayed answer, I was at cottage...
I looked up at chip45; it looks like an useful tool, but unfortunetlly I use AVR Pocket Programmer (usb...). I have kept it for a later use.
I am being again focused on atmega644p bootloader modifying. If somebody know , how to create a bootloader for 644p cooperating with bluetooth 19200bd (BTM-112), please let me know.
Thanks.
The code you specified from Google Code Archive - Long-term storage for Google Code Project Hosting. has in its comments
/* For the latest version see: */
/* http://www.chip45.com/