Mac OS doesnt recognize when Atmega128 is connected!

Go To Last Post
7 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

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.

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,

"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

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?
What should I do?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
However the chip is the same as the arduino.
What chip it is is irrelevant. The arduino is to tell it what programming device is being used (in this case the arduino bootloader). Does your device contain a bootloader, or is the device itself an AVR programmer?

Regards,
Steve A.

The Board helps those that help themselves.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You need to specify the 'port' to AVRDUDE. A quick way to find the correct one is as follows...

    Unplug your avr In Terminal, type the command "ls/dev/cu.*"
    Plug in your avr, and repeat the above command.
    There should be a new name, for example "/dev/cu.usbserial-A8004xfS".

Then, use

avrdude -c arduino -p m128 -P /dev/cu.usbserial-A8004xfS -U:flash:w:test.hex

You may also need to specify the baud rate, using -b

-b 57600

for example

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks for the answers.
@mikericetga
It doesnt appear. I only shows my cardreader, keyboard, and etc

In another forum I got the following response:

Quote:
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.

This microcontroller does not have the arduino bootloader. Is there a way to still program it? I dont know which bootloader is used in this microcontroller and I can not remove the Atmega128 from the board.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

I dont know which bootloader is used in this microcontroller and I can not remove the Atmega128 from the board.

It might not have any bootloader at all programmed to it. If so then you will need external programming hardware to program it.

Does the board have a connector/header marked "ISP" or one marked "JTAG"?

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

As far as I see there is no JTAG or ISP.
Here is the schematic and connection schematic for the board.

http://www.robotik.se/?page_id=48

and here is the software and drivers for the windows platforms:
http://www.robotik.se/?page_id=51

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quickly looking over some documents on the site you link to it seems the AVR on the card has a bootloader on-board.

I see that the site is a Swedish one. Are you actually in Sweden?

Perhaps you could simply contact the maker of the board and ask him if the ATmega128 has a bootloader programmed into it, and if so what protocol it uses?

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]