Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: MAC OS X SUPPORT: WHERE IS IT?
PostPosted: Mon May 09, 2011 8:50 am 
Offline

Joined: Mon May 09, 2011 8:44 am
Posts: 3
Hi,

I'm trying to get SAM-BA, or some form of it, working on my Mac OS X platform.

Why is there no support for it? This is a popular, open-source, Unix-based platform - especially among students.

Could someone please suggest how to get ISP programming working for this platform?

Admins, could you post source code to the SAM-BA binaries so that it can be compiled for this platform?

Thanks.


Top
 Profile  
 
 Post subject: Re: MAC OS X SUPPORT: WHERE IS IT?
PostPosted: Mon May 09, 2011 5:05 pm 
Offline

Joined: Sat Oct 30, 2010 6:04 pm
Posts: 784
>>Why is there no support for it? This is a popular, open-source, Unix-based platform - especially among students.

It's probably in the same place as the million dollar part orders.

NetBook PC with Win7, cygwin, GCC/GNU $200

The CPU side SAM-BA protocol is a free Google search away, and described in several ATMEL doc's I've run into.


Top
 Profile  
 
 Post subject: Re: MAC OS X SUPPORT: WHERE IS IT?
PostPosted: Mon May 09, 2011 9:26 pm 
Offline

Joined: Mon May 09, 2011 8:44 am
Posts: 3
[quote="CptTitanic"]>>Why is there no support for it? This is a popular, open-source, Unix-based platform - especially among students.

It's probably in the same place as the million dollar part orders.

NetBook PC with Win7, cygwin, GCC/GNU $200

The CPU side SAM-BA protocol is a free Google search away, and described in several ATMEL doc's I've run into.[/quote]

Not a very convenient solution for many people. ;)


Top
 Profile  
 
 Post subject: Re: MAC OS X SUPPORT: WHERE IS IT?
PostPosted: Tue May 10, 2011 11:48 am 
Offline

Joined: Wed May 04, 2011 5:40 am
Posts: 4
I wound up writing my own SAM-BA client on my Mac. It's just a Python script I run from a terminal. The Atmel SAM-BA docs were incomplete at best, and had a couple significant errors. I had to use VMWare to snoop the USB traffic from Atmel's Windows program in order to find the undocumented stuff to make it work.

For example, they put in a chapter about XMODEM but the USB interface doesn't use it at all; instead, the data is transferred as raw bytes in the read/write file commands.

Also there's an undocumented "N#" command that puts it in native mode so you send parameters in binary instead of hex ASCII ("T#" puts it back). These commands are mentioned but undocumented in the SAM3S data sheet. Atmel's SAM-BA client only uses N# mode.

Anyway, what I've got requires Python 2.6 or so (should be built-in to OS X 10.6) and the "pyserial" extension. You use it by running something like "samba.py -p /dev/tty.usbmodem1234 -E -W gcc/demo.bin -S F0" (erase, write file, and set boot to Flash 0). The device name is different for each machine, but it's usually the only /dev/tty.usbmodem* available when you have the USB plugged in. It's not fully tested (I think there are still bugs in readback), but it seems to work for me.


Attachments:
File comment: Python script to talk to Atmel's SAM-BA over a USB serial port. Tested on a Mac. Requires Python 2.6 or 2.7 and pyserial.
sam-ba_py_0.1.zip [19.12 KiB]
Downloaded 20 times

_________________
--- Admins: Please enable BBCode. ---
Top
 Profile  
 
 Post subject: Re: MAC OS X SUPPORT: WHERE IS IT?
PostPosted: Tue May 10, 2011 6:02 pm 
Offline

Joined: Mon May 09, 2011 8:44 am
Posts: 3
Thanks alot greyhare!

Did you have any problems getting the board to show up as a serial device in OS X? I can't seem to find mine in /dev/.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: