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] 2  Send TopicPrint
Very Hot Topic (More than 25 Replies) Board will not function when using the DS1307RTC library (Read 20812 times)
mpl1337
Junior Member
**
Offline


Posts: 14
Joined: Jan 31st, 2016
Board will not function when using the DS1307RTC library
Jan 31st, 2016 at 4:29pm
Print Post  
Hello,

Im Trying to make my first setep with this great plugin =)

but my first step ist my first problem...

when im uploading my code with the arduino ide.. it runs

now im uploading with visualmicro for visualstudio and nothing happens on my arduino...

the compiler output:

Code
Select All
Compiling 'terra' for 'Arduino Due (Programming Port)'
Binary sketch size: 97.976 bytes (used 19% of a 524.288 byte maximum) (5,87 secs)

Uploading to I/O board using 'COM10'
Atmel SMART device 0x285e0a60 found
Erase flash
done in 0.032 seconds
Write 100476 bytes to flash (393 pages)
[                              ] 0% (0/393 pages)
[==                            ] 9% (39/393 pages)
[=====                         ] 19% (78/393 pages)
[========                      ] 29% (117/393 pages)
[===========                   ] 39% (156/393 pages)
[==============                ] 49% (195/393 pages)
[=================             ] 59% (234/393 pages)
[====================          ] 69% (273/393 pages)
[=======================       ] 79% (312/393 pages)
[==========================    ] 89% (351/393 pages)
[============================= ] 99% (390/393 pages)
[==============================] 100% (393/393 pages)
done in 19.304 seconds
Verify 100476 bytes of flash
[                              ] 0% (0/393 pages)
[==                            ] 9% (39/393 pages)
[=====                         ] 19% (78/393 pages)
[========                      ] 29% (117/393 pages)
[===========                   ] 39% (156/393 pages)
[==============                ] 49% (195/393 pages)
[=================             ] 59% (234/393 pages)
[====================          ] 69% (273/393 pages)
[=======================       ] 79% (312/393 pages)
[==========================    ] 89% (351/393 pages)
[============================= ] 99% (390/393 pages)
Done uploading
[==============================] 100% (393/393 pages)
Verify successful
done in 17.713 seconds
Set boot flash true
CPU reset.
 




can someone help my pease?

attachment is my project
« Last Edit: Feb 2nd, 2016 at 11:29pm by Tim@Visual Micro »  

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


Posts: 12138
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Uploadet code not working
Reply #1 - Jan 31st, 2016 at 8:00pm
Print Post  
Hi,

I looks like there is some confusion with some other similar tool chain.

Please switch on "Visual Micro>Verbose Messages" then try the upload again and post or email the output.

You can see below that Visual Micro should normally be using the bossac.exe tool to upload to a Due via Programming port but the native port is almost the same.

The verbose output will show what settings you have installed.

Thanks

Quote:
 
