connecting SAM-BA v2.9 to the AT91SAM9M10-EKES

Microchip in-system programming solution: SAM-BA

Moderators: nferre, fab

graham1956!
Posts: 15
Joined: Thu Feb 04, 2010 8:49 pm

connecting SAM-BA v2.9 to the AT91SAM9M10-EKES

Wed Feb 24, 2010 7:20 pm

Hello,

I'm trying to connect SAM-BA v2.9 to the AT91SAM9M10-EKES via the USB port (J14).

On power up I select Linux OS and when stable I connect the USB cable to the Host PC (Win XP). I noted there was no recognisation sound on connection like most other usb connections.

On double clicking the SAM-BA v2.9 icon I get COM1 as the only connection type and select at91sam9m10-ek as the board. The app returns 'No valid processor ID found' . I tried again this time using \usb\arm0 as the connection type as per the documentation but this time got failed to open connection.

I looked at the chip id in devices.tkl and the chip id is defined as 0x819b05a0 for the at91sam9m10. I also tried with the RS232 cable plugged into J11 and got the same result.

Any ideas?
rfrost
Location: waterlooville, UK
Posts: 12
Joined: Thu Feb 22, 2007 12:45 pm

Re: connecting SAM-BA v2.9 to the AT91SAM9M10-EKES

Thu Feb 25, 2010 12:15 pm

Hi,

I do not have experience of the evaluation board that you have but I have used the SAM9260 and hope the following comments will be of help,

Normally to use SAM-BA program on a PC I would connect the PC's USB port to a SAM-ICE(JTAG) interface module, this is normally purchased as a separate item. This module has a 20-way ribbon cable that would plug into J13 on your eval board.

If you are plugging a USB cable from PC to J14 then I cannot see that working as you really need access to the debug port of the uP via the JTAG i/f.

An alternative access can be gained to the uP internal ROM based SAM-BA monitor but this has more value when doing your own custom designs. It requires the BMS pin of the uP to be at logic 1 and is link selectable on the eval board. (see data sheet for details). Making access to the uP this way requires you to make an RS232 type interface between your PC and J10 of the eval board.

hope this is some help
graham1956!
Posts: 15
Joined: Thu Feb 04, 2010 8:49 pm

Re: connecting SAM-BA v2.9 to the AT91SAM9M10-EKES

Thu Feb 25, 2010 12:31 pm

Hi,

Thanks for that and I take your point. However the documentation does say you can connect via RS232, USB or JTAG via SAM-ICE which is currently on order and would be the preferred way. I've just received the board and was trying out the software. Out of curiosity do you connect the serial cable to DBGU (J10) or RS232 (J11). I've tried both and neither work. Now there is a J14 Host/Dev which is the connection they mention in the documentation which is a mini usb port.

I think I've either installed SAM-BA wrong or the Chip ID is wrong but I'm only guessing at this stage.
rfrost
Location: waterlooville, UK
Posts: 12
Joined: Thu Feb 22, 2007 12:45 pm

Re: connecting SAM-BA v2.9 to the AT91SAM9M10-EKES

Thu Feb 25, 2010 1:35 pm

Hi,

If I connect the debug RS232 port of my custom board to a PC and try to use SAM-BA I get "no valid processor ID found". When you get your SAM-ICE you will be using a jlink\usb driver. If you connect the RS232 port tx/rx of your PC to J10(DBGU) i/f on the eval board (with the boot mode select, BMS=1) at least you should be able to get the internal ROM boot prompt back ">ROM boot", then you can access uP this the commands listed in the data sheet.

Where does it say that you can use all those i/f's with the SAM-BA program?

all the best
graham1956!
Posts: 15
Joined: Thu Feb 04, 2010 8:49 pm

Re: connecting SAM-BA v2.9 to the AT91SAM9M10-EKES

Thu Feb 25, 2010 1:51 pm

Hi
Thanks for the response.

If you look at the Atmel doc 6421A AT91 ISP/SAM-BA user Guide section 2.2 Running SAM-BA it says :
"Connect your board to your comms inteface (either the host serial com port, or the USB device port or the SAM-ICE Jtag probe)

So I took that to mean the DBGU RS232 or the Host/Dev USB in the absence of my ICE probe. What I find really suspicious is SAM-BA only provides COM1 in the roll down box. Am I reading this wrong as I was surprised to find the absence of an ICE strange.

Atmel got back with some suggestions around JP10 amnd JP12 but resulted in the device not booting up. They did say the Chip ID was fine but then they did say the junper moves would fix the USB problem.
rfrost
Location: waterlooville, UK
Posts: 12
Joined: Thu Feb 22, 2007 12:45 pm

