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
Very Hot Topic (More than 25 Replies) WICED Feather and VisualMicro (Read 11414 times)
hack-o-holic
Junior Member
**
Offline


Posts: 24
Joined: Apr 11th, 2016
WICED Feather and VisualMicro
Apr 11th, 2016 at 4:50pm
Print Post  
I've been successful in installing, configuring and using the Arduino IDE with the new Adafruit WICED Feather board.  I cannot seem to get VS 2015 with VisualMicro to compile and upload.  I see all the same hardware, port and user code choices but it just doesn't work.

Anyone have success with the WICED feather?  Any ideas what I'm doing wrong and why I can't get them to work together?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: WICED Feather and VisualMicro
Reply #1 - Apr 11th, 2016 at 4:56pm
Print Post  
If you switch the toolbar from "debug/local windows debug" to "Release" does it then build okay?

Can you please post the error you see after compile. Switch on "Visual Micro>Verbose" then build and post or email the output.

And confirm which .json file or .zip you used to install the hardware

Thanks
« Last Edit: Apr 12th, 2016 at 12:18am by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
hack-o-holic
Junior Member
**
Offline


Posts: 24
Joined: Apr 11th, 2016
Re: WICED Feather and VisualMicro
Reply #2 - Apr 12th, 2016 at 12:25am
Print Post  
There is a drop down that says "Debug" and it has a choice for "Release".  There is also a second drop down for "Local Windows Debugger".  I assume you mean the first and when I changed to release, nothing was any different.  Still fails the same way with pages and pages of output in the Micro Build Output window.

Anything else I can check?

Here is the tremendously long error message.

Code
Select All
Compiling 'CJR_WICED_MPL3115A2_AIO_Test' for 'Adafruit WICED Feather'
Build folder: t/Adafruit_WICED_Arduino_feather
Summary: Header=1 Prototypes=5 Imports=5
Additional Defines:
Architecture Tools: 8.3-2014q1/bin/
GCC: 4.8.3
Sketchbook: file:\\\C:\Users\CJR\OneDrive\Documents\Arduino
Sketch Include Paths
Include Path 'C:\Users\CJR\OneDrive\Documents\Arduino\CJR_WICED_MPL3115A2_AIO_Test'
Core Include Paths
Include Path ores\maple'
Include Path ariants\feather'
.8.3-2014q1\bin\arm-none-eabi-g++"  -c -g -Os -w -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_feather -DVECT_TAB_BASE -DSTM32_HIGH_DENSITY -DERROR_LED_PORT=GPIOA -DERROR_LED_PIN=15 \cores\maple/libmaple" -w -x c++ -E -CC -DF_CPU=120000000L -DARDUINO=10607 -DARDUINO_STM32_FEATHER -DARDUINO_ARCH_STM32 -DMCU_STM32F205RG -mthumb -DSTM32F2       \cores\maple" \variants\feather" uit_WICED_Arduino_feather\CJR_WICED_MPL3115A2_AIO_Test.cpp" -o "nul"
.8.3-2014q1\bin\arm-none-eabi-g++"  -c -g -Os -w -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_feather -DVECT_TAB_BASE -DSTM32_HIGH_DENSITY -DERROR_LED_PORT=GPIOA -DERROR_LED_PIN=15 \cores\maple/libmaple" -w -x c++ -E -CC -DF_CPU=120000000L -DARDUINO=10607 -DARDUINO_STM32_FEATHER -DARDUINO_ARCH_STM32 -DMCU_STM32F205RG -mthumb -DSTM32F2       \cores\maple" \variants\feather" -I"C:\Users\CJR\OneDrive\Documents\Arduino\libraries\Adafruit_MQTT" pp" -o "nul"
.8.3-2014q1\bin\arm-none-eabi-g++"  -c -g -Os -w -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_feather -DVECT_TAB_BASE -DSTM32_HIGH_DENSITY -DERROR_LED_PORT=GPIOA -DERROR_LED_PIN=15 \cores\maple/libmaple" -w -x c++ -E -CC -DF_CPU=120000000L -DARDUINO=10607 -DARDUINO_STM32_FEATHER -DARDUINO_ARCH_STM32 -DMCU_STM32F205RG -mthumb -DSTM32F2       \cores\maple" \variants\feather" -I"C:\Users\CJR\OneDrive\Documents\Arduino\libraries\Adafruit_MQTT" lient.cpp" -o "nul"
.8.3-2014q1\bin\arm-none-eabi-g++"  -c -g -Os -w -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_feather -DVECT_TAB_BASE -DSTM32_HIGH_DENSITY -DERROR_LED_PORT=GPIOA -DERROR_LED_PIN=15 \cores\maple/libmaple" -w -x c++ -E -CC -DF_CPU=120000000L -DARDUINO=10607 -DARDUINO_STM32_FEATHER -DARDUINO_ARCH_STM32 -DMCU_STM32F205RG -mthumb -DSTM32F2       \cores\maple" \variants\feather" -I"C:\Users\CJR\OneDrive\Documents\Arduino\libraries\Adafruit_MQTT" uit_WICED_Arduino_feather\CJR_WICED_MPL3115A2_AIO_Test.cpp" -o "nul"
.8.3-2014q1\bin\arm-none-eabi-g++"  -c -g -Os -w -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_feather -DVECT_TAB_BASE -DSTM32_HIGH_DENSITY -DERROR_LED_PORT=GPIOA -DERROR_LED_PIN=15 \cores\maple/libmaple" -w -x c++ -E -CC -DF_CPU=120000000L -DARDUINO=10607 -DARDUINO_STM32_FEATHER -DARDUINO_ARCH_STM32 -DMCU_STM32F205RG -mthumb -DSTM32F2       \cores\maple" \variants\feather" -I"C:\Users\CJR\OneDrive\Documents\Arduino\libraries\Adafruit_MQTT" \libraries\AdafruitAIO" ibraries\AdafruitAIO\adafruit_aio.cpp" -o "nul"
.8.3-2014q1\bin\arm-none-eabi-g++"  -c -g -Os -w -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_feather -DVECT_TAB_BASE -DSTM32_HIGH_DENSITY -DERROR_LED_PORT=GPIOA -DERROR_LED_PIN=15 \cores\maple/libmaple" -w -x c++ -E -CC -DF_CPU=120000000L -DARDUINO=10607 -DARDUINO_STM32_FEATHER -DARDUINO_ARCH_STM32 -DMCU_STM32F205RG -mthumb -DSTM32F2       \cores\maple" \variants\feather" -I"C:\Users\CJR\OneDrive\Documents\Arduino\libraries\Adafruit_MQTT" \libraries\AdafruitAIO" ibraries\AdafruitAIO\adafruit_aio_feed.cpp" -o "nul"
.8.3-2014q1\bin\arm-none-eabi-g++"  -c -g -Os -w -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_feather -DVECT_TAB_BASE -DSTM32_HIGH_DENSITY -DERROR_LED_PORT=GPIOA -DERROR_LED_PIN=15 \cores\maple/libmaple" -w -x c++ -E -CC -DF_CPU=120000000L -DARDUINO=10607 -DARDUINO_STM32_FEATHER -DARDUINO_ARCH_STM32 -DMCU_STM32F205RG -mthumb -DSTM32F2       \cores\maple" \variants\feather" -I"C:\Users\CJR\OneDrive\Documents\Arduino\libraries\Adafruit_MQTT" - 

