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 Breakpoint Actions (Read 3413 times)
n
Junior Member
**
Offline


Posts: 52
Joined: Mar 29th, 2016
Breakpoint Actions
Nov 19th, 2016 at 12:56am
Print Post  
Hi,

I have been playing with some of the nice breakpoint options which I have not tried before and ran into problems trying to use the "Analog, Digital, Memory, and Performance Reporting" variables such  {@ReportFreeMemory}. 

If I include this variable in the breakpoint action then the compile fails with the message

Quote:
 
VM_DBG.h:76: In file included from
VM_DBG.cpp:33: from
 
VM_Boards.h: 537:2: error: #error "Please edit Boards.h with a hardware abstraction for this board"
   #error "Please edit Boards.h with a hardware abstraction for this board"
Error compiling libraries


Any ideas?

I am using VS2015 Update 3, Visual Micro v 1611.5.1 and the "Generic ESP8266 Module"

Thanks

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


Posts: 12138
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Breakpoint Actions
Reply #1 - Nov 19th, 2016 at 12:58am
Print Post  
It looks like the esp8266 needs to be added to the debug system. I'll put it on the list for asap. Thanks for the post
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12138
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Breakpoint Actions
Reply #2 - Nov 20th, 2016 at 5:29pm
Print Post  
The latest release has the code for esp8266 digital and analog pin viewers. 

The free memory graph might also work, there is new code for that but it might also cause a debug compile error.
« Last Edit: Nov 20th, 2016 at 5:29pm by Tim@Visual Micro »  
Back to top
IP Logged
 
n
Junior Member
**
Offline


Posts: 52
Joined: Mar 29th, 2016
Re: Breakpoint Actions
Reply #3 - Nov 29th, 2016 at 5:29am
Print Post  
Hi Tim,

Thank you - the pin viewers now work nicely. However the @ReportFreeMemory variable now gives the following error.

Quote:


VM_mem_check.c: 7:1: error: stray '##' in program
   ##elif defined(ARDUINO_ARCH_SAM)
 
VM_mem_check.c: 7:3: error: unknown type name 'elif
   ##elif defined(ARDUINO_ARCH_SAM)
 
VM_mem_check.c: In function defined
 
VM_mem_check.c: 7:1: error: expected '{' at end of input
   ##elif defined(ARDUINO_ARCH_SAM)
 
VM_mem_check_sam.cpp: In function int _VM_freeMemory()
 
VM_mem_check_sam.cpp: 7:17: error: expected primary-expression before '.' token
   return EspClass.getFreeHeap(void)
 
VM_mem_check_sam.cpp: 7:30: error: expected primary-expression before 'void
   return EspClass.getFreeHeap(void)
Error compiling libraries



thanks

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


Posts: 12138
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Breakpoint Actions
Reply #4 - Nov 29th, 2016 at 12:36pm
Print Post  
Yes there is a bug fix due over the next few days thanks

You can fix yourself in the meantime by double clicking the error which takes you to the .c file. Then remove one of the double ## symbols you see

##elif defined(ARDUINO_ARCH_SAM)

should be

#elif defined(ARDUINO_ARCH_SAM)


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


Posts: 12138
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Breakpoint Actions
Reply #5 - Nov 30th, 2016 at 11:48pm
Print Post  
There is a new release 1612.01 which supports the esp digital, analog and free memory debugger variables

It also contains a replacement dns discovery api so if you use apple bonjour and connect a wifi device after the ide has started it should do a better job of picking it up.

boards.txt also now supports the password so OTA should be easier because the bonjour service can be very slow to detect network changes.

network.port=8266
network.auth_upload=yes
network.password=???

If debugging via usb but uploading using OTA then "Debug>Attach" will reopen the debug session on the select usb port.





  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint