Hi,
I would like to run WizFiShield on Arduino Due. I would like to know if somebody did it already and have some hints (hardware, software…).
So far, i just start to compile the WizFi library from github (github.com/Wiznet/WizFiShield commit ee33c0ba03939ac7e1e5f26fd75da6fd84ae3609) for SAM CPU using Arduino due libsam, libcore, SPI library.
I did the following change:
[ul]diff --git a/Software/WizFiShield/Config.h b/Software/WizFiShield/Config.h
index f57165d…d142fa0 100644
— a/Software/WizFiShield/Config.h
+++ b/Software/WizFiShield/Config.h
@@ -8,4 +8,13 @@
#define LINE_PARSE
#define DEBUG_ENABLE
+/* Option for SAM CPU */
+#if defined(SAM3X8E)
+#define prog_char const char
+#define PROGMEM
+#define strcpy_P strcpy
+#define pgm_read_word(x) x
+#define SPI_CLOCK_DIV16 1
+#endif
+
#endif
diff --git a/Software/WizFiShield/HTMLPages.cpp b/Software/WizFiShield/HTMLPages.cpp
index b632e5a…87c27b6 100644
— a/Software/WizFiShield/HTMLPages.cpp
+++ b/Software/WizFiShield/HTMLPages.cpp
@@ -1,5 +1,7 @@
#include “HTMLPages.h”
+#if !defined(SAM3X8E)
#include <avr/pgmspace.h>
+#endif
#ifdef CODEMEM
prog_char Protocol_Msg PROGMEM = “HTTP/1.1 200 OK\r\n”; // “String 0” etc are strings to store - change to suit.
diff --git a/Software/WizFiShield/HTMLParser.cpp b/Software/WizFiShield/HTMLParser.cpp
index f59790d…a8943a8 100644
— a/Software/WizFiShield/HTMLParser.cpp
+++ b/Software/WizFiShield/HTMLParser.cpp
@@ -1,5 +1,7 @@
#include “HTMLParser.h”
+#if !defined(SAM3X8E)
#include <avr/pgmspace.h>
+#endif
#ifdef CODEMEM
prog_char Get_Msg PROGMEM = “GET”; // “String 0” etc are strings to store - change to suit.
diff --git a/Software/WizFiShield/WizFi2x0.cpp b/Software/WizFiShield/WizFi2x0.cpp
index c351adc…02341f4 100644
— a/Software/WizFiShield/WizFi2x0.cpp
+++ b/Software/WizFiShield/WizFi2x0.cpp
@@ -10,7 +10,9 @@
//
// Author : James YS Kim
+#if !defined(SAM3X8E)
#include <avr/pgmspace.h>
+#endif
#ifdef CODEMEM
prog_char AT_Msg PROGMEM = “AT\r\n”; // “String 0” etc are strings to store - change to suit.
@@ -2516,7 +2518,7 @@ void WizFi2x0Class::GetDNSIPAddr(byte *buf1, byte *buf2)
*/
-void WizFi2x0Class::SetSrcPortnum(unsigned int portnum)
+void WizFi2x0Class::SetSrcPortnum(uint16_t portnum)
{
uint8_t tmpstr[20];
diff --git a/Software/WizFiShield/WizFi2x0.h b/Software/WizFiShield/WizFi2x0.h
index 322bc73…ea6fe7c 100644
— a/Software/WizFiShield/WizFi2x0.h
+++ b/Software/WizFiShield/WizFi2x0.h
@@ -2,7 +2,9 @@
#define WIZFI2x0_H
#include <SPI.h>
+#if !defined(SAM3X8E)
#include <avr/pgmspace.h>
+#endif
//#include <WizFiClient.h>
diff --git a/Software/WizFiShield/WizFiClient.cpp b/Software/WizFiShield/WizFiClient.cpp
index 1fe3165…02cb264 100644
— a/Software/WizFiShield/WizFiClient.cpp
+++ b/Software/WizFiShield/WizFiClient.cpp
@@ -7,7 +7,9 @@
//
// Author : James YS Kim
+#if !defined(SAM3X8E)
#include <avr/pgmspace.h>
+#endif
#ifdef CODEMEM
diff --git a/Software/WizFiShield/WizFiUDP.cpp b/Software/WizFiShield/WizFiUDP.cpp
index c576c82…dbc33a2 100644
— a/Software/WizFiShield/WizFiUDP.cpp
+++ b/Software/WizFiShield/WizFiUDP.cpp
@@ -1,7 +1,9 @@
#include <WizFiUDP.h>
#include “StringDef.h”
+#if !defined(SAM3X8E)
#include <avr/pgmspace.h>
+#endif
#ifdef CODEMEM
[/ul]
I compile, i did not test (I need to receive my board first ).
I’m a bit worried if all this warning are normal (i need to check it):
…/WizFiShield/Software/WizFiShield/HTMLPages.cpp: In member function ‘uint8_t HTMLPages::GetNextLine(char*)’:
…/WizFiShield/Software/WizFiShield/HTMLPages.cpp:131: warning: control reaches end of non-void function
…/WizFiShield/Software/WizFiShield/HTMLParser.cpp: In member function ‘uint8_t HTMLParser::Parsing(char*)’:
…/WizFiShield/Software/WizFiShield/HTMLParser.cpp:39: warning: unused variable ‘i’
…/WizFiShield/Software/WizFiShield/HTMLParser.cpp:39: warning: unused variable ‘retval’
…/WizFiShield/Software/WizFiShield/HTMLParser.cpp: In member function ‘uint8_t HTMLParser::Parsing_Get(char*)’:
…/WizFiShield/Software/WizFiShield/HTMLParser.cpp:154: warning: unused variable ‘retval’
…/WizFiShield/Software/WizFiShield/HTMLParser.cpp:237: warning: control reaches end of non-void function
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp: In member function ‘virtual uint8_t WizFi2x0Class::write(byte)’:
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:562: warning: unused variable ‘DBG_Buf’
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp: In member function ‘virtual uint8_t WizFi2x0Class::write(byte*, size_t)’:
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:605: warning: comparison between signed and unsigned integer expressions
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp: In member function ‘virtual uint8_t WizFi2x0Class::read(byte*, size_t)’:
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:678: warning: comparison between signed and unsigned integer expressions
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp: In member function ‘uint8_t WizFi2x0Class::SendCommand(uint8_t)’:
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:696: warning: unused variable ‘retval’
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp: In member function ‘void WizFi2x0Class::MakeCommand(uint8_t)’:
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:759: warning: format not a string literal and no format arguments
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:759: warning: format not a string literal and no format arguments
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:763: warning: format not a string literal and no format arguments
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:763: warning: format not a string literal and no format arguments
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:769: warning: format not a string literal and no format arguments
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:769: warning: format not a string literal and no format arguments
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:773: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:773: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:778: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:778: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:782: warning: format not a string literal and no format arguments
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:782: warning: format not a string literal and no format arguments
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:786: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:786: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:790: warning: format not a string literal and no format arguments
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:790: warning: format not a string literal and no format arguments
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:794: warning: format not a string literal and no format arguments
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:794: warning: format not a string literal and no format arguments
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:798: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:798: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:802: warning: format not a string literal and no format arguments
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:802: warning: format not a string literal and no format arguments
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:806: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:806: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:812: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:812: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:816: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:816: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:821: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:821: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:825: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:825: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:829: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:829: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:833: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:833: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:837: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:837: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:841: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:841: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:845: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:845: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:849: warning: format not a string literal and no format arguments
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:849: warning: format not a string literal and no format arguments
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:853: warning: format not a string literal and no format arguments
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:853: warning: format not a string literal and no format arguments
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:857: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:857: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:861: warning: format not a string literal and no format arguments
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:861: warning: format not a string literal and no format arguments
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:865: warning: format not a string literal and no format arguments
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:865: warning: format not a string literal and no format arguments
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:869: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:869: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:873: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:873: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:877: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:877: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:881: warning: format not a string literal and no format arguments
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:881: warning: format not a string literal and no format arguments
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:885: warning: format not a string literal and no format arguments
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:885: warning: format not a string literal and no format arguments
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:889: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:889: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:893: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:893: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:897: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:897: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp: In member function ‘uint8_t WizFi2x0Class::CheckReply(uint8_t)’:
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:1337: warning: unused variable ‘flag’
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp: In member function ‘uint8_t WizFi2x0Class::ParseReply(byte*, uint8_t)’:
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:1431: warning: unused variable ‘APListIndex’
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp: In member function ‘uint8_t WizFi2x0Class::RevByteStuff(byte*)’:
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:2348: warning: unused variable ‘DBG_Buf’
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp: In member function ‘void WizFi2x0Class::StrToStr(byte*, byte*, size_t)’:
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:2421: warning: format not a string literal and no format arguments
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:2421: warning: format not a string literal and no format arguments
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp: In member function ‘void WizFi2x0Class::SetPeerIPAddr(byte*)’:
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:2540: warning: format not a string literal and no format arguments
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:2540: warning: format not a string literal and no format arguments
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp: In member function ‘void WizFi2x0Class::GetPeerIPAddr(byte*)’:
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:2546: warning: format not a string literal and no format arguments
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:2546: warning: format not a string literal and no format arguments
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp: In member function ‘long int WizFi2x0Class::StrToInt(byte*)’:
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:2681: warning: unused variable ‘tmpstr’
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp: In member function ‘uint8_t WizFi2x0Class::readbytefromSPI()’:
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:2739: warning: no return statement in function returning non-void
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp: In member function ‘int WizFi2x0Class::SetIP(uint8_t*, byte*)’:
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:2651: warning: will never be executed
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp: In member function ‘int WizFi2x0Class::GetToken(byte*, uint8_t*)’:
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:2223: warning: will never be executed
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:2230: warning: will never be executed
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:2232: warning: will never be executed
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:2225: warning: will never be executed
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:2227: warning: will never be executed
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:2236: warning: will never be executed
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:2243: warning: will never be executed
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:2245: warning: will never be executed
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:2238: warning: will never be executed
…/WizFiShield/Software/WizFiShield/WizFi2x0.cpp:2240: warning: will never be executed
…/WizFiShield/Software/WizFiShield/WizFiClient.cpp: In member function ‘boolean WizFiClient::available()’:
…/WizFiShield/Software/WizFiShield/WizFiClient.cpp:99: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFiClient.cpp:99: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFiClient.cpp:124: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFiClient.cpp:124: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFiClient.cpp:129: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFiClient.cpp:129: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFiClient.cpp:134: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFiClient.cpp:134: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFiClient.cpp: In member function ‘uint8_t WizFiClient::connect()’:
…/WizFiShield/Software/WizFiShield/WizFiClient.cpp:227: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFiClient.cpp:227: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFiClient.cpp: In member function ‘uint8_t WizFiClient::disconnect()’:
…/WizFiShield/Software/WizFiShield/WizFiClient.cpp:277: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFiClient.cpp:277: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFiClient.cpp: In member function ‘uint8_t WizFiClient::async_connect()’:
…/WizFiShield/Software/WizFiShield/WizFiClient.cpp:310: warning: unused variable ‘retval’
…/WizFiShield/Software/WizFiShield/WizFiClient.cpp: In member function ‘uint8_t WizFiClient::async_disconnect()’:
…/WizFiShield/Software/WizFiShield/WizFiClient.cpp:357: warning: unused variable ‘retval’
…/WizFiShield/Software/WizFiShield/WizFiClient.cpp: In member function ‘uint8_t WizFiClient::read()’:
…/WizFiShield/Software/WizFiShield/WizFiClient.cpp:448: warning: unused variable ‘i’
…/WizFiShield/Software/WizFiShield/WizFiClient.cpp:449: warning: unused variable ‘DBG_Buf’
…/WizFiShield/Software/WizFiShield/WizFiClient.cpp: In member function ‘uint8_t WizFiClient::read(byte*)’:
…/WizFiShield/Software/WizFiShield/WizFiClient.cpp:475: warning: unused variable ‘DBG_Buf’
…/WizFiShield/Software/WizFiShield/WizFiClient.cpp: In member function ‘uint8_t WizFiClient::read()’:
…/WizFiShield/Software/WizFiShield/WizFiClient.cpp:449: warning: ‘buf’ may be used uninitialized in this function
…/WizFiShield/Software/WizFiShield/WizFiServer.cpp: In member function ‘uint8_t WizFiServer::begin()’:
…/WizFiShield/Software/WizFiShield/WizFiServer.cpp:21: warning: unused variable ‘tmpstr’
…/WizFiShield/Software/WizFiShield/WizFiServer.cpp:22: warning: unused variable ‘tmpIP’
…/WizFiShield/Software/WizFiShield/WizFiUDP.cpp: In member function ‘uint8_t WizFiUDP::open()’:
…/WizFiShield/Software/WizFiShield/WizFiUDP.cpp:163: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFiUDP.cpp:163: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFiUDP.cpp: In member function ‘uint8_t WizFiUDP::close()’:
…/WizFiShield/Software/WizFiShield/WizFiUDP.cpp:208: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFiUDP.cpp:208: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFiUDP.cpp: In member function ‘boolean WizFiUDP::available()’:
…/WizFiShield/Software/WizFiShield/WizFiUDP.cpp:255: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFiUDP.cpp:255: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFiUDP.cpp:280: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFiUDP.cpp:280: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFiUDP.cpp:285: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFiUDP.cpp:285: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFiUDP.cpp:290: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFiUDP.cpp:290: warning: format not a string literal, argument types not checked
…/WizFiShield/Software/WizFiShield/WizFiUDP.cpp: In member function ‘uint8_t WizFiUDP::read(byte*)’:
…/WizFiShield/Software/WizFiShield/WizFiUDP.cpp:413: warning: unused variable ‘DBG_Buf’
thanks