Re: connecting SAM-BA v2.9 to the AT91SAM9M10-EKES

Thu Feb 25, 2010 2:28 pm

Hi,

OK, my custom board does run up using SAM-BA over RS232 comms but I must have BMS=1, so you must check jumper JP8 is open circuit on your eval unit. Then you can use an RS232 comms connection between PC and J10(DBGU) of the eval (2-wires + signal 0V should do you - make sure tx and rx are the right way round)

all the best
graham1956!
Posts: 15
Joined: Thu Feb 04, 2010 8:49 pm

Re: connecting SAM-BA v2.9 to the AT91SAM9M10-EKES

Thu Feb 25, 2010 2:53 pm

Hi

Thanks. I tried setting BMS JP8 to closed but the device wouldn't boot up at all. So I'm stumped and hoping Atmel find come up with a solution.
rfrost
Location: waterlooville, UK
Posts: 12
Joined: Thu Feb 22, 2007 12:45 pm

Re: connecting SAM-BA v2.9 to the AT91SAM9M10-EKES

Thu Feb 25, 2010 3:35 pm

when BMS=open the eval unit will boot from the uP internal ROM using the SAM-BA monitor and outputs ">ROM boot" over RS232 debug port to PC. A cooms program like OC-console will pick this up if settings are as 11.5.2 in the data sheet. You can then get the eval app code running from there hopefully.
When BMS=closed the eval unit will run any app code in the memory attached to NC0 but you can't debug.
graham1956!
Posts: 15
Joined: Thu Feb 04, 2010 8:49 pm

Re: connecting SAM-BA v2.9 to the AT91SAM9M10-EKES

Thu Feb 25, 2010 4:27 pm

Hi

11.5.2 in which data sheet?
Thanks
rfrost
Location: waterlooville, UK
Posts: 12
Joined: Thu Feb 22, 2007 12:45 pm

Re: connecting SAM-BA v2.9 to the AT91SAM9M10-EKES

Thu Feb 25, 2010 5:05 pm

In the SAM9M10 data sheet (doc 6355A) - section 11 is on boot strategies.
graham1956!
Posts: 15
Joined: Thu Feb 04, 2010 8:49 pm

Re: connecting SAM-BA v2.9 to the AT91SAM9M10-EKES

Thu Feb 25, 2010 6:25 pm

Hi
Been tinkering all day and getting some surprising results. I removed JP10 and JP12 powered up the device and the OS didn't boot up. However the host recognised the USB connection this time and installed the USB driver I was them able to connect SAM-BA.

Is this an expected result? The reason I ask is I thought I should have been able to boot up Linux as well.
velik
Posts: 23
Joined: Thu Jan 14, 2010 12:30 pm

Re: connecting SAM-BA v2.9 to the AT91SAM9M10-EKES

Sun Mar 07, 2010 9:53 pm

graham1956! wrote: Is this an expected result? The reason I ask is I thought I should have been able to boot up Linux as well.
Hi
Yes! This is an expected result. The algorithm how to runs the SAM-BA described here:

linux4sam/bin/view/Linux4SAM/AT91Bootstrap#Introduction

You are really can see your board via USB/Serial connection in SAMBA if you start as there described? I ask you, because I got G45 board and it doesn't communicate via USB/Serial :roll:
graham1956!
Posts: 15
Joined: Thu Feb 04, 2010 8:49 pm

Re: connecting SAM-BA v2.9 to the AT91SAM9M10-EKES

Mon Mar 08, 2010 10:53 am

Hi

Not completely sure of your question but I had confirmation from Atmel that this is correct when connecting via Samba. I'm just back from vacation hence the delay in response but I intend to check out Atmel's direction:

'...the linux BSP you can register and then download from linux4sam/bin/view/Linux4SAM/GettingStarted'

Now I'm not familiar with the G45 board but I'm sure other forum members are. All I can say is that I can connect via USB and com1 and (with the ICE connected ) I expect JTAG to work. This I will check out soon as I've just recieved the ICE.

Thanks
velik
Posts: 23
Joined: Thu Jan 14, 2010 12:30 pm

Re: connecting SAM-BA v2.9 to the AT91SAM9M10-EKES

Mon Mar 08, 2010 10:32 pm

Hi graham,

Ok, I found my problem. To flash my G45-EKES I followed this instruction:

linux4sam/bin/view/Linux4SAM/AT91Bootstrap

And there are an error in the sequence for G45. To flash with SAM-BA not only JP10 (as described in this instruction) but both JP10 and JP12 should be opened.
Now SAM-BA in Linux works correct. I don't know how can I inform about error on linux4sam... :roll:

Return to “SAM-BA”

Who is online

Users browsing this forum: No registered users and 2 guests