Re: [AVaRICE-user] EDBG/ATATMEL-ICE support

2016-03-03 Thread Philip Mulrane
Thanks! I will give it a try at the weekend.
I have used the latest Avrdude (6.3) to read/write the Flash 
successfully, so programming via Avarice will not be essential.
Br,
Philip
On 03.03.2016 09:06, Joerg Wunsch wrote:
> As Philip Mulrane wrote:
>
>> Can this also be used with the mEDBG of the xlpained mini? It
>> apparently supports debug wire?
> Yes, I added fragmentation / reassembly support yesterday, which
> is required for mEDBG since they only support 64 bytes endpoint
> size, and some transfers are (much) longer.
>
> However, there's currently still some issue where programming over
> debugWIRE (through GDB's "load" command) doesn't work since AVaRICE
> first attempts a flash erase which is not supported in debugWIRE mode,
> and thus triggers an exception.  Attaching to a pre-flashed device,
> and debugging it, is possible though.
>
> There are some other cases where in some situations exceptions are
> thrown.  These have to be cleaned up before a new release can be
> prepared.



--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140
___
avarice-user mailing list
avarice-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/avarice-user


Re: [AVaRICE-user] EDBG/ATATMEL-ICE support

2016-03-03 Thread Joerg Wunsch
As Philip Mulrane wrote:

> Can this also be used with the mEDBG of the xlpained mini? It
> apparently supports debug wire?

Yes, I added fragmentation / reassembly support yesterday, which 
is required for mEDBG since they only support 64 bytes endpoint 
size, and some transfers are (much) longer.

However, there's currently still some issue where programming over 
debugWIRE (through GDB's "load" command) doesn't work since AVaRICE 
first attempts a flash erase which is not supported in debugWIRE mode, 
and thus triggers an exception.  Attaching to a pre-flashed device, 
and debugging it, is possible though.

There are some other cases where in some situations exceptions are 
thrown.  These have to be cleaned up before a new release can be 
prepared.
-- 
cheers, Joerg   .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/
Never trust an operating system you don't have sources for. ;-)

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140
___
avarice-user mailing list
avarice-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/avarice-user


Re: [AVaRICE-user] EDBG/ATATMEL-ICE support

2016-03-03 Thread Philip Mulrane
OK,
Looks like configure removed libhidapi from the build. Some work for me 
to do.
Br,
Philip
> configure:5899: gcc -o conftest.exe -g -O2   conftest.c -lusb -lbfd 
> -liberty -lintl -liconv >&5
> /tmp/ccJaFs6k.o: In function `main':
> /cygdrive/c/tmp/avarice/conftest.c:27: undefined reference to `hid_init'
> collect2: error: ld returned 1 exit status
> configure:5899: $? = 1
> configure: failed program was:
> | /* confdefs.h */
> | #define PACKAGE_NAME "avarice"
> 
> | #define VERSION "2.13svn20160229"
> | #define HAVE_LIBICONV 1
> | #define HAVE_LIBINTL 1
> | #define HAVE_LIBIBERTY 1
> | #define HAVE_LIBBFD 1
> | #define HAVE_LIBUSB 1
> | /* end confdefs.h.  */
> |
> | /* Override any GCC internal prototype to avoid an error.
> |Use char because int might match the return type of a GCC
> |builtin and then its argument prototype would still apply. */
> | #ifdef __cplusplus
> | extern "C"
> | #endif
> | char hid_init ();
> | int
> | main ()
> | {
> | return hid_init ();
> |   ;
> |   return 0;


On 03.03.2016 15:13, Joerg Wunsch wrote:
> As Philip Mulrane wrote:
>
>> So my Avarice build was without libhidapi (no files from it are
> I'm not sure, it might be so.
>
> If not, try the example program I've told about.
>
>> installed)? Did my call of configure create a makefile that excludes
>> this functionality?
> Have a look at your config.log file, and/or src/autoconf.h.
>


-- 
Bittrace14 UG
Immanuel-Kant Str.59b
31812 Bad Pyrmont

Fax: +49 32223945096

HRB 209338 Amtsger. Hannover

Geschäftsführer
Pauline Atkinson


--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140
___
avarice-user mailing list
avarice-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/avarice-user


Re: [AVaRICE-user] EDBG/ATATMEL-ICE support

2016-03-03 Thread Joerg Wunsch
As Philip Mulrane wrote:

> For what it's worth, the XplainedMini appears in Microsofts USB Device 
> Viewer utility, and when I installed the filter for libUsb for the 
> relevant endpoints of the XplainedMini, they also showed up in 
> "install-filter-win.exe"

Yes, it appears there, but it never answers if you try to talk to it.

Been there, done that (in AVRDUDE).  Plain libusb doesn't work 
for HIDs on Windows or OSX.  Only FreeBSD and Linux can access 
it that way.

Thus, for AVaRICE, I simplified the implementation (compared to 
AVRDUDE) by requiring libhidapi for the CMSIS-DAP/EDBG stuff.
-- 
cheers, Joerg   .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/
Never trust an operating system you don't have sources for. ;-)

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140
___
avarice-user mailing list
avarice-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/avarice-user