Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 18, 2024, 08:40:51 08:40


Login with username, password and session length


Pages: [1]
Print
Author Topic: MikroElektronica Compilers with an Arduino Uno  (Read 15913 times)
0 Members and 1 Guest are viewing this topic.
GunMage
Junior Member
**
Offline Offline

Posts: 65

Thank You
-Given: 11
-Receive: 35



« on: April 10, 2012, 08:29:21 20:29 »

I appreciate any insight you guys can give me. I would like to avoid any pitfalls and time wasting. Honestly I am not certain this path is a good idea.
As a Mikroe Complier user for PICs, I am comfortable in that enviornment. Has anyone used one of their AVR compilers with an Arduino Uno? I have one laying around and thought I would try to make it into something useful.
Is there anything in particular I should look out for? Can I just load the compiled code onto it via a bootloader?

Sorry if this post seems vague but I am trying to see if this is even worth my time before I have any specific questions.

Thanks in advance
Logged
CocaCola
Senior Member
****
Offline Offline

Posts: 482

Thank You
-Given: 169
-Receive: 232



« Reply #1 on: April 11, 2012, 04:45:19 04:45 »

The Arduino is nothing more than a generic basic AVR development board with a USB interface and bootloader...  It amazes me that there is this perceived mystery surrounding them like they are something special or unique...  Anyway, any compiled AVR code (chip dependent) can be loaded into it just fine using the built in bootloader no matter what software you use to compile the code...  Or pull the chip off and load it via a real programmer and skip the bootloader altogether if that fits your needs or style...
« Last Edit: April 11, 2012, 04:50:28 04:50 by CocaCola » Logged
CocaCola
Senior Member
****
Offline Offline

Posts: 482

Thank You
-Given: 169
-Receive: 232



« Reply #2 on: April 11, 2012, 06:19:48 06:19 »

This program should simplify loading an outside created hex to an Arduino

http://smileymicros.com/blog/2010/10/11/ardup-an-arduino-hex-file-uploader/

If not there are plenty of tutorials out there to use AVRdude to load the hex...
Logged
GunMage
Junior Member
**
Offline Offline

Posts: 65

Thank You
-Given: 11
-Receive: 35



« Reply #3 on: April 11, 2012, 10:43:50 22:43 »

The Arduino is nothing more than a generic basic AVR development board with a USB interface and bootloader...  It amazes me that there is this perceived mystery surrounding them like they are something special or unique...  Anyway, any compiled AVR code (chip dependent) can be loaded into it just fine using the built in bootloader no matter what software you use to compile the code...  Or pull the chip off and load it via a real programmer and skip the bootloader altogether if that fits your needs or style...

I apprecaite the insight. I had thought as much but just wasn't too sure what all was on the Board outside of the fact it is am ATMEL micro. Since that is the case, I will just treat it like I do my PICs. Guess I will just have to download the ATMEL Datasheet and see what I can make it do.
Look like this is the next Micro I send to 6KM underwater.

Logged
one
Inactive

Offline Offline

Posts: 4

Thank You
-Given: 8
-Receive: 1


« Reply #4 on: May 26, 2012, 08:21:33 20:21 »

You can study the Mini-At board, which is a Mikroe product. This is very similar with Arduino, practicaly the same. In the manual of this product is described the way to set an option to MikroC compiler, in order to burn your file into Arduino board, via USB connection. If you follow the steps described in this manual, you should have a valid connection with Arduino.
Logged
Pravi
Junior Member
**
Offline Offline

Posts: 41

Thank You
-Given: 10
-Receive: 1

You get what you give


« Reply #5 on: June 04, 2012, 10:34:54 22:34 »

Quote
The Arduino is nothing more than a generic basic AVR development board with a USB interface and bootloader...
This is so true. Initially when I was wanting to work on electronics and looking around for a development board, it took me almost months to understand that Arduino is no different than any other planned AVR development board.

If you are interested in learning, keep Arduino away for some time and start off with basics. Once through with AVR (start with Atmega8/168/328) microcontrollers, then everything is so cheese. Just Google Atmega8 development boards and see how they are designed.
« Last Edit: June 04, 2012, 10:37:54 22:37 by Pravi » Logged

svicent
Newbie
*
Offline Offline

Posts: 12

Thank You
-Given: 1
-Receive: 7


« Reply #6 on: December 11, 2012, 03:40:42 15:40 »

Another GUI for AVRdude (AVR8 Burn-O-Mat)

http://avr8-burn-o-mat.brischalle.de/avr8_burn_o_mat_avrdude_gui_en.html
Logged
avralam
Active Member
***
Offline Offline

Posts: 140

Thank You
-Given: 153
-Receive: 30


« Reply #7 on: December 16, 2012, 03:04:28 15:04 »

Avrdude not need GUI. Avrdude can run from commandline.

-F -v -pm328p -cstk500v1 -P\\.\COM7 -b115200 -D -Uflash:w:"D:\avr\Arduino\arduino bascom\mycode\1\ARDUINO-uno.hex":i
 Real working Uno R3 avrdude Bascom programmer :
-F -v -pm328p -cstk500v1 -P\\.\COM7 -b115200 -D -Uflash:w:{FILE}:i
Serial port real  working number need find from Control Panel => System => Hardware => Ports
Real Working Bascom programmer supported 3 resistor  DAPA Parallelport programmer.
UNO REV3 With old USB1 computer :
-F -v -p m328P -c dapa -P lpt1 -Uflash:w:{FILE}:i
Needed Install Winavr or copy working avrdude on C:\.... and not any Frameworks....
Links:
AVRDUDE.exe
http://avrhelp.mcselec.com/index.html?arduino.htm
https://sites.google.com/site/bplusw...no-goes-bascom
http://www.ngcoders.com/downloads/ar...nd-programmer/
http://russemotto.com/xloader/
http://code.google.com/p/avr-project-ide/
http://arduino.cc/forum/index.php?topic=38146.0
Logged
hotshot05
Inactive

Offline Offline

Posts: 4

Thank You
-Given: 0
-Receive: 6


« Reply #8 on: January 15, 2013, 09:12:43 21:12 »

If you want to get started with writing C code for your AVR micro, read this post : http://iamsuhasm.wordpress.com/tutsproj/avr-gcc-tutorial/

I would suggest you use Atmel Studio 6(though I prefer AVR Studio 4 since it is very light) for writing and debugging your code. When I used MikroC pro for AVR, I could not find the hardware simulator feature which AVR Studio has. You can view the change in state of pins while cycling through statements one by one, when in debug mode. Many a times it has allowed me to detect a logical error which I had committed when doing bit manipulation.
Logged
slackdick
Newbie
*
Offline Offline

Posts: 7

Thank You
-Given: 13
-Receive: 2


« Reply #9 on: January 14, 2014, 08:00:21 20:00 »

An excellent alternative is using Atmel  Studio 6 combined with Visual Micro (both of which are essentially free to download and use) as shown here:-
http://www.youtube.com/watch?v=fFM8_RhIG0U

This gives you all the advantages of a very good IDE (Atmel Studio is basically a tailored version of Visual Studio), while being able to use 'standard' Arduino code and libraries, and still be able to upload to the board from the IDE.  I personally find this lots better than the normal Arduino IDE and more productive. 
Note that the debugging features of Visual Micro are a paid for extra.
Logged
msnm4
Junior Member
**
Offline Offline

Posts: 42

Thank You
-Given: 41
-Receive: 11


« Reply #10 on: July 18, 2014, 07:52:17 19:52 »

Hi all, a friendly option is to use AVR SIM IDE from oshonsoft and send the compiled resulting .hex to the Arduino (untouched, with bootlader) through a tiny program called X-loader. This way you are programming it in Basic instead of using the native language with its primitive IDE.
Logged
TucoRamirez
Senior Member
****
Offline Offline

Posts: 307

Thank You
-Given: 257
-Receive: 115


Tuco ... dead or Alive


« Reply #11 on: July 18, 2014, 09:16:18 21:16 »


personally i prefer AVRDUDESS (yep with 2 's' i was surprised too)  a gui that makes the task easy
Logged

Whoever double crosses me and leaves me alive... he understands nothing about Tuco.
Okada
Active Member
***
 Warned
Offline Offline

Posts: 132

Thank You
-Given: 29
-Receive: 188


« Reply #12 on: July 20, 2014, 04:44:59 16:44 »

MegunoLink Pro is better than AVRDUDESS. With help from Top I made a keygen for MegunoLink Pro. It is very easy to upload .hex to Arduino boards using MegunoLink Pro and AVRISP mkII.
Logged
towlerg
Senior Member
****
Offline Offline

Posts: 263

Thank You
-Given: 474
-Receive: 104

What is this for?


« Reply #13 on: July 20, 2014, 05:54:22 17:54 »

MegunoLink Pro looks realy interesting, any chance of releasing your keygen?

George
Logged

Win 7 Ult x64 SP1 on HP2570p
mick
Active Member
***
Offline Offline

Posts: 228

Thank You
-Given: 1992
-Receive: 119


« Reply #14 on: July 30, 2014, 12:25:02 12:25 »

Who can help with fix for MegunoLink Pro

                     Thanks
                         
Logged
papibaer
Inactive

Offline Offline

Posts: 5

Thank You
-Given: 5
-Receive: 3


« Reply #15 on: August 10, 2014, 01:59:47 13:59 »

Hi,
according OP question for uploading the HEX from MicroE compiler directly, I prefere following procedure that can be integrated into IDE directly, and does not need to manualy start seperate software.

Assuming somwhere on your PC AVRDUDE is already installed (mostprobably in the Arduino directory, since you use arduino) you can create a tool entry in the MirkroC compiler:

Menu: Tools->Options
goto tab ->Tools->Tool0 (or any other free Toolx tab)

Fill in as followins:

Tool Name: "Arduino_com5"

Filename (path to AVR-Dude) for me: "C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avrdude.exe"

Parameters (make sure to adjust the included pathes and com-ports for your system) for me:
-u -b 57600 -B 0.5 -C "C:\Program Files (x86)\Arduino\hardware\tools\avr\etc\avrdude.conf" -p m328p -P com5 -c arduino -U flash:w:"%HEX_FILE_NAME":a

Shortcut (for me): Ctrl+F5

after confirming with OK you will also see a new icon next to the Screen-size filed (mostprobably blank white since AVR dude has no icon in the .exe rescources).
Maybe restart is required.

Then after building your project just press the new blank icon (or Ctrl+F5) and MikroC will start to upload your Hexfile with AVRDUDE via Arduino bootloader on serial port.

Enjoy!





Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC