Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic VM_DBG error, VisualMicro Debug not working (Read 2017 times)
BobbyJobling
Newbies
*
Offline


Posts: 3
Joined: Oct 13th, 2017
VM_DBG error, VisualMicro Debug not working
Oct 13th, 2017 at 9:24am
Print Post  
Hi, I think I broke VisualMicro 1709.6.0 Debug/Build/upload function on VS2017 15.4.0.

It was working until I swapped from an Arduino Due to Primo board whilst still on the same project Embarrassed . I did change the COM port to match primo board before selecting the Debug/Build button and I got an error msg on the Micro Build output window:

Code
Select All
Arduino.h:74: In file included from
VM_DBG.h:40: from
VM_DBG.cpp:33: from
SoftDeviceManager.h: 92:68: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 [enabled by default]
   void (*errorCallback)(char *file, uint32_t errCode, char *msg) = 0

VM_DBG.cpp:33: In file included from

VM_DBG.h: 301:2: error: 'UARTClass' does not name a type
   UARTClass *transport

VM_DBG.h: 302:13: error: 'UARTClass' has not been declared
   void begin(UARTClass *theSerial, unsigned long baud)
VM_DBG.cpp: In member function void VisualMicroDebug::OnBreakPointPrintBegin(uint8_t)

VM_DBG.cpp: 181:2: error: 'transport' was not declared in this scope
   transport->print("VMDPE_")
VM_DBG.cpp: In member function void VisualMicroDebug::OnBreakPointPrintEnd()

VM_DBG.cpp: 194:2: error: 'transport' was not declared in this scope
   transport->println("_VMDPE")
VM_DBG.cpp: At global scope

VM_DBG.cpp: 818:30: error: variable or field 'begin' declared void
 void VisualMicroDebug*: begin(UARTClass *theSerial, unsigned long baud)

VM_DBG.cpp: 818:30: error: 'UARTClass' was not declared in this scope

VM_DBG.cpp: 818:41: error: 'theSerial' was not declared in this scope
 void VisualMicroDebug*: begin(UARTClass *theSerial, unsigned long baud)

VM_DBG.cpp: 818:52: error: expected primary-expression before 'unsigned
 void VisualMicroDebug*: begin(UARTClass *theSerial, unsigned long baud)
VM_DBG.cpp: In member function unsigned char VisualMicroDebug::read()

VM_DBG.cpp: 959:6: error: 'transport' was not declared in this scope
   b = transport->read()
VM_DBG.cpp: In member function unsigned char VisualMicroDebug::peek()

VM_DBG.cpp: 974:6: error: 'transport' was not declared in this scope
   b = transport->peek()
VM_DBG.cpp: In member function uint8_t VisualMicroDebug::available()

VM_DBG.cpp: 989:6: error: 'transport' was not declared in this scope
   b = transport->available()
VM_DBG.cpp: In member function void VisualMicroDebug::sendContinuedACK(uint8_t)

VM_DBG.cpp: 1202:2: error: 'transport' was not declared in this scope
   transport->print("VMDPC_")
VM_DBG.cpp: In member function void VisualMicroDebug::sendMessage(const char*)

VM_DBG.cpp: 1228:2: error: 'transport' was not declared in this scope
   transport->print(debugger_message)

VM_DBG.cpp: In function void no_lvalue_err()

VM_DBG.cpp: 1589:13: error: 'class VisualMicroDebug' has no member named 'transport

   Attempt to set a read-only variable or data type not supported\r\n")
Error compiling libraries
   error: This hardware might not support the default Serial debugger.
	Try switching the toolbar from 'Debug' to 'Release' and build again.
		or switch off Automatic Debugging
		or configure the SoftwareSerial debugger option.
Debug build failed for project 'Blink'
.
 



Before this action I can confirm VM debug function worked on both boards whilst using separate projects. I don’t think VM liked me swapping boards in the same Arduino Project.
The Release/build/upload works OK, is just when using the debug function.

I have tried to uninstalled/reinstall VM and Arduino IDE but this has not fix the problem, VM debug is given me the same error msg even on the simple "Blink" code. 
Do I need to uninstall/reinstall VS2017?

Please Help
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VM_DBG error, VisualMicro Debug not working (Arduino Primo)
Reply #1 - Oct 13th, 2017 at 4:46pm
Print Post  
Hi,

Some boards use different serial classes and do not define the names in their config files. So we have to add support for these boards to our code or to our own config files.

I will add the primo to the list for testing over the next week or two.

Thanks for the report.
  
Back to top
WWW  
IP Logged
 
BobbyJobling
Newbies
*
Offline


Posts: 3
Joined: Oct 13th, 2017
Re: VM_DBG error, VisualMicro Debug not working
Reply #2 - Oct 19th, 2017 at 2:06pm
Print Post  
OK thank you, looking forward to Primo board support.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint