Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 04, 2016, 07:03:49 07:03


Login with username, password and session length


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

Posts: 61

Thank You
-Given: 8
-Receive: 35



« on: April 10, 2012, 09:29:21 21: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
V.I.P
Senior Member
*****
Offline Offline

Posts: 397

Thank You
-Given: 108
-Receive: 179


« Reply #1 on: April 11, 2012, 05:45:19 05: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, 05:50:28 05:50 by CocaCola » Logged
CocaCola
V.I.P
Senior Member
*****
Offline Offline

Posts: 397

Thank You
-Given: 108
-Receive: 179


« Reply #2 on: April 11, 2012, 07:19:48 07: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
V.I.P
Junior Member
*****
Offline Offline

Posts: 61

Thank You
-Given: 8
-Receive: 35



« Reply #3 on: April 11, 2012, 11:43:50 23: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
V.I.P
Inactive
*****
Offline Offline

Posts: 4

Thank You
-Given: 7
-Receive: 1


« Reply #4 on: May 26, 2012, 09:21:33 21: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
**
 Muted
Offline Offline

Posts: 41

Thank You
-Given: 10
-Receive: 1

You get what you give


« Reply #5 on: June 04, 2012, 11:34:54 23: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, 11:37:54 23:37 by Pravi » Logged

svicent
Newbie
*
Offline Offline

Posts: 12

Thank You
-Given: 1
-Receive: 7


« Reply #6 on: December 11, 2012, 04:40:42 16: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
***
 Muted
Offline Offline

Posts: 147

Thank You
-Given: 153
-Receive: 30


« Reply #7 on: December 16, 2012, 04:04:28 16: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

 Muted
Offline Offline

Posts: 4

Thank You
-Given: 0
-Receive: 6


« Reply #8 on: January 15, 2013, 10:12:43 22: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
*
 Muted
Offline Offline

Posts: 8

Thank You
-Given: 13
-Receive: 2


« Reply #9 on: January 14, 2014, 09:00:21 21: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, 08:52:17 20: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: 277

Thank You
-Given: 197
-Receive: 95


Tuco ... dead or Alive


« Reply #11 on: July 18, 2014, 10:16:18 22: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
***
 Muted
Offline Offline

Posts: 132

Thank You
-Given: 29
-Receive: 198


« Reply #12 on: July 20, 2014, 05:44:59 17: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
V.I.P
Active Member
*****
Offline Offline

Posts: 136

Thank You
-Given: 282
-Receive: 48

What is this for?


« Reply #13 on: July 20, 2014, 06:54:22 18:54 »

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

George
Logged

Win 7 Ult x86 SP1 on HP6910p
mick
Active Member
***
Offline Offline

Posts: 196

Thank You
-Given: 929
-Receive: 84


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

Who can help with fix for MegunoLink Pro

                     Thanks
                         
Logged
papibaer
Inactive

Offline Offline

Posts: 4

Thank You
-Given: 4
-Receive: 3


« Reply #15 on: August 10, 2014, 02:59:47 14: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