« Last Edit: Apr 14th, 2016 at 9:03pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
hack-o-holic
Junior Member
**
Offline


Posts: 24
Joined: Apr 11th, 2016
Re: WICED Feather and VisualMicro
Reply #3 - Apr 12th, 2016 at 12:35am
Print Post  
There is actually much more to the message but it exceeds the 8000 character limit and I don't see a way to attach a text file.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: WICED Feather and VisualMicro
Reply #4 - Apr 12th, 2016 at 10:25am
Print Post  
Hi, I have added the missing attach file option to this forum board thanks.

What you have posted is enough for now.

We just need to know where you downloaded the core from.

Thanks
  
Back to top
WWW  
IP Logged
 
hack-o-holic
Junior Member
**
Offline


Posts: 24
Joined: Apr 11th, 2016
Re: WICED Feather and VisualMicro
Reply #5 - Apr 12th, 2016 at 11:33am
Print Post  
The "core"?  If you mean the WICED setup files and libraries, I got them all straight from Adafruit via their WICED Feather tutorial on the learning system https://learn.adafruit.com/introducing-the-adafruit-wiced-feather-wifi.  Right away, I had issues with the I2C libraries and KTown and the other developers made some changes and had me pull new libraries from the dev branch.  See this thread over on the Adafruit forums.
http://forums.adafruit.com/viewtopic.php?f=57&t=93496#p470977.  Does that help answer your question?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: WICED Feather and VisualMicro
Reply #6 - Apr 12th, 2016 at 11:57am
Print Post  
The problem is that it takes time to read pages such as that and to find the url that leads us to the download.

So if you can please post the url for the download it will save me some pointless reading Smiley

