You need to make sure the signal names are defined in your part definition.
 The format of the intibus command is initbus spimem NCS=<signal name>
SCK=<signal name> MOSI=<signal name> MISO=<signal name>.  It looks like you
copied the names of the signals from the example.

Looking at the ar2312 part definition file, it does not appear to have the
pin definitions.  You will need to find BSDL file for this part.

On Sun, Nov 28, 2010 at 8:17 AM, Benjamin Henrion <[email protected]> wrote:

> On Wed, Nov 10, 2010 at 5:31 PM, Jonathan Stroud
> <[email protected]> wrote:
> > Here is a patch for programming SPI Flash memories.  Should also work
> with SPI EEPROMs.
> >
> > This patch is rather large because "struct URJ_BUS_DRIVER" got 3 new
> functions: write_start, enable, and disable.  So, therefor I updated all of
> the existing bus drivers to include these three functions.  However, for the
> existing bus drivers, these are essentially just noops.
> >
> > urj_bus_area_t Now has a class parameter to indicate the type of bus the
> memory is connected to.   Each of the bus drivers has been updated to
> initialize this parameter appropriately.
> >
> >
> > To use the new SPI bus driver works similar to the prototype bus driver.
>  It allows the user to specify the pins to use on the command line.  It also
> allows the user to specify the address size and data size.  The default
> address width is 16bits and the default data size is 8bits.
> > example:
> >        initbus spimem NCS=SPI_CS_N SCK=SPI_CLK MOSI=SPI_MOSI
> MISO=SPI_MISO AMODE=16 WIDTH=8
> >
> > The AMODE and WIDTH are optional.
>
> I just compiled it (rev 1864), connected it to my fonera, and I got
> the following error:
>
> jtag> cable JTAGKey
> Connected to libftdi driver.
> jtag> detect
> IR length: 5
> Chain length: 1
> Device Id: 00000000000000000000000000000001 (0x00000001)
>  Manufacturer: atheros (0x001)
>  Part(0):      ar2312 (0x000)
>  Stepping:     0
>  Filename:     /usr/local/share/urjtag/atheros/ar2312/ar2312
> ImpCode=01000000010000000100000000000000 40404000
> EJTAG version: 2.6
> EJTAG Implementation flags: R4k ASID_8 NoDMA MIPS32
> Processor entered Debug Mode.
> jtag> poke 0x51300000 1
> jtag> initbus spimem NCS=SPI_CS_N SCK=SPI_CLK MOSI=SPI_MOSI MISO=SPI_MISO
> signal 'NCS' not found
> signal 'SCK' not found
> signal 'MOSI' not found
> signal 'MISO' not found
> Error: spimem.c:152 spimem_bus_new() not found: signal 'SPI_MISO' not found
> jtag>
>
> Can you help?
>
> In the worse case I can give you a shell on the machine where it is
> running.
>
> Best,
>
> --
> Benjamin Henrion <bhenrion at ffii.org>
> FFII Brussels - +32-484-566109 - +32-2-4148403
> "In July 2005, after several failed attempts to legalise software
> patents in Europe, the patent establishment changed its strategy.
> Instead of explicitly seeking to sanction the patentability of
> software, they are now seeking to create a central European patent
> court, which would establish and enforce patentability rules in their
> favor, without any possibility of correction by competing courts or
> democratically elected legislators."
>
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
UrJTAG-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/urjtag-development

Reply via email to