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
Hot Topic (More than 8 Replies) Linkit ONE Board - Debug build failed with error message implies 'SerialUSB' problem (Read 7640 times)
Ethan Lin
Newbies
*
Offline


Posts: 4
Joined: Sep 2nd, 2016
Linkit ONE Board - Debug build failed with error message implies 'SerialUSB' problem
Sep 2nd, 2016 at 2:10pm
Print Post  
Hi Visual Micro,

You did a good job I truly thanks for the great work. I am using Mediatek Linkit ONE board and try to debug with vm. The Debug build failed with the following message:

error: 'SerialUSB' was not declared in this scope
   void setup() { 
    debugger: The error shown above might be caused by invalid breakpoint syntax or the board is not yet supported for debugging (pls let us know!)
Error compiling project sources


Basically Linkit ONE is Arduino-like device and I can compile and upload sketch by VM. In Linkit ONE, it uses Serial.print() to print messages to COM port and I am wondering that's something different than Arduino board. Please advise what I can do to resolve the problem. Thanks a lot.
« Last Edit: Sep 2nd, 2016 at 9:07pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debug build failed with error message implies 'SerialUSB' problem
Reply #1 - Sep 2nd, 2016 at 2:44pm
Print Post  
Thanks for the note

Visual micro needs to know the class of the serial and has made an incorrect assumption that the class is SerialUSB which is obviously wrong.

I will try it over the next few days to see what class it should use.

Is the core in Board Manager or do we download from a link on the web?

Thanks

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debug build failed with error message implies 'SerialUSB' problem
Reply #2 - Sep 2nd, 2016 at 3:09pm
Print Post  
I found the install guide and see the Serial uses UARTClass so we will make an update for the board.

On a different note I see it is based on the Arduino Due which we recently released JTAG hardware debug for via Atmel Studio. I am not clear if the board you have supports jtag. I found this post to suggest later boards would have a jtag connector if it does then you will find a better debug experience in atmel studio with visual micro

https://labs.mediatek.com/forums/posts/list/97.page

This example uses Arduino Due but there should be no difference between the Due and your board
« Last Edit: Sep 2nd, 2016 at 3:10pm by Tim@Visual Micro »  

Please Register or Login to the Forum to see File Attachments
Back to top
WWW  
IP Logged
 
Ethan Lin
Newbies
*
Offline


Posts: 4
Joined: Sep 2nd, 2016
Re: Debug build failed with error message implies 'SerialUSB' problem
Reply #3 - Sep 2nd, 2016 at 3:38pm
Print Post  
Hi VM team,

Thank you for incredibly fast response and useful information. I don't find the JTAG connector on my board. I will write mail to ask the manufacture about JTAG support. 

In the meanwhile, I will wait for the update from your next release. What is the release cycle typically?

The specific issue I am addressing is unexpected device hang and I want to check the callstack to see what happen before the board died. I believe VM can do this by reading the document. 

Thanks!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debug build failed with error message implies 'SerialUSB' problem
Reply #4 - Sep 2nd, 2016 at 3:47pm
Print Post  
Releases are often every few days

Notifications are here http://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

Or the gallery
  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Linkit ONE Board - Debug build failed with error message implies 'SerialUSB' problem
Reply #5 - Sep 2nd, 2016 at 9:07pm
Print Post  
There is a new release with debug support for Linkit ONE boards
  
Back to top
WWW  
IP Logged
 
Ethan Lin
Newbies
*
Offline


Posts: 4
Joined: Sep 2nd, 2016
Re: Linkit ONE Board - Debug build failed with error message implies 'SerialUSB' problem
Reply #6 - Sep 3rd, 2016 at 2:57pm
Print Post  
Super fast fix! impressive. 

I installed the update and can build & upload sketch on my Linkit ONE board. Then I setup a breakpoint and tried to start debugging the code. But I found the debugger launching never successes. The screen shot show what I got here. I've tried
(1) Reconnect the device
(2) Toggle connect button in monitor window
 
Please advise what I can do for the next. Many thanks!
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Linkit ONE Board - Debug build failed with error message implies 'SerialUSB' problem
Reply #7 - Sep 3rd, 2016 at 3:20pm
Print Post  
EDIT: I know you are using 19k for serial but it doesn't matter for the test

Okay

Let's check the Serial is working as expected. The 32 bit boards have more than one serial.

Please switch to release mode and close the project

Create a new project file>new>arduino project

Add the following to the .ino

Upload the sketch and open the serial monitor.

Make sure the Dtr box is ticked on the monitor, make sure the speed shows 115200

Do you see Starting and the Looping messages in the monitor?

If not please try Serial1. instead of Serial. below.

Thanks

Code
Select All
void setup()
{
 Serial.begin(115200);
 Serial.println("Starting");
{

void loop()
{
 Serial.println("Looping");
 delay(1000);
}
 



« Last Edit: Sep 3rd, 2016 at 7:07pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Ethan Lin
Newbies
*
Offline


Posts: 4
Joined: Sep 2nd, 2016
Re: Linkit ONE Board - Debug build failed with error message implies 'SerialUSB' problem
Reply #8 - Sep 4th, 2016 at 1:07am
Print Post  
In Release mode, the messages were printed through Serial.println() successfully. "Serial1" on this borad is used to connect to external devices. 

But I had no luck in Debug mode. The debugger wasn't launching as expected.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint