Re: [UrJTAG-dev] new parport cable, how ?

2019-06-24 Thread karl
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 ##

[UrJTAG-dev] new parport cable, how ?

2019-06-19 Thread karl
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

Re: [UrJTAG-dev] new parport cable, how ?

2019-06-19 Thread karl
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

Re: [UrJTAG-dev] new parport cable, how ?

2019-06-20 Thread karl
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

Re: [UrJTAG-dev] new parport cable, how ?

2019-06-21 Thread karl
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

Re: [UrJTAG-dev] srst

2019-06-22 Thread karl
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

[UrJTAG-dev] PARAM_SIGNALS (was Re: new parport cable, how ?)

2019-06-22 Thread karl
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

[UrJTAG-dev] typedef's

2019-07-31 Thread karl
, 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

Re: [UrJTAG-dev] bug in detect/bsdl

2019-08-03 Thread karl
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

[UrJTAG-dev] bug in detect/bsdl

2019-08-03 Thread karl
Register --- 0 CortexM3 BYPASS BYPASS * 1 CortexM3 (none) (none) Regard

Re: [UrJTAG-dev] [PATCH] Disambiguate part

2019-08-03 Thread karl
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 ++-- >

Re: [UrJTAG-dev] bug in detect/bsdl

2019-08-03 Thread karl
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

Re: [UrJTAG-dev] [PATCH 7/8] data/MANUFACTURERS: Closer to JEP106

2019-08-03 Thread karl
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

Re: [UrJTAG-dev] [PATCH] fix bug in detect/bsdl

2019-08-03 Thread karl
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. ...

Re: [UrJTAG-dev] [PATCH] fix bug in detect/bsdl

2019-08-04 Thread karl
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

Re: [UrJTAG-dev] [PATCH] fix bug in detect/bsdl

2019-08-04 Thread karl
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

[UrJTAG-dev] new driver, please review and/or commit

2019-07-30 Thread karl
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

Re: [UrJTAG-dev] quit: munmap_chunk(): invalid pointer

2019-07-30 Thread karl
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

Re: [UrJTAG-dev] new driver, please review and/or commit

2019-07-31 Thread karl
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

[UrJTAG-dev] data/MANUFACTURERS

2019-07-29 Thread karl
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

Re: [UrJTAG-dev] about commit messages

2019-08-05 Thread karl
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

Re: [UrJTAG-dev] data/MANUFACTURERS, second column

2019-08-07 Thread karl
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

Re: [UrJTAG-dev] data/MANUFACTURERS

2019-07-31 Thread karl
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

Re: [UrJTAG-dev] data/MANUFACTURERS

2019-07-31 Thread karl
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

Re: [UrJTAG-dev] patches Was: typedef's

2019-07-31 Thread karl
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

Re: [UrJTAG-dev] typedef's

2019-07-31 Thread karl
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

Re: [UrJTAG-dev] data/MANUFACTURERS

2019-08-01 Thread karl
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

Re: [UrJTAG-dev] data/MANUFACTURERS

2019-08-01 Thread karl
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

Re: [UrJTAG-dev] data/MANUFACTURERS

2019-08-01 Thread karl
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: &

Re: [UrJTAG-dev] data/MANUFACTURERS, second column

2019-08-02 Thread karl
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

[UrJTAG-dev] quit: munmap_chunk(): invalid pointer

2019-07-29 Thread karl
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

Re: [UrJTAG-dev] [PATCH] added jep106 code from openocd and latest data from Jedec

2019-08-09 Thread karl
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-dev] [PATCH] added jep106 data from JEP106AZ.pdf MAY 2019 as c data

2019-08-02 Thread Karl Hammar
--- 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-dev] [PATCH] BSDL: use jep106 data for empty mfg, parl and steppings fields in the chain

2019-08-02 Thread Karl Hammar
--- 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

[UrJTAG-dev] [PATCH] fix bug in detect/bsdl

2019-08-03 Thread Karl Hammar
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

[UrJTAG-dev] [PATCH] Disambiguate part

2019-08-03 Thread Karl Hammar
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 +++---

[UrJTAG-dev] [PATCH] fix bug in detect/bsdl

2019-08-03 Thread Karl Hammar
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

Re: [UrJTAG-dev] [PATCH] fix bug in detect/bsdl

2019-08-04 Thread Karl Hammar
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

[UrJTAG-dev] [PATCH] Update data directory

2019-08-02 Thread 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-dev] [PATCH] added jep106 code from openocd and latest data from Jedec

2019-08-09 Thread Karl Hammar
--- 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