VS Arduino
Visual Micro >> General Board >> More woes with Pololu A-Star 32U4
https://www.visualmicro.com/forums/YaBB.pl?num=1540987054

Message started by Harrzack on Oct 31st, 2018 at 11:57am

Title: More woes with Pololu A-Star 32U4
Post by Harrzack on 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[/code]

Title: Re: More woes with Pololu A-Star 32U4
Post by Visual Micro on 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.

Title: Re: More woes with Pololu A-Star 32U4
Post by Harrzack on 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.
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=textFiles.zip ( 16 KB | 0 Downloads )

Title: Re: More woes with Pololu A-Star 32U4
Post by Visual Micro on 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'[/code]

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.