Bug#892259: lpc21isp: Request to patch in order to add support for LPC40XX devices

2018-03-07 Thread Cristiano Rodrigues
Hi Agustin,


Here it is the patch (4th time I'm trying to send it)


I sent a message to "capiman" today, but it seems that there is no activity 
from him for about 4 years.
Since we have lpctools, I don't know if to maintain lpc21isp is the best 
solution (unless the the author wants to bring it to life again, of course)
I'm not using lpctools because it does not have the ability to enable the ISP 
mode using the control lines (Reset = DTR, EnableBootLoader = RTS)
If the lpctools maintainer could implement some of the basic functionality that 
are implemented in lpc21isp, I think it would be a better option.

Cristiano

On Wed, 7 Mar 2018 11:04:10 -0300 Agustin Henze  wrote:
> Hi Cristiano,
> 
> On Wed, 07 Mar 2018 09:28:58 + Cristiano Rodrigues  
> wrote:
> > Dear Maintainer,
> > 
> > This is not a bug. I created a patch where it add support for LPC40xx 
> > devices. It was published in the software autor site but it seems no one is 
> > looking for it.
> > If possible, please apply the patch. I'm using it for more than a year and 
> > it's working without problems.
> 
> I guess that you forgot attach the patch. However I think you are talking 
> about
> this thread[0] where I could find the source attached. As far I can see the
> project seems to be dead :'(. Have you tried contacting directly to the 
> author[1]?
> Ok, I have took a look at it and the attachment seems to be all the source.
> Could please send me a patch instead? Anyway I still thinking that would be
> awesome if you contact to upstream and see if he still interested on
> maintaining the project maybe you can turn into upstream :).
> 
> Cheers,
> 
> [0]
> https://sourceforge.net/p/lpc21isp/discussion/889930/thread/6438fdc1/?limit=25
diff -Naur ./lpc21isp_197/lpc21isp.c ./lpc21isp_198/lpc21isp.c
--- ./lpc21isp_197/lpc21isp.c	2014-01-09 07:25:51.0 +
+++ ./lpc21isp_198/lpc21isp.c	2017-01-20 18:22:06.0 +
@@ -410,12 +410,15 @@
   Updated .gitignore file (Now with ignored *.layout)
   Removed *.layout from lpc21isp project
   Removed *.depend from lpc21isp project
+  1.97   2014-01-09 Martin Maurer
+1.98	2016-01-17 Cristiano Rodrigues
+		  Add some new chip ids for LPC40xx
 */
 
 // Please don't use TABs in the source code !!!
 
 // Don't forget to update the version string that is on the next line
-#define VERSION_STR "1.97"
+#define VERSION_STR "1.98"
 
 #if defined COMPILE_FOR_WINDOWS || defined COMPILE_FOR_CYGWIN
 static char RxTmpBuf[256];// save received data to this buffer for half-duplex
diff -Naur ./lpc21isp_197/lpcprog.c ./lpc21isp_198/lpcprog.c
--- ./lpc21isp_197/lpcprog.c	2014-01-08 19:38:26.0 +
+++ ./lpc21isp_198/lpcprog.c	2017-01-20 15:03:58.0 +
@@ -106,6 +106,15 @@
 65536, 65536, 65536, 65536, 65536, 65536, 65536
 };
 
+// Used for LPC40xx devices
+static const unsigned int SectorTable_40xx[] =
+{
+ 4096,  4096,  4096,  4096,  4096,  4096,  4096,  4096,
+ 4096,  4096,  4096,  4096,  4096,  4096,  4096,  4096,
+32768, 32768, 32768, 32768, 32768, 32768, 32768, 32768,
+32768, 32768, 32768, 32768, 32768, 32768
+};
+
 // Used for LPC43xx devices
 static const unsigned int SectorTable_43xx[] =
 {
@@ -126,7 +135,7 @@
 {
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, CHIP_VARIANT_NONE },  /* unknown */
 
-   // id,id2,  use id2, name of product,  flash size, ram size, total number of sector, max copy size, sector table, chip variant
+   // id,id2,  use id2, name of product,  flash size, ram size, total number of sector, max copy size, sector table, chip variant
 
{ 0x8100, 0x, 0, "810M021FN8",  4,   1,  4,  256, SectorTable_8xx,  CHIP_VARIANT_LPC8XX  },
{ 0x8110, 0x, 0, "811M001FDH16",8,   2,  8, 1024, SectorTable_8xx,  CHIP_VARIANT_LPC8XX  },
@@ -230,6 +239,7 @@
{ 0x25011722, 0x, 0, "1754",  128,  32, 18, 4096, SectorTable_17xx, CHIP_VARIANT_LPC17XX },
{ 0x25011723, 0x, 0, "1756",  256,  32, 22, 4096, SectorTable_17xx, CHIP_VARIANT_LPC17XX },
{ 0x25013F37, 0x, 0, "1758",  512,  64, 30, 4096, SectorTable_17xx, CHIP_VARIANT_LPC17XX },
+   // id,id2,  use id2, name of product,  flash size, ram size, total number of sector, max copy size, sector table, chip variant
{ 0x25113737, 0x, 0, "1759",  512,  64, 30, 4096, SectorTable_17xx, CHIP_VARIANT_LPC17XX },
{ 0x26012033, 0x, 0, "1763",  256,  64, 22, 4096, SectorTable_17xx, CHIP_VARIANT_LPC17XX },
{ 0x26011922, 0x, 0, "1764",  128,  32, 18, 4096, SectorTable_17xx, CHIP_VARIANT_LPC17XX },
@@ -314,6 +324,11 @@
{ 0x1600FF35, 0x, 0, "2468",  512,  98, 28, 

Bug#892259: lpc21isp: Request to patch in order to add support for LPC40XX devices

2018-03-07 Thread Agustin Henze
Hi Cristiano,

On Wed, 07 Mar 2018 09:28:58 + Cristiano Rodrigues  
wrote:
> Dear Maintainer,
> 
> This is not a bug. I created a patch where it add support for LPC40xx 
> devices. It was published in the software autor site but it seems no one is 
> looking for it.
> If possible, please apply the patch. I'm using it for more than a year and 
> it's working without problems.

I guess that you forgot attach the patch. However I think you are talking about
this thread[0] where I could find the source attached. As far I can see the
project seems to be dead :'(. Have you tried contacting directly to the 
author[1]?
Ok, I have took a look at it and the attachment seems to be all the source.
Could please send me a patch instead? Anyway I still thinking that would be
awesome if you contact to upstream and see if he still interested on
maintaining the project maybe you can turn into upstream :).

Cheers,

[0]
https://sourceforge.net/p/lpc21isp/discussion/889930/thread/6438fdc1/?limit=25#944b
[1] martin.mau...@clibb.de

-- 
TiN



signature.asc
Description: OpenPGP digital signature


Bug#892259: lpc21isp: Request to patch in order to add support for LPC40XX devices

2018-03-07 Thread Cristiano Rodrigues
Package: lpc21isp
Version: 1.97-2+b1
Severity: wishlist

Dear Maintainer,

This is not a bug. I created a patch where it add support for LPC40xx devices. 
It was published in the software autor site but it seems no one is looking for 
it.
If possible, please apply the patch. I'm using it for more than a year and it's 
working without problems.


-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.15.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages lpc21isp depends on:
ii  libc6  2.27-1

lpc21isp recommends no packages.

lpc21isp suggests no packages.

-- no debconf information