Karl:
> I have a paralell port adapter as in the attached schematic,
> and I would like to make it work with urjtag.
...
To understand how to write a driver and how the code works, I started
writing some doc about it.
Please comment.
Regards,
/Karl Hammar
##
structure to make up for the differences, one could possible
copy parts of the openocd parport driver, which has such a structure
for all the parport adapters.
Which .c file do you recommend as a starting point to code for
my adapter ?
Regards,
/Karl Hammar
pp_jtag_arm20.sch.pdf
Description
a generic file with
> > a data structure to make up for the differences, one could possible
> > copy parts of the openocd parport driver, which has such a structure
> > for all the parport adapters.
> >
> > Which .c file do you recommend as a starting point to
hings to get it to compile etc., see attachment.
But how do I update po/urjtag.pot ?
Regards,
/Karl Hammardiff --git a/urjtag/MAINTAINERS b/urjtag/MAINTAINERS
index 7caa5157..61c7955c 100644
--- a/urjtag/MAINTAINERS
+++ b/urjtag/MAINTAINERS
@@ -43,6 +43,11 @@ ARCOM CABLE DRIVER
F: src/tap/cabl
Karl:
> I have a paralell port adapter as in the attached schematic,
> and I would like to make it work with urjtag.
...
A think, technically, jtag operations and cpu operations are
independent, but what is urjtags stance on srst ?
This adapter has a srst line, should the driver let it b
rjag care wheter you reset the cpu or not ?
Since I cannot find any information how urjtag handles srst in the code
(didn't try very hard though), my guess is that it simply is ignorant
about the cpu state.
Regards,
/Karl Hammar
___
UrJTAG-development m
Karl:
> I have a paralell port adapter as in the attached schematic,
> and I would like to make it work with urjtag.
...
I'm looking att src/tap/cable/wiggler2.c, and I'm wondering what
PARAM_SIGNALS (cable) is for...
It is defined in src/tap/cable/generic.h, which is only included from c
, the typedefs are completely unnessary,
and removing them would benefit the understanding of the code.
Regards,
/Karl Hammar
___
UrJTAG-development mailing list
UrJTAG-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/urjtag
Karl:
> When not all bsdl files are present, some parts get the wrong part name.
Just sent a patch to fix that.
Before fix:
> When the CortexM3 file is missing:
>
> Device Id: 001110111010010001110111 (0x3BA00477)
> Unknown manufacturer! (01000111011) (/usr/loc
Register
---
0 CortexM3 BYPASS
BYPASS
* 1 CortexM3 (none)
(none)
Regard
Geert Stappers:
> On Sat, Aug 03, 2019 at 05:00:22PM +0200, Karl Hammar wrote:
> > I found too many things are called part, so I change
> > part->part to part->part_name, ditto for manufaturer
> >
> > urjtag/include/urjtag/part.h | 4 ++--
>
e.g.:
$ egrep -v '^\s?--' STM32F1_Low_Med_density_value_LQFP48.bsd | head
entity STM32F1_Low_Med_density_value_LQFP48 is
generic (PHYSICAL_PIN_MAP: string:= "LQFP48_PACKAGE");
port (
BOOT0 : inbit;
JTDI : inbit;
Regar
Geert Stappers:
> More JEP106 information into MANUFACTURERS file.
> It is based upon mailinglist postings in week 31 of 2019.
...
Here is the full generated file, though with a 0 in the directory
column.
Regards,
/Karl Hammar
001 0 AMD
010 0 AMI
0
Geert Stappers:
> On Sat, Aug 03, 2019 at 05:11:38PM +0200, Karl Hammar wrote:
> > urj_vhdl_set_entity() saved the entity name in the parts part_name.
> > Now that that bug is fixed, save the entity name as part_name if
> > the idcode matches for this file.
...
Geert Stappers:
> > I don't understand.
>
> Make a better patch as the previous one.
Not helping me understand.
Regards,
/Karl Hammar
___
UrJTAG-development mailing list
UrJTAG-development@lists.sourceforge.net
https://lists.sourcefor
Geert Stappers:
...
> fix bug in detect/bsdl
>
> Save the entity name as part_name if the idcode matches for this file.
Would it be if the first line was dropped ?
Regards,
/Karl Hammar
___
UrJTAG-development mailing list
UrJTAG-de
My driver seems to be working now.
Please review and/or commit the attached diff and files.
Regards,
/Karl Hammar
diff --git a/urjtag/MAINTAINERS b/urjtag/MAINTAINERS
index 7caa5157..61c7955c 100644
--- a/urjtag/MAINTAINERS
+++ b/urjtag/MAINTAINERS
@@ -43,6 +43,11 @@ ARCOM CABLE DRIVER
F
Karl:
> Does anyone know why I get the "invalid pointer" (as described below) ?
> Copy of repo is in http://aspodata.se/computing/urjtag/
...
Found the problem,
I did:
pdata = (struct pdata *) malloc(sizeof (struct pdata *));
when I should do:
pdata = (struct pdata
at
it, as it is in a first draft status...
Regards,
/Karl Hammar
___
UrJTAG-development mailing list
UrJTAG-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/urjtag-development
Device Id: 011001100101 (0x06420041)
Unknown manufacturer! (010) (/usr/local/share/urjtag/MANUFACTURERS)
jtag> quit
free(): invalid size
Aborted
Regards,
/Karl Hammar
___
UrJTAG-development mailing list
UrJTAG-development@lists.sourcefor
wishes to
solve this mess as fast as possible, treating this code as you want to
do it is in my opinion just a waste of time (well, apart from learning
to write good commit messages...). And I don't need to get my patches
to be accepted upstream, I'm content to just have them applie
e setup is just a cache of the
above
. if you miss a file, you can get it from mfg. or from e.g.
http://www.bsdl.info/index.htm
Regards,
/Karl Hammar
___
UrJTAG-development mailing list
UrJTAG-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/urjtag-development
Karl:
> But what is the best way to update the manufacturers list ?
>
> Jedec uses bank, and id within bank. How do I convert that to the
> format used in data/MANUFACTURERS ?
...
I come up the the attached code.
The urjtag file has three columns:
$ grep Hitachi data/M
ond col.
is used to find the PARTS files:
line 388:
strncat_const (data_path, id_name);
strncat_const (data_path, "/PARTS");
e.g. data/analog/PARTS.
One way to handle this is to use the id instead of id_name for the
parts directories: e.g. instead of data/a
Geert Stappers:
> On Wed, Jul 31, 2019
> > Would you accept patches that ?
>
> All patches will be reviewed.
...
That is very good, thanks.
Regards,
/Karl Hammar
___
UrJTAG-development mailing list
UrJ
Karl:
> When trying to understand the urjtag program code, I needed to get
> definitions of the types used. I many cases typedefs was used for
> structs and unions, making it unnessesary hard to the understand the
> type. The worst offenders was in include/urjtag/types.h where the
Karl:
...
> Perhaps it is best to just drop the data directory and start collecting
> bsdl files instead.
>
> With bsdl files, I get:
>
> jtag> detect
> IR length: 9
> Chain length: 2
> Device Id: 001110111010010001110111 (0x3BA00477)
> Filenam
Karl:
> Karl:
...
> > One way to handle this is to use the id instead of id_name for the
> > parts directories: e.g. instead of data/analog/PARTS, one coulde use
> > data/1100101/PARTS. But that makes it harder to browse the file
> > system.
>
> So maki
Karl:
> G G:
> > On Wed, Jul 31, 2019 at 10:44:45PM +0200, k...@aspodata.se wrote:
> ...
> > > The urjtag file has three columns:
> > > $ grep Hitachi data/MANUFACTURERS
> > > 111 hitachi Hitachi
> > > and mine only has two:
&
Geert Stappers:
> On Thu, Aug 01, 2019 at 12:07:23PM +0200, k...@aspodata.se wrote:
> > Karl:
> > > On Wed, Jul 31, 2019 at 10:44:45PM +0200, k...@aspodata.se wrote:
> > > > The urjtag file has three columns:
> > > > $ grep Hitachi data/MANU
wiggler and wiggler2 doesn't result in
this problem, but I have not coded anything about cable->todo.
Regards,
/Karl Hammar
___
UrJTAG-development mailing list
UrJTAG-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/urjtag-development
ve_part];
and did is the detected id (as in src/tap/detect.c line 272).
Regards,
/Karl Hammar
___
UrJTAG-development mailing list
UrJTAG-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/urjtag-development
---
urjtag/include/urjtag/jep106.h | 77 +++
urjtag/src/global/Makefile.am |1 +
urjtag/src/global/jep106.c | 46 ++
urjtag/src/global/jep106.inc | 1156
4 files changed, 1280 insertions(+)
create mode 100644 urjtag/include/urjtag/jep106.h
create
---
urjtag/src/tap/detect.c | 27 ++-
1 file changed, 26 insertions(+), 1 deletion(-)
diff --git a/urjtag/src/tap/detect.c b/urjtag/src/tap/detect.c
index 5c139507..ddb84508 100644
--- a/urjtag/src/tap/detect.c
+++ b/urjtag/src/tap/detect.c
@@ -45,6 +45,7 @@
#include
urj_vhdl_set_entity() saved the entity name in the parts part_name
even though we don't know at that stage if the idcode matches for
this file.
Hunting this bug down, I found too many things are called part, so
part of this is to change part->part to
I found too many things are called part, so I change
part->part to part->part_name, ditto for manufaturer
---
urjtag/include/urjtag/part.h | 4 ++--
urjtag/src/bfin/bfin.c | 2 +-
urjtag/src/bsdl/vhdl_bison.y | 4 ++--
urjtag/src/part/part.c | 6 +++---
urj_vhdl_set_entity() saved the entity name in the parts part_name.
Now that that bug is fixed, save the entity name as part_name if
the idcode matches for this file.
---
urjtag/src/bsdl/bsdl.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git
matches for this
> > file.
>
>
> look coherent. Current commit message without email clutter:
>
> fix bug in detect/bsdl
>
> Save the entity name as part_name if the idcode matches for this file.
I don't understand.
Regards,
/Karl Hammar
. new MANUFACTURERS file upd. from JEP106AZ.pdf MAY 2019
. since I do not want to manually upd. directory column, I set it to the
idcode
. since I now have idcode as dir.col., create thoose directories
---
urjtag/data/110 |1 +
urjtag/data/111 |1 +
---
urjtag/include/urjtag/jep106.h | 77 +++
urjtag/src/global/Makefile.am |1 +
urjtag/src/global/jep106.c | 46 ++
urjtag/src/global/jep106.inc | 1156
4 files changed, 1280 insertions(+)
create mode 100644 urjtag/include/urjtag/jep106.h
create
40 matches
Mail list logo