Thanks
  
Back to top
WWW  
IP Logged
 
hack-o-holic
Junior Member
**
Offline


Posts: 24
Joined: Apr 11th, 2016
Re: WICED Feather and VisualMicro
Reply #7 - Apr 12th, 2016 at 12:56pm
Print Post  
Here is the direct link to the GitHub repo.  https://github.com/adafruit/Adafruit_WICED_Arduino/tree/development
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: WICED Feather and VisualMicro
Reply #8 - Apr 12th, 2016 at 7:21pm
Print Post  
Thanks I have tested it and it works fine if you switch the toolbar from "Debug/Local windows debugger" to "Release".

I will look at the debug options for the board, both serial debug and gdb if possible.

ps: A better compiler message has been added if debug is not support.
« Last Edit: Apr 12th, 2016 at 7:22pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
hack-o-holic
Junior Member
**
Offline


Posts: 24
Joined: Apr 11th, 2016
Re: WICED Feather and VisualMicro
Reply #9 - Apr 12th, 2016 at 8:33pm
Print Post  
Is this set how you want it?  See attachment.  I still get the giant error message.
« Last Edit: Apr 12th, 2016 at 9:06pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
hack-o-holic
Junior Member
**
Offline


Posts: 24
Joined: Apr 11th, 2016
Re: WICED Feather and VisualMicro
Reply #10 - Apr 12th, 2016 at 8:41pm
Print Post  
I just tried compliling the Blink sketch and like you said, it appears to compile.  Here is my sketch minus the personal info.  This compiles fine in Arduino IDE but fails spectacularly in VM.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
hack-o-holic
Junior Member
**
Offline


Posts: 24
Joined: Apr 11th, 2016
Re: WICED Feather and VisualMicro
Reply #11 - Apr 13th, 2016 at 2:20am
Print Post  
Decided to test some more with Blink.ino.  It does seem to compile but it gives a new error when you actually hook the Feather board up and try to compile AND upload the code.


admin edit: removed image and added error message:-

Quote:
Uploading to xyz on COMz
File not found or not a binary file
Upload complete


« Last Edit: Apr 14th, 2016 at 9:05pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: WICED Feather and VisualMicro
Reply #12 - Apr 13th, 2016 at 8:24pm
Print Post  
Hi,

I have the same results as the arduino ide.

Can you confirm you are using a recent version of visual micro. The version is shown in "tools>extensions & updates". There was a new arduino upload format introduced a couple of months ago.

Also switch on "Visual Micro>Verbose Messages" then try the upload and attach or email the output into x .txt (not screen shot). 

Thanks
  
Back to top
WWW  
IP Logged
 
hack-o-holic
Junior Member
**
Offline


Posts: 24
Joined: Apr 11th, 2016
Re: WICED Feather and VisualMicro
Reply #13 - Apr 14th, 2016 at 3:22pm
Print Post  
I am running version 1603.30.4.  I am running Arduino IDE version 1.6.7

I assume you do not have this hardware to test with and I wonder if that is why you can't see the same results.  I noticed that the upload process to this board looks completely different than it always has in the past using regular Uno compatible boards.  I know the setup and installation require Python etc so is something radically different going on to accomplish this upload?

  See the attached picture taken from the Adafruit WICED learning webpage and notice the orange text in the output window.  If this were working correctly in VS 2015 with VisualMicro, I would expect to see the same orange text with the same text based upload progress bars that I see when using the native IDE only.
  

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: WICED Feather and VisualMicro
Reply #14 - Apr 14th, 2016 at 7:11pm
Print Post  
Yes I see the same in Visual Micro as the Arduino Ide.

As requested previously it is important that you do the following:-

Quote:
switch on "Visual Micro>Verbose Messages" then try the upload and attach or email the output into x .txt (not screen shot).


Thanks
  
Back to top
WWW  
IP Logged
 
hack-o-holic
Junior Member
**
Offline


Posts: 24
Joined: Apr 11th, 2016
Re: WICED Feather and VisualMicro
Reply #15 - Apr 14th, 2016 at 7:25pm
Print Post  
I understand.  I'm at work without the device so took a shot with that last idea.  I'll get you the real data you request tonight.  Thanks!
  
Back to top
 
IP Logged
 
hack-o-holic
Junior Member
**
Offline


Posts: 24
Joined: Apr 11th, 2016
Re: WICED Feather and VisualMicro
Reply #16 - Apr 15th, 2016 at 2:43am
Print Post  
Here is the verbose output from my latest upload attempt of my own sketch.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
hack-o-holic
Junior Member
**
Offline


