[#6491] bfin-jtag cannot get set any pins or signals

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

[#6491] bfin-jtag cannot get set any pins or signals

Submitted By: jeffery palmer

Open Date

2011-02-21 16:59:49     Close Date

2013-07-02 05:38:44

Priority:

Medium     Assignee:

Nobody

Board:

STAMP     Silicon Revision:

Resolution:

Fixed     Fixed In Release:

N/A

Processor:

ALL     

Host Operating System:

toolchain rev.:

    kernel rev.:

State:

Closed     Found In Release:

snaps

Is this bug repeatable?:

yes     

Summary: bfin-jtag cannot get set any pins or signals

Details:

 

It looks like the structures signal->input and signal->output are not being set properly since "print signals" is also supposed to print whether they are inputs and/or outputs which it does not show. Everything is direct from svn (ver 5276).

 

make/make install/run jtag (svn)

 

jtag> cable ICE-100B

ICE-100B Firmware Version is 2.0.0

jtag> detect

IR length: 5

Chain length: 1

Device Id: 00110010011111001000000011001011 (0x327C80CB)

  Manufacturer: Analog Devices, Inc. (0x0CB)

  Part(0):      BF537 (0x27C8)

  Stepping:     3

  Filename:     /usr/local/share/urjtag/analog/bf537/bf537

jtag> initbus bf537_stamp

Initialized bus 1, active bus 0

 

jtag> get signal DATA0

Error: part.c:287 urj_part_get_signal() invalid parameter: signal 'DATA0' is not input signal

 

jtag> set signal DATA0 out 0

Error: part.c:238 urj_part_set_signal() invalid parameter: signal 'DATA0' cannot be set as output

 

jtag> set signal DATA0 in 0

Error: part.c:253 urj_part_set_signal() invalid parameter: signal 'DATA0' cannot be set as input

 

jtag> print signals

Signals:

VROUT0

CLKBUF

XTAL

CLKIN

VDD_RTC

GND23

GND22

GND21

GND20

GND19

GND18

GND17

GND16

GND15

GND14

GND13

GND12

GND11

GND10

GND9

GND8

GND7

GND6

GND5

GND4

GND3

GND2

GND1

GND0

VDD_EXT15

VDD_EXT14

VDD_EXT13

VDD_EXT12

VDD_EXT11

VDD_EXT10

VDD_EXT9

VDD_EXT8

VDD_EXT7

VDD_EXT6

VDD_EXT5

VDD_EXT4

VDD_EXT3

VDD_EXT2

VDD_EXT1

VDD_EXT0

VDD_INT6

VDD_INT5

VDD_INT4

VDD_INT3

VDD_INT2

VDD_INT1

VDD_INT0

RTXO

RTXI

EMU_B

TEST

TRST_B

TMS

TCK

TDO

TDI

SWE_B

SRAS_B

SMS_B

SCKE

SCAS_B

SA10

CLKOUT

RESET_B

PJ11

PJ10

PJ9

PJ8

PJ7

PJ6

PJ5

PJ4

PJ3

PJ2

PJ1

PJ0

PH15

PH14

PH13

PH12

PH11

PH10

PH9

PH8

PH7

PH6

PH5

PH4

PH3

PH2

PH1

PH0

PG15

PG14

PG13

PG12

PG11

PG10

PG9

PG8

PG7

PG6

PG5

PG4

PG3

PG2

PG1

PG0

PF15

PF14

PF13

PF12

PF11

PF10

PF9

PF8

PF7

PF6

PF5

PF4

PF3

PF2

PF1

PF0

NMI

DATA15

DATA14

DATA13

DATA12

DATA11

DATA10

DATA9

DATA8

DATA7

DATA6

DATA5

DATA4

DATA3

DATA2

DATA1

DATA0

BR_B

BMODE2

BMODE1

BMODE0

BGH_B

BG_B

ABE_B1

ABE_B0

AWE_B

ARE_B

ARDY

AOE_B

AMS_B3

AMS_B2

AMS_B1

AMS_B0

ADDR19

ADDR18

ADDR17

ADDR16

ADDR15

ADDR14

ADDR13

ADDR12

ADDR11

ADDR10

ADDR9

ADDR8

ADDR7

ADDR6

ADDR5

ADDR4

ADDR3

ADDR2

ADDR1

 

Follow-ups

 

--- jeffery palmer                                           2011-02-21 18:06:03

I found the problem. In the data/analog/bfXXX files, there is an include that

references bfin/bfin. This file is not parsed by the jtag program, and bfin/bfin

is not installed in /usr/share/urjtag/xxxx. I think the Makefile is supposed to

do the replacement but it's not working.

 

As a temporary workaround, I am just copying data/analog/bfin/bfin contents

into the appropriate section in my bf537 file to replace the "include"

 

--- Mike Frysinger                                           2011-02-21 18:18:14

thanks ... should be fixed in trunk now

 

--- jeffery palmer                                           2011-02-22 02:11:20

Hi Mike,

 

Thanks for the update but the problem is not fixed. The bfin/bfin directory is

now installed, but it is not actually parsed into the bf5XX files.

 

For example, data/analog/bf537/bf537 has a line "include

analog/bfin/bfin" which does not work. I have to open analog/bfin/bfin and

copy the contents into bf537 and delete the include line. If not, nothing past

the "include" line is parsed. I get signal names from "print

signals" but no input/output references which are past that

"include" line.

 

Also as a note, either -Werror should be removed from the Makefile.am's since

there are warnings that cause compiler failure, or the warnings fixed.

 

Thanks!

 

--- Mike Frysinger                                           2011-02-22 03:07:52

the point is to not inline things.  move the include to the end of the file for

now until i can fix things properly.

 

as for the warnings, i see none.  you'll need to provide real details.

 

--- Mike Frysinger                                           2011-02-22 03:37:48

should be fixed for real now ... eof of a parsed stream wont cause the parsing

loop to quit

 

--- Mingquan Pan                                             2013-07-02 06:42:20

So close.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes