From 385cc20f4911b6260cdda8d550a034b2506d538b Mon Sep 17 00:00:00 2001 From: cpldcpu Date: Sun, 5 Jan 2014 17:29:28 +0100 Subject: commandline: reset vector patching in commandline tool --- commandline/library/micronucleus_lib.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'commandline/library/micronucleus_lib.h') diff --git a/commandline/library/micronucleus_lib.h b/commandline/library/micronucleus_lib.h index 9118ace..d9f4999 100644 --- a/commandline/library/micronucleus_lib.h +++ b/commandline/library/micronucleus_lib.h @@ -44,11 +44,12 @@ #define MICRONUCLEUS_VENDOR_ID 0x16D0 #define MICRONUCLEUS_PRODUCT_ID 0x0753 #define MICRONUCLEUS_USB_TIMEOUT 0xFFFF -#define MICRONUCLEUS_MAX_MAJOR_VERSION 1 +#define MICRONUCLEUS_MAX_MAJOR_VERSION 2 + /*******************************************************************************/ /******************************************************************************** -* Declearations +* Declarations ********************************************************************************/ //typedef usb_dev_handle micronucleus; // representing version number of micronucleus device @@ -57,6 +58,8 @@ typedef struct _micronucleus_version { unsigned char minor; } micronucleus_version; +#define MICRONUCLEUS_COMMANDLINE_VERSION "Commandline tool version: 2.0a2" + // handle representing one micronucleus device typedef struct _micronucleus { usb_dev_handle *device; @@ -77,7 +80,7 @@ typedef void (*micronucleus_callback)(float progress); * Try to connect to the device * Returns: device handle for success, NULL for fail ********************************************************************************/ -micronucleus* micronucleus_connect(); +micronucleus* micronucleus_connect(int fast_mode); /*******************************************************************************/ /******************************************************************************** -- cgit v1.2.3 From e671cb47b48a6de7f33eee0989177da06c5e4902 Mon Sep 17 00:00:00 2001 From: cpldcpu Date: Tue, 18 Feb 2014 13:21:33 +0100 Subject: commandline: update version --- commandline/library/micronucleus_lib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commandline/library/micronucleus_lib.h') diff --git a/commandline/library/micronucleus_lib.h b/commandline/library/micronucleus_lib.h index d9f4999..0accc59 100644 --- a/commandline/library/micronucleus_lib.h +++ b/commandline/library/micronucleus_lib.h @@ -58,7 +58,7 @@ typedef struct _micronucleus_version { unsigned char minor; } micronucleus_version; -#define MICRONUCLEUS_COMMANDLINE_VERSION "Commandline tool version: 2.0a2" +#define MICRONUCLEUS_COMMANDLINE_VERSION "Commandline tool version: 2.0a3" // handle representing one micronucleus device typedef struct _micronucleus { -- cgit v1.2.3 From f920c73ff3f855a8b52cae07bffef752cc496c64 Mon Sep 17 00:00:00 2001 From: cpldcpu Date: Thu, 6 Mar 2014 11:28:07 +0100 Subject: commandline: Fix up that may have caused to patch two pages --- commandline/library/micronucleus_lib.h | 1 + 1 file changed, 1 insertion(+) (limited to 'commandline/library/micronucleus_lib.h') diff --git a/commandline/library/micronucleus_lib.h b/commandline/library/micronucleus_lib.h index 0accc59..9031d2f 100644 --- a/commandline/library/micronucleus_lib.h +++ b/commandline/library/micronucleus_lib.h @@ -67,6 +67,7 @@ typedef struct _micronucleus { micronucleus_version version; unsigned int flash_size; // programmable size (in bytes) of progmem unsigned int page_size; // size (in bytes) of page + unsigned int bootloader_start; // Start of the bootloader unsigned int pages; // total number of pages to program unsigned int write_sleep; // milliseconds unsigned int erase_sleep; // milliseconds -- cgit v1.2.3 From bdae3d430ffe822b97382ca2eb4c8a34bee75004 Mon Sep 17 00:00:00 2001 From: cpldcpu Date: Sun, 16 Mar 2014 09:29:12 +0100 Subject: commandline: Update to 2.0a4 to accomodate for new device configuration reply for attiny841 --- commandline/library/micronucleus_lib.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'commandline/library/micronucleus_lib.h') diff --git a/commandline/library/micronucleus_lib.h b/commandline/library/micronucleus_lib.h index 9031d2f..5bab8b4 100644 --- a/commandline/library/micronucleus_lib.h +++ b/commandline/library/micronucleus_lib.h @@ -3,7 +3,9 @@ /* Created: September 2012 - by ihsan Kehribar + (c) 2012 by ihsan Kehribar + Changes for Micronucleus protocol version V2.x + (c) 2014 T. Bo"scke Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in @@ -58,7 +60,7 @@ typedef struct _micronucleus_version { unsigned char minor; } micronucleus_version; -#define MICRONUCLEUS_COMMANDLINE_VERSION "Commandline tool version: 2.0a3" +#define MICRONUCLEUS_COMMANDLINE_VERSION "Commandline tool version: 2.0a4" // handle representing one micronucleus device typedef struct _micronucleus { -- cgit v1.2.3 From 7e103740357273dcf1143bd04a1cb7fa957be89a Mon Sep 17 00:00:00 2001 From: cpldcpu Date: Thu, 1 May 2014 19:15:05 +0200 Subject: commandline: Added signature to configurationreply --- commandline/library/micronucleus_lib.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'commandline/library/micronucleus_lib.h') diff --git a/commandline/library/micronucleus_lib.h b/commandline/library/micronucleus_lib.h index 5bab8b4..2db7b62 100644 --- a/commandline/library/micronucleus_lib.h +++ b/commandline/library/micronucleus_lib.h @@ -73,6 +73,8 @@ typedef struct _micronucleus { unsigned int pages; // total number of pages to program unsigned int write_sleep; // milliseconds unsigned int erase_sleep; // milliseconds + unsigned char signature1; // only used in protocol v2 + unsigned char signature2; // only used in protocol v2 } micronucleus; typedef void (*micronucleus_callback)(float progress); -- cgit v1.2.3 From 8dab45135ab6aa69db0708776a989a586ff99b50 Mon Sep 17 00:00:00 2001 From: cpldcpu Date: Sun, 15 Mar 2015 09:36:49 +0100 Subject: commandline: Fixed assert when device was unresponsive --- commandline/library/micronucleus_lib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commandline/library/micronucleus_lib.h') diff --git a/commandline/library/micronucleus_lib.h b/commandline/library/micronucleus_lib.h index 2db7b62..b691fa4 100644 --- a/commandline/library/micronucleus_lib.h +++ b/commandline/library/micronucleus_lib.h @@ -60,7 +60,7 @@ typedef struct _micronucleus_version { unsigned char minor; } micronucleus_version; -#define MICRONUCLEUS_COMMANDLINE_VERSION "Commandline tool version: 2.0a4" +#define MICRONUCLEUS_COMMANDLINE_VERSION "Commandline tool version: 2.0a5" // handle representing one micronucleus device typedef struct _micronucleus { -- cgit v1.2.3