Posts: 24
Joined: Apr 11th, 2016
Re: WICED Feather and VisualMicro
Reply #17 - Apr 15th, 2016 at 2:54am
Print Post  
Here is the verbose output of the standard Blink sketch with the single addition of the #include <adafruit_Feather.h> statement.
  

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: WICED Feather and VisualMicro
Reply #18 - Apr 17th, 2016 at 4:43am
Print Post  
I think this is something to do with the switch to short file names during upload. This was implemented because some other hardware failed to work with long file names.

Please try the latest release of visual micro. Then place a text file called board.txt in the project folder (where the .ino is)

Put this in the file:-

Code
Select All
upload.8dot3=false 



Let me know it that fixes it. If it does I will add it to the stm32 defs of the next release

Can you also confirm if you have the pro version active? If not then let me know and I will get you a key. This test will only work is the pro license is enabled although the final solution will work in free and pro.

Thanks
« Last Edit: Apr 17th, 2016 at 4:44am by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
hack-o-holic
Junior Member
**
Offline


Posts: 24
Joined: Apr 11th, 2016
Re: WICED Feather and VisualMicro
Reply #19 - Apr 18th, 2016 at 1:55am
Print Post  
Not 100% sure what product you now call VM Pro.  I was a beta tester of the original debugger and received a license as a result of that.  I made sure to activate the license in my current VS 2015 with latest VM plugin.  I assume this means I am now using the latest "Pro" version.  It did not change anything with my results.

If my Debugger key is not the same as the "Pro" version, then please send me the key I need and I'll try again.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: WICED Feather and VisualMicro
Reply #20 - Apr 18th, 2016 at 2:37pm
Print Post  
Yes Pro and debug are the same. There is only one paid version even if you got it for free  Smiley
  
Back to top
WWW  
IP Logged
 
hack-o-holic
Junior Member
**
Offline


Posts: 24
Joined: Apr 11th, 2016
Re: WICED Feather and VisualMicro
Reply #21 - Apr 19th, 2016 at 11:39am
Print Post  
Ok just wanted to be sure.  That said, I ran my activated Visual Micro Pro using the properly edited board.txt file saved in the root directory with my sketch.  I see what appears to be the exact same results  as before.

What else can I try?  I doubt you have a WICED board to test with but did you setup the Arduino IDE properly for WICED per the Adafruit instructions I linked to Originally?

WICED BSP
https://learn.adafruit.com/introducing-the-adafruit-wiced-feather-wifi/get-the-w...

Windows Setup
https://learn.adafruit.com/introducing-the-adafruit-wiced-feather-wifi/windows-s...

Arduino IDE Setup
https://learn.adafruit.com/introducing-the-adafruit-wiced-feather-wifi/arduino-i...

I'm just trying to figure out what is different about my setup that allows you to get proper results but is causing me to have issues.  Cry 
« Last Edit: Apr 19th, 2016 at 11:43am by hack-o-holic »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: WICED Feather and VisualMicro
Reply #22 - Apr 19th, 2016 at 11:50am
Print Post  
Yes it's useful thanks. Please post the verbose upload statement after adding the board.txt property so i can see the difference.

It's a simple system. The last verbose command is the upload command and can be tested from a bat file.

For example when you posted the verbose previously the upload command was shown as this

Code
Select All
python C:\Users\[name]\OneDrive\DOCUME~1\Arduino\hardware\ADAFRU~1/tools/FEATHE~1/FEATHE~1.PY arduino_upgrade C:\Users\[name]\AppData\Local\Temp\VMICRO~1\Blink\ADAFRU~1/BLINKI~1.BIN 



I want to see it after adding the board.txt property. It should then look identical to what we see in the arduino ide when file>preferences>verbose is enabled.

If that still fails when both commands are the same then I can guess what the issue will be.

Hop[e this makes sense.
« Last Edit: Apr 19th, 2016 at 7:36pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
hack-o-holic
Junior Member
**
Offline


Posts: 24
Joined: Apr 11th, 2016
Re: WICED Feather and VisualMicro
Reply #23 - Apr 19th, 2016 at 7:25pm
Print Post  
Ok, I think I follow.  I placed the "board.txt" file with the "upload.8dot3=false" statement, into the Blink Example folder and Ran VMPro with Verbose on and set to "Release".  I attached the "BlinkVerboseVisualMicroPro_WithBoard.txt" showing my output.  It still shortens the names in that last statement.  I also took away the "Board.txt" file and ran again and attached the "BlinkVerboseVisualMicroPro_WithOutBoard.txt" file.

I did not attach any verbose output files from my own personal sketch because I don't think it ever makes it to that last python statement.

Lastly, I turned on all verbose options in the Arduino IDE and I do see that last python statement correctly no matter if I have the "board.txt" file in place or not. 

Note: It says I no longer have permission to attach files to this board so I am currently unable to attach my two text files with the verbose output.  Please advise. 
« Last Edit: Apr 19th, 2016 at 7:27pm by hack-o-holic »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: WICED Feather and VisualMicro
Reply #24 - Apr 19th, 2016 at 7:38pm
Print Post  
I see the missing upload I will rebuild the forum indexes to see if it fixes the problem.

Yes you are right the 8dot3 property does not relate to the arduino ide java system. It's a test visual micro property.

I only need to see the line(s) from the output similar to the one I posted immediately previous to your last posts.

Thanks
« Last Edit: Apr 19th, 2016 at 7:38pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
hack-o-holic
Junior Member
**
Offline


Posts: 24
Joined: Apr 11th, 2016
Re: WICED Feather and VisualMicro
Reply #25 - Apr 19th, 2016 at 7:59pm
Print Post  
Ok, here is that line from VMPro with the board.txt file in place.

python .PY arduino_upgrade C:\Users\CJR\AppData\Local\Temp\VMICRO~1\Blink\ADAFRU~1/BLINKI~1.BIN

Don't think you need this but here it is when the board.txt file is not there.

python .PY arduino_upgrade C:\Users\CJR\AppData\Local\Temp\VMICRO~1\Blink\ADAFRU~1/BLINKI~1.BIN


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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: WICED Feather and VisualMicro
Reply #26 - Apr 19th, 2016 at 8:05pm
Print Post  
Thanks. 

The test setting isn't being recognized because we would expect the ~ in the files names such as /FEATHE~1 to be expanded to their full name that might also contain spaces. Windows has the short 8.3 names and longer names for most files. The setting switches back to longer names (or should do).

Can you please switch on "tools>options>visual micro>compiler>show build properties". Then try to upload and copy/paste the output into an email and send it to me info [at] visualmicro.com

Thanks
  
Back to top
WWW  
IP Logged
 
hack-o-holic
Junior Member
**
Offline


Posts: 24
Joined: Apr 11th, 2016
Re: WICED Feather and VisualMicro
Reply #27 - Apr 19th, 2016 at 8:21pm
Print Post  
I already e-mailed.  Here is an attempt to attach the same text file.
  

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: WICED Feather and VisualMicro
Reply #28 - Apr 19th, 2016 at 10:00pm
Print Post  
Thanks.

Was this with the upload.8dot3=false setting?

Can you email the board.txt and also confirm it is in the same folder as the Blink.ino?

Thanks
  
Back to top
WWW  
IP Logged
 
hack-o-holic
Junior Member
**
Offline


Posts: 24
Joined: Apr 11th, 2016
Re: WICED Feather and VisualMicro
Reply #29 - Apr 20th, 2016 at 11:00am
Print Post  
Yes, I am running these tests with the board.txt file inside the Examples\Blink folder where the blink.ino resides.

To be sure, I created a new Arduino Project in my normal sketch folder, put the board.txt file in there and a renamed copy of the blink.ino.

I still see the truncated names in the output.  I have e-mailed the new output and my board.txt file as requested.

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: WICED Feather and VisualMicro
Reply #30 - Apr 20th, 2016 at 12:31pm
Print Post  
It looks to me like you are not using the latest visual micro. when you have a board.txt you should see the following verbose compiler output.

Code
Select All
Using project build property overrides from D:\Arduino\projects\Sketch1\board.txt
	tip: Overrides will remain for the board and session. Click 'Tools>Visual Micro>Reload toolchains' to clear all overrides (don't forget to rename or comment boards.txt)

Compiling debug version of 'Sketch1' for 'Arduino/Genuino Mega w/ ATmega2560 (Mega 2560)' 

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: WICED Feather and VisualMicro
Reply #31 - Apr 20th, 2016 at 1:16pm
Print Post  
Thanks for the screen shot of your visual micro version in tools>updates and extensions.

The "Installed" section that you looked at is the currently installed version.

If you click "Updates" or "Online" sections to the left then you will see the currently available version which is 1604.18

There should also be a little red flag at the top of the ide title bar when updates are available.

You asked about VS Update 2. Visual Micro doesn't mind which version of Visual Studio you are running.
« Last Edit: Apr 20th, 2016 at 1:36pm by Tim@Visual Micro »  

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: WICED Feather and VisualMicro
Reply #32 - Apr 20th, 2016 at 7:08pm
Print Post  
Thanks for all the info and note that you have upgraded all ide's

The uploader error that we now see appears to be NoBackendError('No backend available'). The full error is shown at the end of this message.

The command that visual micro runs to attempt the upload can be put in a .bat file. That is a text file with a .bat extension instead of .txt

You can put this command into a .bat and double click from windows explorer.
Code
Select All
"C:\Users\[name]ather_dfu.py" arduino_upgrade "C:\Users\[name]BlinkTest_VMPro.ino.bin"
pause
 



Please try to put the .bat into two places to see if each works

1) The folder where the arduino.exe is located. That is the arduino ide folder.
2) ather_dfu


Thanks very much

Code
Select All
python "C:\Users\[name]ather_dfu.py" arduino_upgrade "C:\Users\[name]BlinkTest_VMPro.ino.bin"
Upload failed
Traceback (most recent call last):
  File "C:\Users\[name]ather_dfu.py", line 71, in <module>
    cli()
  File "C:\Python27\lib\site-packages\click\core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "C:\Python27\lib\site-packages\click\core.py", line 696, in main
    rv = self.invoke(ctx)
  File "C:\Python27\lib\site-packages\click\core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "C:\Python27\lib\site-packages\click\core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "C:\Python27\lib\site-packages\click\core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "C:\Users\[name]ather_dfu.py", line 67, in arduino_upgrade
    sdep.enter_dfu()
  File "C:\Users\[name]ep.py", line 128, in enter_dfu
    if usb.core.find(idVendor=USB_VID, idProduct=USB_DFU_PID, backend=backend) is None:
  File "C:\Python27\lib\site-packages\usb\core.py", line 1263, in find
    raise NoBackendError('No backend available')
usb.core.NoBackendError: No backend available 

« Last Edit: Apr 20th, 2016 at 7:09pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
hack-o-holic
Junior Member
**
Offline


Posts: 24
Joined: Apr 11th, 2016
Re: WICED Feather and VisualMicro
Reply #33 - Apr 20th, 2016 at 7:16pm
Print Post  
Ok... latest update:
Updated, VS 2015 to Update 2.
Updated Arduino IDE to 1.6.8.
Updated VMPro to 1604.18.0
Re-enabled SAM Arm Cortex M3 in Arduino IDE
Downloaded and installed the latest WICED BSP 0.5.1

I am now able to upload the blink sketch to the WICED feather and I FINALLY see the correct output!  I've attached the output text file.

I am STILL Unable to compile/upload my custom sketch even though it does work in the Arduino IDE.  I'll attach that output also but think maybe it is a coding problem and am looking into it.  Maybe you can tell from the output?
  

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: WICED Feather and VisualMicro
Reply #34 - Apr 20th, 2016 at 7:30pm
Print Post  
Thanks for the info

If you create a new sketch and paste this into the .ino does it compile?

Code
Select All
/*********************************************************************
This is an example for our Feather WIFI modules

Pick one up today in the adafruit shop!

Adafruit invests time and resources providing this open source code,
please support Adafruit and open-source hardware by purchasing
products from Adafruit!

MIT license, check LICENSE for more information
All text above, and the splash screen below must be included in
any redistribution
*********************************************************************/

#include <Adafruit_MPL3115A2.h>
#include <adafruit_feather.h>
#include <adafruit_mqtt.h>
#include <adafruit_aio.h>

/* This sketch connects to the Adafruit IO server at io.adafruit.com
* and updates a 'PHOTOCELL_FEED' every 5 seconds.
*
* It also follow 'ONOFF_FEED' to receive updates from the AIO server via
* the built-in follow/subscribe callback handler.
*
* To run this demo
* 1. Change WLAN_SSID/WLAN_PASS
* 2. Decide whether you want to use TLS/SSL or not (USE_TLS)
* 3. Change AIO_USERNAME, AIO_KEY to match your own account details
* 4. If you want, change PHOTOCELL_FEED and ONOFF_FEED to use different feeds
* 5. Compile and run
* 6. Optionally log into the AIO webserver to see any changes in data, etc.
*/

#define WLAN_SSID         "yourSSID"
#define WLAN_PASS         "yourPass"

#define AIO_USERNAME      "...your AIO username (see https://accounts.adafruit.com)..."
#define AIO_KEY           "...your AIO key..."

// AdafruitAIO will auto append the "username/feeds/" prefix to your feed(s)
#define PHOTOCELL_FEED     "photocell"
#define ONOFF_FEED         "onoff"

// Connect using TLS/SSL or not
#define USE_TLS             0

// Uncomment to set your own ClientID, otherwise a random ClientID is used
//#define CLIENTID          "Adafruit Feather"

AdafruitAIO       aio(AIO_USERNAME, AIO_KEY);
AdafruitAIOFeed   photocell(&aio, PHOTOCELL_FEED);
AdafruitAIOFeed   onoff(&aio, ONOFF_FEED);

int value = 0;

/**************************************************************************/
/*!
@brief  The setup function runs once when the board comes out of reset
*/
/**************************************************************************/
void setup()
{
	Serial.begin(115200);

	// Wait for the USB serial port to connect. Needed for native USB port only
	while (!Serial) delay(1);

	Serial.println("AIO Test Example\r\n");

	// Print all software versions
	Feather.printVersions();

	while (!connectAP())
	{
		delay(500); // delay between each attempt
	}

	// Connected: Print network info
	Feather.printNetwork();

	// Tell the MQTT client to auto print error codes and halt on errors
	aio.err_actions(true, true);

	// Set ClientID if defined
#ifdef CLIENTID
	aio.clientID(CLIENTID);
#endif

	Serial.print("Connecting to io.adafruit.com ... ");
	if (USE_TLS)
	{
		aio.connectSSL(); // Will halted if an error occurs
	}
	else
	{
		aio.connect(); // Will halted if an error occurs
	}
	Serial.println("OK");

	// 'Follow' the onoff feed to capture any state changes
	onoff.follow(feed_callback);
}

/**************************************************************************/
/*!
@brief  This loop function runs over and over again
*/
/**************************************************************************/
void loop()
{
	value = (value + 1) % 100;

	Serial.print("Updating feed " PHOTOCELL_FEED " : ");
	Serial.print(value);
	photocell.print(value);
	Serial.println(" ... OK");

	delay(5000);
}

/**************************************************************************/
/*!
@brief  'follow' event callback handler

@param  message    The new value associated with this feed

@note   'message' is a UTF8String (byte array), which means
it is not null-terminated like C-style strings. You can
access its data and len using .data & .len, although there is
also a Serial.print override to handle UTF8String data types.
*/
/**************************************************************************/
void feed_callback(UTF8String message)
{
	// Print message
	Serial.print("[ONOFF Feed] : ");
	Serial.println(message);
}

/**************************************************************************/
/*!
@brief  Connect to defined Access Point
*/
/**************************************************************************/
bool connectAP(void)
{
	// Attempt to connect to an AP
	Serial.print("Please wait while connecting to: '" WLAN_SSID "' ... ");

	if (Feather.connect(WLAN_SSID, WLAN_PASS))
	{
		Serial.println("Connected!");
	}
	else
	{
		Serial.printf("Failed! %s (%d)", Feather.errstr(), Feather.errno());
		Serial.println();
	}
	Serial.println();

	return Feather.connected();
} 



If not please post the output

thanks
  
Back to top
WWW  
IP Logged
 
hack-o-holic
Junior Member
**
Offline


Posts: 24
Joined: Apr 11th, 2016
Re: WICED Feather and VisualMicro
Reply #35 - Apr 20th, 2016 at 8:43pm
Print Post  
I'm sure dumb question but am I to replace [Name] with CJR or is that purposefully a wildcard in the statement for the batch file?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: WICED Feather and VisualMicro
Reply #36 - Apr 20th, 2016 at 9:04pm
Print Post  
Yes thats right, I don't publish any user data so I changed CJR to [name]
« Last Edit: Apr 20th, 2016 at 9:04pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
hack-o-holic
Junior Member
**
Offline


Posts: 24
Joined: Apr 11th, 2016
Re: WICED Feather and VisualMicro
Reply #37 - Apr 23rd, 2016 at 7:52pm
Print Post  
Just getting back to this troubleshooting...

In response to your request in #32... I created your batch file, edited out [name] and ran in both locations.  I get the same results in both places and I'll post inside this reply.  I looked and for some reason, the python script it is looking for truly DOES NOT exist there.  I looked back in the same folder from before I recently downloaded the latest BSP from their Git repo and that python file IS indeed there.  Not sure why it is no longer included in their source unless I need to walk back through their installation instructions and maybe one of the steps creates that file?

_Arduino/tools/feather_dfu/feather_dfu.py" arduino_upgrade Arduino_feather/BlinkTest_VMPro.ino.bin"
ls/feather_dfu/feather_dfu.py"' is not recognized as an internal or external command,
operable program or batch file.

