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) VM_DBG.cpp : error: 'isascii' was not declared in this scope (Read 10160 times)
bowzee
Junior Member
**
Offline


Posts: 20
Joined: Jun 11th, 2015
VM_DBG.cpp : error: 'isascii' was not declared in this scope
Jun 11th, 2015 at 3:31pm
Print Post  
I keep getting this error when trying to use the "Arduino IDE for Atmel Studio". I use an Arduino Due.

How do I fix this?

Code
Select All
Warning   1  USBCore.cpp.o  In function `~LockEP'
                             _dbg\core.a(USBCore.cpp.o)   
Warning   2  USBCore.cpp    130: warning: undefined reference to `__cxa_end_cleanup'
                             res\arduino\USB\USBCore.cpp   
Warning   3  USBCore.cpp.o  (.ARM.extab.text._Z14USBD_Availablem+0x0): warning: undefined reference to `__gxx_personality_v0'
                             _dbg\core.a(USBCore.cpp.o)   
Warning   4  USBCore.cpp.o  In function `~LockEP'
                             _dbg\core.a(USBCore.cpp.o)   
Warning   5  USBCore.cpp    130: warning: undefined reference to `__cxa_end_cleanup'
                             res\arduino\USB\USBCore.cpp   
Warning   6  USBCore.cpp.o  (.ARM.extab.text._Z9USBD_RecvmPvm+0x0): warning: undefined reference to `__gxx_personality_v0'
                             _dbg\core.a(USBCore.cpp.o)   
Warning   7  VM_DBG.cpp     In function 'long unsigned int strtoul(const char*, char**, int)'
                              C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Platforms\default\debuggers\VM_DBG\VM_DBG.cpp   
  Error   8  VM_DBG.cpp     1058:23: error: 'isascii' was not declared in this scope
                              C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Platforms\default\debuggers\VM_DBG\VM_DBG.cpp   
Warning   9  VM_DBG.cpp     At global scope
                              C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Platforms\default\debuggers\VM_DBG\VM_DBG.cpp   
Warning  10  VM_DBG.cpp     965:22: warning: 'long unsigned int mystrtoul(const char*, char**, int)' declared 'static' but never defined [-Wunused-function]
                              C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Platforms\default\debuggers\VM_DBG\VM_DBG.cpp   

 

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


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VM_DBG.cpp : error: 'isascii' was not declared in this scope
Reply #1 - Jun 11th, 2015 at 5:31pm
Print Post  
Thanks for the report.

We recently updated the debug code so that other platforms can be supported but it seems to have broken for the Due.

There will be a service pack fix over the next week.

Thanks again
  
Back to top
IP Logged
 
bowzee
Junior Member
**
Offline


Posts: 20
Joined: Jun 11th, 2015
Re: VM_DBG.cpp : error: 'isascii' was not declared in this scope
Reply #2 - Jun 11th, 2015 at 5:41pm
Print Post  
OK, I was not aware of this. Is there any old version that could be used until next week?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VM_DBG.cpp : error: 'isascii' was not declared in this scope
Reply #3 - Jun 11th, 2015 at 6:16pm
Print Post  
Hi,

If you replace your VM_DBG.cpp with http://www.visualmicro.com/downloads/vm_dbg.cpp it should work.

Yours is in:-
C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Platforms\default\debuggers\VM_DBG\VM_DBG.cpp
  
Back to top
IP Logged
 
bowzee
Junior Member
**
Offline


Posts: 20
Joined: Jun 11th, 2015
Re: VM_DBG.cpp : error: 'isascii' was not declared in this scope
Reply #4 - Jun 11th, 2015 at 10:11pm
Print Post  
Thanks! I will try this!
  
Back to top
 
IP Logged
 
bowzee
Junior Member
**
Offline


Posts: 20
Joined: Jun 11th, 2015
Re: VM_DBG.cpp : error: 'isascii' was not declared in this scope
Reply #5 - Jun 12th, 2015 at 12:48am
Print Post  
Indeed, the isascii error and VM_DBG.cpp warnings disappeared. The USBCore warnings are still there.

I must be doing something wrong because the debugger does not respond as expected. Additionally, AVR is the only platform that shows up (not needed) while ARM appears only within the Tools -> Options.

My objective was to get rid of the Serial.print() statements... It is probably a better idea to wait until next week, so I can have a better assurance that whatever goes wrong is not related to the "Arduino IDE for Atmel Studio".
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VM_DBG.cpp : error: 'isascii' was not declared in this scope
Reply #6 - Jun 12th, 2015 at 11:29am
Print Post  
Hi,

I might be wrong but it sounds like you are trying to use the atmel studio debugger.

Avr and arm do not feature in any visual micro controls. You just select the Due from the the tool bar or visual micro menu then do normal arduino compile and upload. Debug>Start.

The docs are here

http://www.visualmicro.com/page/User-Guide.aspx
http://www.visualmicro.com/page/User-Guide.aspx?doc=Debugging.html

Maybe you can zip and email your project to info [at] visualmicro.com so I can see your config.

Thanks
« Last Edit: Jun 12th, 2015 at 2:04pm by Tim@Visual Micro »  
Back to top
IP Logged
 
bowzee
Junior Member
**
Offline


Posts: 20
Joined: Jun 11th, 2015
Re: VM_DBG.cpp : error: 'isascii' was not declared in this scope
Reply #7 - Jun 12th, 2015 at 1:28pm
Print Post  
Hey Tim, not suing anyone! HAHAHA !!!

By now I should have had some kind of beef with the Arduino software people, because Serial.print() does not always work. My assumption is that it must be some incompatibility with the interrupts needed in my project.

Now that you have pointed in the direction of the manuals I will read them.

Thank you for offering to look at my code. Surely you already have plenty of this to worry about. Because you actually give support, I will try the "Arduino IDE for Atmel Studio" again and post on this forum if things don't turn out right.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VM_DBG.cpp : error: 'isascii' was not declared in this scope
Reply #8 - Jun 12th, 2015 at 2:05pm
Print Post  
Okay thanks  Smiley
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint