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  [ 2 posts ] 
Author Message
 Post subject: Sam-ba 2.9 for Linux and AT91SAM9263-EK
PostPosted: Thu Jan 21, 2010 5:20 am 
Offline

Joined: Thu Jan 21, 2010 5:02 am
Posts: 3
I am driving myself crazy trying to get sam-ba for Linux to work on Ubuntu 9.04. I am using the AT91SAM9263-EK (Rev B) evaluation kit with a Segger SAM-ICE JTAG connector.

Basically the situation is that I can successfully flash the board from Windows, but trying to do so from Linux results in a hang:

host% ./sam-ba /dev/ttyUSB0 AT91SAM9263-EK usr/Flash_example.tcl
-I- Waiting ...
-I- TCL platform : Linux
-I- SAM-BA CDC 2.9 rc6 on : linux
-I- Retrieved arguments from command line :
-I- argv 0 : /dev/ttyUSB0
-I- argv 1 : AT91SAM9263-EK
-I- argv 2 : usr/Flash_example.tcl
-I- Connection : /dev/ttyUSB0 (target(comType) = 1)
-I- Board : at91sam9263-ek
-I- Traces Level : 4
-I- target(handle) : file6
.
.
.
(and we hang here...)

lsusb shows the device:
% sudo lsusb -vd 1366:0101

Bus 002 Device 003: ID 1366:0101
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x1366
idProduct 0x0101
bcdDevice 0.01
iManufacturer 1 SEGGER
iProduct 2 J-Link
iSerial 3 123456
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Device Status: 0x0001
Self Powered

usbserial is being properly loaded with the vendor and product id's, and when sam-ba is running lsmod shows the modules as being used by 3 others.

I have tried every trick I can think of and have reviewed the jumped settings over and over. Does anyone out there have any experience with this? Successful or not? Or is there documentation out there I'm not aware of?

I'm game for any advice anyone has at this point.


Top
 Profile  
 
 Post subject: Re: Sam-ba 2.9 for Linux and AT91SAM9263-EK
PostPosted: Thu Jan 21, 2010 7:59 am 
Offline

Joined: Thu Jan 21, 2010 5:02 am
Posts: 3
Ok, and I will reply to my own post and point out that you don't need the JTAG adapter to flash the AT91SAM9263-EK board with the Linux sam-ba. Dropping pin J29, booting the board, replacing the jumper, and then flashing directly via the USB port works.

So I guess my real question would be: Is it possible to flash via Linux san-ba using a jtag adapter such as the Segger SAM-ICE?

Future boards I am working on will apparently not be flashable via USB this way. Er, I am assuming at this point.


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 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: