Need help writing code to Atmega128 on a custom microcontroller!

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
instaada
 
Posts: 2
Joined: Sat May 25, 2013 11:58 pm

Need help writing code to Atmega128 on a custom microcontroller!

Post by instaada »

Hi, pardon me if this is the wrong section for this thread.

I have a custom made microcontroller which has drivers(dlls) for windows and works fine. I can program it. However I want to use the Mac OS for sending code into the chip. It has an Atmega128 and its connected via mini USB.

I have installed AVRDude on Mac and I have my hex file.

Code: Select all

avrdude -c arduino -p m128 -U flash:w:test.hex
not sure if -c arduino is correct since this card is not in the supported microcontrollers. However the chip is the same as the arduino.

I get the following error in terminal,

Code: Select all

"avrdude: ser_open(): can't open device "unknown": No such file or directory
ioctl("TIOCMGET"): Inappropriate ioctl for device"
I guess that it cant find the device, since

Code: Select all

ls tty.*
tty.AlexiPhone-WirelessiAP	tty.Bluetooth-Modem		tty.Bluetooth-PDA-Sync


Can anyone help me on how I may program this microcontroller in Mac OS?
Thank you

User avatar
Franklin97355
 
Posts: 23910
Joined: Mon Apr 21, 2008 2:33 pm

Re: Need help writing code to Atmega128 on a custom microcontroller!

Post by Franklin97355 »

Unless the chip has the Arduino bootloader installed (and I doubt it does if it is custom) you can't use the arduino switch. You also probably can't program it using the usb port. You will need a real programmer and a way to connect it to the chip. If you can remove the chip you may be able to replace it with a chip with the bootloader preloaded from Adafruit.

instaada
 
Posts: 2
Joined: Sat May 25, 2013 11:58 pm

Re: Need help writing code to Atmega128 on a custom microcontroller!

Post by instaada »

Thank you. Unfortunately I cant remove the chip from the board.
You will need a real programmer and a way to connect it to the chip
Is there a way that I could do it? Are there any guides out there?
The bootloader is not arduino. I have asked the creator of the board about the bootloader and im waiting for a response!

Here is the microcontrollers schematics and few informations:
http://www.robotik.se/?page_id=48

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Need help writing code to Atmega128 on a custom microcontroller!

Post by adafruit_support_mike »

Our programmer is here: http://www.adafruit.com/products/46

There are lots of others though, at various prices and with various feature sets. Ours is fairly simple, but gets the job done at an affordable price.

Locked
Please be positive and constructive with your questions and comments.

Return to “Microcontrollers”