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 Error when trying to get AtTiny support (Read 2162 times)
nablabla
Newbies
*
Offline


Posts: 5
Joined: Nov 17th, 2018
Error when trying to get AtTiny support
Nov 17th, 2018 at 9:37am
Print Post  
Hi everyone,
I used vm a while now for arduino project but when programming Arduino on the AtTiny I needed to use the old 1.0.6, which is painful.

I tried to follow this tutorial https://www.visualmicro.com/page/User-Guide.aspx?doc=Board-Manager.html

But when I click on Visual Micro Explorer -> Manage Boards -> Board Support Package Auto-Discovery -> AtTiny
then it says:

_Updating contribution index_
this path i not a valid .json file name https://raw.githubusercontent.com/damellis/attiny
/ide-1.6.x-boards-manager

and then:
_Errors were found loading some package index files_
NullrefExeption: [..]
at r indexer)

It also appears when clicking RESCAN

I don't knwo what setting this is, where to set and what to set it to

thanks in advance Smiley
  
Back to top
 
IP Logged
 
nablabla
Newbies
*
Offline


Posts: 5
Joined: Nov 17th, 2018
Re: Error when trying to get AtTiny support
Reply #1 - Nov 17th, 2018 at 5:04pm
Print Post  
Okay now it works, it still brings the error but AtTiny24/../85 now shows up in my list of boards, I do not not know how but it does after restarting visual micro again

I selected the board and tried to compile an empty sketch (only setup and loop) but it says it can not find "Serial"
so... idk 
it does not have Serial okay, but the arduino core needs it? can i not disable it?
"HardwareSerial.h" is referenced in the project, does not seem correct to me. Do I have to setup something with the project? The vsarduino.h looks good thoug Sad


Code (C++)
Select All
void setup()
{
}

void loop()
{
}
 


Code
Select All
Compiling debug version of 'atTinyTest1' for 'ATtiny25/45/85 w/ ATtiny85'

atTinyTest1.ino: In function void setup()

atTinyTest1.ino: 6:57: error: 'Serial' was not declared in this scope
Error compiling project sources
Debug build failed for project 'atTinyTest1' 

« Last Edit: Nov 17th, 2018 at 5:22pm by nablabla »  
Back to top
 
IP Logged
 
nablabla
Newbies
*
Offline


Posts: 5
Joined: Nov 17th, 2018
Re: Error when trying to get AtTiny support
Reply #2 - Nov 17th, 2018 at 5:14pm
Print Post  
I managed to switch to version 1.0.1
This is what happens then:
Compiling debug version of 'atTinyTest1' for 'ATtiny w/ ATtiny85'
 
cc1.exe*: error: -fno-fat-lto-objects are supported only with linker plugin
Error compiling core
Debug build failed for project 'atTinyTest1'
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error when trying to get AtTiny support
Reply #3 - Nov 17th, 2018 at 5:30pm
Print Post  
v1 of arduino ide does not support board manager. You have to follow older instructions for install a core.

How have you installed your tiny boards, from where?
  
Back to top
WWW  
IP Logged
 
nablabla
Newbies
*
Offline


Posts: 5
Joined: Nov 17th, 2018
Re: Error when trying to get AtTiny support
Reply #4 - Nov 17th, 2018 at 5:32pm
Print Post  
Okay, sorry everybody for my monologue, but I found the solution for my problem, I think this post should remain in your forum for others who might counter the problem

Solution for the problem with installing boards:
Must go to Board Platform Installer (not Board Support Package Auto Discovery), then click on the board (or version) and very important: Read the status bar at the bottom AND WAIT some seconds

Solution for the Serious, I mean Serial Grin Problem:
I added #define Serial NULL then doubleclicking the (new) error message it let me dive into the Arduino.h where I found that USBAPI.h was used, it let me think about some kind of usb api used for something. oho! It is used for the debugger, so I disabled the debugger Cheesy
And it works now. If debugger is enabled it tries to bake in Serial communication so:
uncheck: vMicro -> Debbuger ->  "Automatic Debugging"
« Last Edit: Nov 17th, 2018 at 5:33pm by nablabla »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error when trying to get AtTiny support
Reply #5 - Nov 17th, 2018 at 6:16pm
Print Post  
It was a useful and well written report thank you.

Yes, the tiny boards are the only arduino boards without serial, so the debugger does not know what to do. I don't think they have enough memory. If you find a serial solution for attiny please let me know.

Thanks

« Last Edit: Nov 17th, 2018 at 6:18pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint