#toc, .toc, .mw-warning { border: 1px solid rgb(170, 170, 170); background-color: rgb(249, 249, 249); padding: 5px; font-size: 95%; }#toc h2, .toc h2 { display: inline; border: medium none; padding: 0pt; font-size: 100%; font-weight: bold; }#toc #toctitle, .toc #toctitle, #toc .toctitle, .toc .toctitle { text-align: center; }#toc ul, .toc ul { list-style-type: none; list-style-image: none; margin-left: 0pt; padding-left: 0pt; text-align: left; }#toc ul ul, .toc ul ul { margin: 0pt 0pt 0pt 2em; }#toc .toctoggle, .toc .toctoggle { font-size: 94%; }body { font-family: 'Times New Roman'; color: rgb(0, 0, 0); widows: 2; font-style: normal; text-indent: 0in; font-variant: normal; font-weight: normal; font-size: 12pt; text-decoration: none; text-align: left; }table { }td { border-collapse: collapse; text-align: left; vertical-align: top; }p, h1, h2, h3, li { color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 12pt; text-align: left; }
Hi,
We are currently using the SAM-ICE with Sam-Ba (Atmel) under XP and succeed to flash the nand correctly.
We now need to use the SAM-ICE under Linux, we first thought to still use it with Sam-Ba (Atmel) as it is available for Linux. We saw there is a driver sam-ba for Linux from kernel 2.6.27 but in fact /dev/ttyUSBn is not created. It seems this driver is not for the SAM-ICE as Vendor Id 0x3eb Product Id 0x6124 in the driver does not match the SAM-ICE Vendor Id 1366 Product Id 0101.
Hi,
We are currently using the SAM-ICE with Sam-Ba (Atmel) under XP and succeed to flash the nand correctly.
We now need to use the SAM-ICE under Linux, we first thought to still use it with Sam-Ba (Atmel) as it is available for Linux. We saw there is a driver sam-ba for Linux from kernel 2.6.27 but in fact /dev/ttyUSBn is not created. It seems this driver is not for the SAM-ICE as Vendor Id 0x3eb Product Id 0x6124 in the driver does not match the SAM-ICE Vendor Id 1366 Product Id 0101.
Then we tried the JLinkExe, bellow what we get :
ubuntu@ubuntu:~/JLink_Linux_V422a$ ./start
SEGGER J-Link Commander V4.22 (‘?’ for help)
Compiled Apr 5 2011 13:54:55
DLL version V4.22, compiled Apr 5 2011 13:54:52
Firmware: J-Link ARM V6 compiled Jun 30 2009 11:05:04
Hardware: V6.00
S/N: 26002136
OEM: SAM-ICE
Feature(s): RDI
VTarget = 3.242V
Info: TotalIRLen = 4, IRPrint = 0x01
Info: CP15.0.0: 0x41069265: ARM, Architecure 5TEJ
Info: CP15.0.1: 0x1D192192: ICache: 32kB (4*256*32), DCache: 32kB (4*256*32)
Info: Cache type: Separate, Write-back, Format C (WT supported)
Found 1 JTAG device, Total IRLen = 4:
#0 Id: 0x0792603F, IRLen: 04, IRPrint: 0x1, ARM926EJ-S Core (Atmel)
Found ARM with core Id 0x0792603F (ARM9)
JTAG speed: 100 kHz
J-Link>speed 872
JTAG speed: 857 kHz
J-Link>testwspeed
Speed test: Writing 8 * 8kb into memory @ address 0x00000000 Info: J-Link: ARM9 CP15 Settings changed: 50078 from 78, MMU Off, ICache Off, DCache Off
........
8 kByte written in 203ms ! (40.2 KByte/sec)
J-Link>testrspeed
Speed test: Reading 8 * 8kb from address 0x00000000 ........
8 kByte read in 238ms ! (34.3 KByte/sec)
J-Link>testcspeed
Testing CPU clock frequency @ address 0x00000000...
CPU running at 48088 kHz
J-Link>exec device AT91SAM9G45
J-Link>loadbin /home/ubuntu/uImage.bin 0x200000
Loading binary file... [/home/ubuntu/uImage.bin]
Writing bin data into target memory @ 0x00200000.
J-Link>q
ubuntu@ubuntu:~/JLink_Linux_V422a
But after that, the Kernel in not updated on the board, maybe we miss some command, under XP we need to initialize the Nand and specify that we send to the Nand, I did not see something like that with JLink.
One more thing if I setup the speed over than 872, testing with testwspeed will fail.
Did we miss some initialization ?
Do you have any idea what we should try to fix the problem ?
Does JLink is the only way to use SAM-ICE under Linux or do you think it should be possible to use Sam-Ba with /dev/ttyUSBn also ?
Best regards
Jean-Marc