2009-12-28 02:15:38     ADZS-ICE-100B and GNU Toolchain

Document created by Aaronwu Employee on Oct 16, 2013
Version 1Show Document
  • View in full screen mode

2009-12-28 02:15:38     ADZS-ICE-100B and GNU Toolchain

Alexey Komarov (RUSSIAN FEDERATION)

Message: 83978    Hello All, Is it possible to use ADZS-ICE-100B with GNU Toolchain for Blackfin

QuoteReplyEditDelete

 

 

2009-12-28 02:26:30     Re: ADZS-ICE-100B and GNU Toolchain

Jie Zhang (UNITED STATES)

Message: 83980   

 

No. It can only be used with VDSP.

 

http://docs.blackfin.uclinux.org/doku.php?id=buy_stuff#other

 

lists JTAG ICEs which can be used with GNU Toolchain.

QuoteReplyEditDelete

 

 

2009-12-28 11:40:27     Re: ADZS-ICE-100B and GNU Toolchain

Mike Frysinger (UNITED STATES)

Message: 84002   

 

eventually it will be, but not right now

QuoteReplyEditDelete

 

 

2010-01-15 04:48:04     Re: ADZS-ICE-100B and GNU Toolchain

Alexey Komarov (RUSSIAN FEDERATION)

Message: 84647    I've seen it will be the February 2010... So do your hear something about ordinary ADI's emulator support? (ADZS-USB-ICE)

QuoteReplyEditDelete

 

 

2010-01-15 04:51:56     Re: ADZS-ICE-100B and GNU Toolchain

Mike Frysinger (UNITED STATES)

Message: 84649   

 

there are no plans at this time for that to ever be supported

QuoteReplyEditDelete

 

 

2010-01-15 09:22:33     Re: ADZS-ICE-100B and GNU Toolchain

Alexey Komarov (RUSSIAN FEDERATION)

Message: 84654    Many thanks for reply! So we will wait for GNU support for ICE-100B... I've seen it will February 2010. Is is true?

QuoteReplyEditDelete

 

 

2010-01-15 14:29:46     Re: ADZS-ICE-100B and GNU Toolchain

Mike Frysinger (UNITED STATES)

Message: 84657   

 

the people doing the port arent part of the Linux team, so we dont have control over the schedule.  if that's the date you were quoted, then sure.

 

QuoteReplyEditDelete

 

 

2010-01-18 10:16:27     Re: ADZS-ICE-100B and GNU Toolchain

Robin Getz (UNITED STATES)

Message: 84723   

 

Alexey:

 

I just got off the phone with the guy who is doing the work - and he thought that Feb was optimistic. Where did you see that date?

 

-Robin

QuoteReplyEditDelete

 

 

2010-01-19 01:57:31     Re: ADZS-ICE-100B and GNU Toolchain

Alexey Komarov (RUSSIAN FEDERATION)

Message: 84727    I saw this date on ADI's presentation promoting ICE-100B. Here is on slide 5. http://www.analog.com/en/embedded-processing-dsp/blackfin/processors/video_ice100b_module_training/fca.html

QuoteReplyEditDelete

 

 

2010-07-04 09:37:57     Re: ADZS-ICE-100B and GNU Toolchain

Robin Getz (UNITED STATES)

Message: 90877   

 

Just for the sake to being complete - ADZS-ICE-100B is now supported in trunk, and will be in the 2010R1 release.

 

-Robin

QuoteReplyEditDelete

 

 

2010-10-15 10:23:10     Re: ADZS-ICE-100B and GNU Toolchain

Thorsten Brandt (GERMANY)

Message: 94563   

 

I'm having difficulties to get the ICE-100B detected under bfin-jtag

 

what is the best procedure to get things going ?

 

I was able to find the device with dmesg.

TranslateQuoteReplyEditDelete

 

 

2010-10-15 14:03:57     Re: ADZS-ICE-100B and GNU Toolchain

Mike Frysinger (UNITED STATES)

Message: 94570   

 

it's the same procedure as any cable.  plug it in and use it.  you're going to have to provide some real details as for what isnt working.

 

$ bfin-jtag

jtag> cable probe

Found USB cable: ICE-100B

ICE-100B Firmware Version is 2.0.0

 

jtag> detect

IR length: 5

Chain length: 1

Device Id: 00100010011111011110000011001011 (0x227DE0CB)

  Manufacturer: Analog Devices, Inc. (0x0CB)

  Part(0):      BF548 (0x27DE)

  Stepping:     2

  Filename:     /usr/local/src/blackfin/toolchains/20101015/bfin-linux-uclibc/bin/../share/urjtag/analog/bf548/bf548

/usr/local/src/blackfin/git/toolchain/urjtag/src/bfin/bfin-part-bfin.c:154 bfin_wait_ready() Warning: untested cable or frequency, set wait_clocks to 21

QuoteReplyEditDelete

 

 

2010-11-08 20:51:34     Re: ADZS-ICE-100B and GNU Toolchain

Bill Brubaker (UNITED STATES)

Message: 95664   

 

I'm trying to use an ICE-100B with the GNU toolchain.  I'm using colinux, and the blackfin-toolchain-elf-gcc-4.3-2010R1-RC4.i386.tar.bz2 build.

 

When I try to use bfin-jtag with the cable, I get the following results:

 

 

 

jtag> cable probe

 

Error: /usr/src/packages/BUILD/blackfin-toolchain-2010R1/urjtag/src/cmd/cmd_cable.c:74 cmd_cable_run() not found: cable: automatic probe found nothing

 

 

 

jtag> cable ICE-100B

 

Couldn't connect to suitable USB device.

 

Error: /usr/src/packages/BUILD/blackfin-toolchain-2010R1/urjtag/src/tab/usbconn/libusb.c:133 usbconn_libusb_connect() libusb error: libusb_init() failed: -99

 

 

 

Any thoughts?

 

--

 

Bill

QuoteReplyEditDelete

 

 

2010-11-08 21:21:28     Re: ADZS-ICE-100B and GNU Toolchain

Mike Frysinger (UNITED STATES)

Message: 95665   

 

what does `lsusb` show ?  if nothing, then it isnt a bug in the toolchain.  coLinux itself proably needs tweaking to pass USB devices through.  we really havent tested this scenario before as we either use the native Linux toolchain on a Linux host or the native Windows toolchain on a Windows host.

QuoteReplyEditDelete

 

 

2010-11-09 00:40:40     Re: ADZS-ICE-100B and GNU Toolchain

Bill Brubaker (UNITED STATES)

Message: 95676   

 

Thanks for the suggestion.  As you guessed, lsusb shows nothing.  However, I also tried installing the native Windows version (blackfin-toolchain-win32-SVN.exe from the Nightly Snapshots, which creates a SVN-20101024/ folder), and it found the cable but still had usb problems.

 

jtag> cable probe

 

Found USB cable: ICE-100B

 

Error: /usr/local/src/blackfin/git/toolchain/urjtag/src/tap/usbconn/libusb.c:217 usbconn_libusb_open() libusb error: libusb_open() failed: -12

 

 

 

This is on Windows XP Professional, Service Pack 3, Pentium 4 CPU.

 

I can use the cable in Visual DSP++, but I'm looking for a more affordable option to recommend to developers in the world at large, as we're planning on making our software open source and targeting primarily students.

QuoteReplyEditDelete

 

 

2010-11-09 00:54:51     Re: ADZS-ICE-100B and GNU Toolchain

Mike Frysinger (UNITED STATES)

Message: 95677   

 

this is known, but i guess i forgot to document it.  the drivers that are installed with the Windows installers do not associate with the ICE 100b VID/PID because it would conflict with the VDSP driver.  Windows is not intelligent enough to allow different programs to run different driver stacks with the same VID/PID.

 

if you look at gnICE.inf, you just have to update the [Devices.xxx] sections to list the ICE 100b VID/PID combo so it'd work with WinUSB and thus urjtag.  but it also means it stops working with VDSP and i'm not about to release that (i'm a friendly person).  we're talking things over internally to try and come up with a solution for these troubles.

 

in the mean time, your options probably are:

- use Linux natively only with the ICE 100b

- use a gnICE+ with Linux or Windows

 

a quick search of the coLinux docs shows that it doesnt have USB pass thru capabilities.  but thinking about it a bit more in terms of how Windows works, i'm not surprised.  you need a (signed) driver inf in order to access any USB VID/PID, and coLinux cant do that on the fly.

QuoteReplyEditDelete

 

 

2010-11-10 13:04:19     Re: ADZS-ICE-100B and GNU Toolchain

Bill Brubaker (UNITED STATES)

Message: 95756   

 

Tweaking the gnICE.inf file worked, thanks.

 

Just for the benefit of anyone else trying to do this, once I added an entry for the ICE-100B to gnICE.inf and installed it using the Windows Device Manager, I was able to compile and run (through gdb) the blink example (modified slightly for my custom hardware) using the Windows toolchain.  The process is basically as described in the README.gcc file in the blink example's folder, but using bfin-gdbproxy.exe rather than "sudo gdbproxy bfin".  As you noted, to switch back to using VisualDSP++, I needed to switch the drivers back in the Device Manager.

 

Even with the need to tinker with the drivers a bit, I think we may recommend our users to get an ICE-100B rather than the gnICE+, as the gnICE+ does not work with VDSP++.

 

I still need to figure out how to write to the flash on the board.  Am I missing something, or is there not a lot of documentation for doing bare metal development?

 

Anyway, thanks again for the help getting this far.

QuoteReplyEditDelete

 

 

2010-11-10 16:24:18     Re: ADZS-ICE-100B and GNU Toolchain

Mike Frysinger (UNITED STATES)

Message: 95761   

 

if you're happy with that inf solution, then that should be OK.

 

we've generally kept all of the "programming flash" info in the u-boot loading page since that is by & large what people program.  but the instructions apply to any file and not just u-boot.

 

http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:loading

 

i guess the bare metal documentation could be described as "sparse".  it's a bit open ended development since the bare metal app could literally be anything.  simply use bfin-elf to create your apps and then boot the ELF or turn it into an LDR and let the bootrom boot that.

 

what many people do though is still use u-boot on their board.  you can load a bare metal ELF or LDR into u-boot and let it boot things for you.  this lets you retain the powerful functionality that u-boot provides (flash management, loading over serial/ethernet, etc...) while still getting full access with bare metal.

QuoteReplyEditDelete

 

 

2010-11-18 21:32:35     Re: ADZS-ICE-100B and GNU Toolchain

Bill Brubaker (UNITED STATES)

Message: 95963   

 

Actually, this link had what I need: http://docs.blackfin.uclinux.org/doku.php?id=visualdsp:flash-programmer

 

The programmer I inherited this project from reminded me that we have a flash driver that works in VDSP, and I was able to use that .dxe and the instructions above to successfully program the flash.

 

(I needed to go back into VDSP to verify the programming though, as the append/dump functionality of bfin-elf-gdb.exe seems to be broken if the last couple of bytes of the .ldr happen to be null, as is the case with the one I'm using.)

 

--

 

Bill

QuoteReplyEditDelete

 

 

2010-11-18 21:48:53     Re: ADZS-ICE-100B and GNU Toolchain

Mike Frysinger (UNITED STATES)

Message: 95964   

 

i'd need an exact example of the programmer misbehaving.  this script was thrown together more as an after thought rather than an actual full blown "solution".

QuoteReplyEditDelete

 

 

2010-11-29 21:57:08     Re: ADZS-ICE-100B and GNU Toolchain

Marcelle Gannon (AUSTRALIA)

Message: 96298   

 

Hi, I have an ICE-100B and BF-527 Ez-Kit board and am having problems with the urjtag tools. The ICE-100B works fine with Visual DSP.

 

I've tried it on a Linux box running Ubuntu. I downloaded blackfin-toolchain-2010R1-RC4.src.tar.bz2 and built the jtag tool.

Running ./jtag from src/apps/jtag, and then 'cable probe' gave this (same for 'cable ICE-100B):

Found USB cable: ICE-100B

Error: usbconn/libusb.c:239 usbconn_libusb_open() libusb error: libusb_claim_interface failed: -1

 

I also tried the Windows version (on XP) from the latest snapshot - blackfin-toolchain-win32-SVN.exe - SVN-20101128. I did the modification to the .inf file as an earlier poster described.

 

I ran bfin-jtag.exe and "cable probe". This said "Found USB cable: ICE-100B, ICE-100B Firmware Version is 2.0.0.", but on repeating this command it said the version was 0.0.1 and needed upgrading. On a third run it said (after some delay): "do_host_cmd: unable to read from usb to &results: -7;wanted 2 bytes but only received 0 bytes", and then complained about version 0.0.1.

 

The firmware version has already been upgraded as described. Any help will be appreciated (with either Windows or Linux version). Thanks.

 

QuoteReplyEditDelete

 

 

2010-11-29 22:36:21     Re: ADZS-ICE-100B and GNU Toolchain

Mike Frysinger (UNITED STATES)

Message: 96300   

 

please start a new thread

QuoteReplyEditDelete

 

 

2010-12-02 07:00:06     Re: ADZS-ICE-100B and GNU Toolchain

Bill Brubaker (UNITED STATES)

Message: 96408   

 

The problem I mentioned seems to be in the dump command of bfin-elf-gdb.exe itself, not in the script.  I created a minimal example (attached).

 

Please see the README.txt file included in the .zip for steps to reproduce.

 

--

 

Bill

 

gdb_dump_issue.zip

Attachments

Outcomes