Uploading to I/O board using 'COM10'
Uploader started for board Arduino Due (Programming Port)
Upload method will be: bootloader
Uploading via Bootloader 
C:\Users\[your xe -i -d --port=COM10 -U false -e -w -v -b C:\Users\[your name]\AppData\Local\V6755~1.MIC\Arduino\Builds\Sketch52\ARDUIN~2/SKETCH~1.BIN -R
Send auto-baud
Set binary mode
readWord(addr=0)=0x20001000
  
Back to top
IP Logged
 
mpl1337
Junior Member
**
Offline


Posts: 14
Joined: Jan 31st, 2016
Re: Uploadet code not working
Reply #2 - Feb 1st, 2016 at 7:19pm
Print Post  
ok here is it... have compare arduino ide and msvisual... and there is a little differnce on the upload...
  

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


Posts: 12138
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Uploadet code not working
Reply #3 - Feb 1st, 2016 at 8:32pm
Print Post  
Thanks for the info. Yes the look the same and both use bossac.exe which returns the info you have in your picture. 

The bossac commands are the same and the size of the compiled sketch is the same so it is a strange issue.

Please zip and email your project to info[at]visualmicro.com so that I can try it. 

+ Please make sure you are using arduino 1.6.7 and the latest visual micro 1601.31 so that we have the same config.

Thanks
  
Back to top
IP Logged
 
mpl1337
Junior Member
**
Offline


Posts: 14
Joined: Jan 31st, 2016
Re: Uploadet code not working
Reply #4 - Feb 1st, 2016 at 9:16pm
Print Post  
OK i Post it morning.

My last try was to upload via cmd bossac the arduino compiled bin file and the visual micro compiled bin... and the same problem. There are much many differences in both bin files.. I thing there is only a switch or parameter in the compiler wrong... 

I will post morning my project again with the versions of the ide's
  
Back to top
 
IP Logged
 
mpl1337
Junior Member
**
Offline


Posts: 14
Joined: Jan 31st, 2016
Re: Uploadet code not working
Reply #5 - Feb 2nd, 2016 at 5:35pm
Print Post  
ok, you got a mail Wink
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12138
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Board will not function when using the DS1307RTC library
Reply #6 - Feb 2nd, 2016 at 8:42pm
Print Post  
Thanks for all the info (and the libraries that saves a lot of time)

Please confirm:-

Which version of the Arduino Ide are you using?
Which version of SAM/DUE core you have installed?

Thanks
« Last Edit: Feb 2nd, 2016 at 11:29pm by Tim@Visual Micro »  
Back to top
IP Logged
 
mpl1337
Junior Member
**
Offline


Posts: 14
Joined: Jan 31st, 2016
Re: Board will not function when using the DS1307RTC library
Reply #7 - Feb 3rd, 2016 at 4:31pm
Print Post  
ok here is it...

have you changed the topic to   Board will not function when using the DS1307RTC library ?

is the error in the DS1307RTC lib ?
  

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


Posts: 12138
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Board will not function when using the DS1307RTC library
Reply #8 - Feb 3rd, 2016 at 7:04pm
Print Post  
Sorry forgot to update you.

Yes the problem happens when the DS1307 is included. 

I will look into it again later this week. 

There will be a release in a few hours to fix a problem with libraries that compile into a .a such as Bridge. The order of compiler include paths has also been adjusted to exactly match the Arduino Ide but these changes do not resolve this issue.


  
Back to top
IP Logged
 
mpl1337
Junior Member
**
Offline


Posts: 14
Joined: Jan 31st, 2016
Re: Board will not function when using the DS1307RTC library
Reply #9 - Feb 5th, 2016 at 12:18pm
Print Post  
OK i Hope you can fix this issue Smiley i want to use this Nice ide full..
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12138
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Board will not function when using the DS1307RTC library
Reply #10 - Feb 5th, 2016 at 1:50pm
Print Post  
Yes I am sure we will very soon.

You can use Arduino Ide "file>preferences>external editor". This allows the same project to be open in both Visual Studio (edit) and Arduino Ide (upload)

It's not a perfect solution but at least you can edit your code in VS
  
Back to top
IP Logged
 
mpl1337
Junior Member
**
Offline


Posts: 14
Joined: Jan 31st, 2016
Re: Board will not function when using the DS1307RTC library
Reply #11 - Feb 8th, 2016 at 6:27pm
Print Post  
yes of course... but on this way no debugger... and i wanna try the debugger with my project bevor i choose to purchase it and my trail will end soon..
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12138
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Board will not function when using the DS1307RTC library
Reply #12 - Feb 8th, 2016 at 6:30pm
Print Post  
Smiley It's next on the list but it would be useful if you install the latest release and confirm the problem with and without "deep search" enabled.

I will get you a new trial when ready.
  
Back to top
IP Logged
 
mpl1337
Junior Member
**
Offline


Posts: 14
Joined: Jan 31st, 2016
Re: Board will not function when using the DS1307RTC library
Reply #13 - Feb 8th, 2016 at 7:23pm
Print Post  
ok,

version 1602.7.1

release and debug tested:

cleanup
deepsearch on 
upload
not working

deepsearch off
cleanup 
upload
not working
  
Back to top
 
IP Logged
 
mpl1337
Junior Member
**
Offline


Posts: 14
Joined: Jan 31st, 2016
Re: Board will not function when using the DS1307RTC library
Reply #14 - Feb 13th, 2016 at 2:23pm
Print Post  
Something new about this Problem?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12138
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Board will not function when using the DS1307RTC library
Reply #15 - Feb 13th, 2016 at 2:26pm
Print Post  
Looking at it as we speak
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12138
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Board will not function when using the DS1307RTC library
Reply #16 - Feb 13th, 2016 at 3:31pm
Print Post  
Hi,

Can you please give web links to the libraries you have installed for this project.

There appears to be a few variations and I need to test the same.

Thanks
  
Back to top
IP Logged
 
mpl1337
Junior Member
**
Offline


Posts: 14
Joined: Jan 31st, 2016
Re: Board will not function when using the DS1307RTC library
Reply #17 - Feb 14th, 2016 at 9:27am
Print Post  
« Last Edit: Feb 14th, 2016 at 9:31am by mpl1337 »  
Back to top
 
IP Logged
 
mpl1337
Junior Member
**
Offline


Posts: 14
Joined: Jan 31st, 2016
Re: Board will not function when using the DS1307RTC library
Reply #18 - Feb 20th, 2016 at 2:04pm
Print Post  
when i disbale the rtc functions it works... with rtc not working

do you have allready a point of error located in the lib?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12138
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Board will not function when using the DS1307RTC library
Reply #19 - Feb 22nd, 2016 at 12:00pm
Print Post  
I think I found the issue. Arduino 1.6.6 + uses ctags to discover additional "private" libraries and includes.

This feature is not yet stable but works with your config.

I tracked the verbose output of the arduino ide with your project and found that it is also compiling all the library examples and also compiling files for other platforms. This works for you but breaks for many others.

Over the next week I will implement the same solution but will attempt to prevent the wrong stuff from being compiled. This should work for you and also allow other users to continue to work without breakage.

Thanks
  
Back to top
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint