Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
More woes with Pololu A-Star 32U4 (Read 519 times)
Harrzack
Member
***
Offline



Posts: 124
Lindenwold, NJ USA
More woes with Pololu A-Star 32U4
Oct 31st, 2018 at 11:57am
 
I've recently begun using the Pololu A-Star 32U4 board.  I believe this is also similar to the SparkFun Pro Micro (32U4 processor).  I read the long exchange with FrankP and am wondering if there are some similarities in the probs working with that processor and VM.

Pololu has a compatibility library that allows the Arduino IDE to be used with their board.  It is first installed thru the IDE and adding the link in the IDE Preferences (https://files.pololu.com/arduino/package_pololu_index.json) for additional boards.
And it all works well with the Arduino IDE.

So next I get Visual Studio 2017 working, and have the latest VM installed, and all seems well until I try and compile a test script that does NOT have the VM debug enabled.  I get the weird msg below (which I posted earlier).

Now my long project is close to being done and so I wanted to compile with no debugger - so I turned it off, and low and behold that same weird message shows up!  AND - the upload sometimes works, sometimes doesn't.

I've gone to Pololu about this and they say they have never seen such a message and are saying it must be VM.  After the problems FrankP had with a 32U4 I'm wondering if there is something about the boot loader for the 32U4 use that makes VM unhappy.

Currently I'm running in VS2017 in debug mode, but have to go to the straight Arduino to do a no-debug compile.  Which isn't so bad but it does seem something is up.

------------------------
Code:
Compiling 'ConstantSpeed-avr' for 'Pololu A-Star 32U4'
Program size: 8,224 bytes (used 29% of a 28,672 byte maximum) (0.85 secs)
Minimum Memory Usage: 447 bytes (17% of a 2560 byte maximum)

Uploading 'ConstantSpeed-avr' to 'Pololu A-Star 32U4' using 'COM10'
	The upload process has finished. via 'COM11'
Connecting to programmer: .
Found programmer: Id = "CATERIN"; type = S
    Software Version = 1.0; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=128 bytes.
Programmer supports the following devices:
    Device code: 0x44 

Back to top
« Last Edit: Oct 31st, 2018 at 11:58am by Harrzack »  
WWW  
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10155
United Kingdom
Re: More woes with Pololu A-Star 32U4
Reply #1 - Oct 31st, 2018 at 12:58pm
 
Do you get the same upload issue if you switch to the "No Ide" option?

Please remember to post verbose outputs with "show build properties" when you have compile or upload issues. This avoids the need to ask what you have installed.
Back to top
 
WWW  
IP Logged
 
Harrzack
Member
***
Offline



Posts: 124
Lindenwold, NJ USA
Re: More woes with Pololu A-Star 32U4
Reply #2 - Oct 31st, 2018 at 4:19pm
 
Ok Tim - I've enclosed the output from three runs.  The "No IDE" couldn't find the extras for the Pololu chip.
Hope this will help...   =A.
Back to top
 

textFiles.zip (16 KB | )
WWW  
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10155
United Kingdom
Re: More woes with Pololu A-Star 32U4
Reply #3 - Oct 31st, 2018 at 9:23pm
 
I don't see any issue in any of your files except the "no ide" option

One of your files shows an upload attempt. Here is your output showing the upload worked.

Code:
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avrdude "-CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf" -v -patmega32u4 -cavr109 "-PCOM14" -b57600 -D "-Uflash:w:C:\Users\AVR\AppData\Local\Temp\VMBuilds\CICStepper\pololu-a-star_a-star32U4\Debug/CICStepper.ino.hex:i"
avrdude: Version 6.3-20171130
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch
         System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
         Using Port                    : COM14
         Using Programmer              : avr109
         Overriding Baud Rate          : 57600
         AVR Part                      : ATmega32U4
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PA0
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  9000  9000 0x00 0x00
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
         Programmer Type : butterfly
         Description     : Atmel AppNote AVR109 Boot Loader
Connecting to programmer: .
Found programmer: Id = "CATERIN"; type = S
    Software Version = 1.0; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=128 bytes.
Programmer supports the following devices:
    Device code: 0x44
avrdude: devcode selected: 0x44
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% -0.00s
avrdude: Device signature = 0x1e9587 (probably m32u4)
avrdude: safemode: lfuse reads as FF
avrdude: safemode: hfuse reads as D0
avrdude: safemode: efuse reads as C8
avrdude: reading input file "C:\Users\AVR\AppData\Local\Temp\VMBuilds\CICStepper\pololu-a-star_a-star32U4\Debug/CICStepper.ino.hex"
avrdude: writing flash (17584 bytes):
Writing | ################################################## | 100% 1.30s
avrdude: 17584 bytes of flash written
avrdude: verifying flash memory against C:\Users\AVR\AppData\Local\Temp\VMBuilds\CICStepper\pololu-a-star_a-star32U4\Debug/CICStepper.ino.hex:
avrdude: load data flash data from input file C:\Users\AVR\AppData\Local\Temp\VMBuilds\CICStepper\pololu-a-star_a-star32U4\Debug/CICStepper.ino.hex:
avrdude: input file C:\Users\AVR\AppData\Local\Temp\VMBuilds\CICStepper\pololu-a-star_a-star32U4\Debug/CICStepper.ino.hex contains 17584 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 0.14s
avrdude: verifying ...
avrdude: 17584 bytes of flash verified
avrdude: safemode: lfuse reads as FF
avrdude: safemode: hfuse reads as D0
avrdude: safemode: efuse reads as C8
avrdude: safemode: Fuses OK (E:C8, H:D0, L:FF)
avrdude done.  Thank you.
	The upload process has finished. via 'COM14' 

Back to top
 
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print