\feather_dfu>pause
Press any key to continue . . .
  
Back to top
 
IP Logged
 
hack-o-holic
Junior Member
**
Offline


Posts: 24
Joined: Apr 11th, 2016
Re: WICED Feather and VisualMicro
Reply #38 - Apr 23rd, 2016 at 8:22pm
Print Post  
In response to #34, I copied your code into a new Arduino Project and it failed about the same as my own custom sketch fails.  See output attached..
  

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: WICED Feather and VisualMicro
Reply #39 - Apr 23rd, 2016 at 11:19pm
Print Post  
Thanks for the files. 

I can see one problem and I think this is a change in the arduino ide and I will look into the correct solution.

The problem is that you have installed the Adafruit_MQTT\Adafruit_MQTT_Client library via library manager or by adding it manually/unzipped into the sketchbook library folder "documents\arduino\libraries"

However the feather hardware core comes with Adafruit_MQTT library and currently the way things work is that you can override and create special version of the core libraries by placing them in the sketchbook libraries folder.

So the solution is to delete the "C:\Users\CJR\OneDrive\Documents\Arduino\libraries\Adafruit_MQTT" then click "Tools>Visual Micro>Reload toolchains" or restart the ide.

Then we should be able to see the upload issue.
  
Back to top
WWW  
IP Logged
 
hack-o-holic
Junior Member
**
Offline


Posts: 24
Joined: Apr 11th, 2016
Re: WICED Feather and VisualMicro
Reply #40 - Apr 24th, 2016 at 1:14am
Print Post  
Ok, as you said, I had the Adafruit MQTT library manually installed.  I deleted that folder and then Reloaded toolchains as you said and got the following output which I will attach.

Tried to attach my txt file but said I didn't have the right to upload.  I'll e-mail text file.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: WICED Feather and VisualMicro
Reply #41 - Apr 24th, 2016 at 12:49pm
Print Post  
Thanks for the output and good to see it is working cleanly now.

Actually the problem you had in your previous post was that the board was set to the Arduino Yun because the system was confused after the install changes. It sorted itself out after restarting the ide or by re-selecting the board on the tool bar. This doesn't happen often, sometimes after changing install/config, a fix is being worked on at the moment.

You can see this in the original compile for the Arduino Yun which is always the first board in the list. It wasn't easy to see because you had the diagnostics switched on:-

Code
Select All
Compiling 'WICED_MPL3115A2_AIO_Test' for 'Arduino Yún' 



Then when it worked you could see this:-

Code
Select All
Compiling 'WICED_MPL3115A2_AIO_Test' for 'Adafruit WICED Feather' 



Installing the MQTT lib certainly caused the last compile error because it overrode the mqtt that is installed with the feather config. I will look into if the rules should have changed in that area or not.

One thing that strikes me is that now you have reinstalled your arduino and I assume your feather hardware config the uploader statement has completely changed.

Where previously it was making a python call now it runs the feather_dfu.exe so this might be an indication that the toolchain is still developing. I will try to get hold of a board and monitor its progress. 

Code
Select All
Uploading via Bootloader
C:\Users\[your_name]her_dfu\feather_dfu.exe -u "C:\Users\[your_name]util/dfu-util-static.exe" arduino_upgrade "C:\Users\[your_name]\AppData\Local\Temp\VMicroBuilds\[your_name]_WICED_MPL3115A2_AIO_Test\Adafruit_WICED_Arduino_feather/[your_name]_WICED_MPL3115A2_AIO_Test.ino.bin"
dfu-util 0.8 



One last question

Can you confirm if you have the board.txt setting for upload.8dot3=false? If so does it still upload okay if you set upload.8dot3=true

Thanks very much and well done for persisting.
« Last Edit: Apr 24th, 2016 at 1:11pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
hack-o-holic
Junior Member
**
Offline


Posts: 24
Joined: Apr 11th, 2016
Re: WICED Feather and VisualMicro
Reply #42 - Apr 24th, 2016 at 1:58pm
Print Post  
The toolchains are definitely still in active development.

I verified that I was still set to "upload.8dot3=false".  I changed to "upload.8dot3=true" and it still works just fine!  I'm going to just eliminate the board.txt files from now on as I don't think I need them now that we are done troubleshooting.

Thank you for all your help and communication on this problem.  It is sooo nice to be back in the superior VisualMicro environment compared to the Arduino IDE!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: WICED Feather and VisualMicro
Reply #43 - Apr 24th, 2016 at 2:27pm
Print Post  
That's useful to hear it works with default config (ie: without board.txt)

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