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....
  • 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
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Pololu A-Star 328PB bootloader + VM (Read 540 times)
paulsoulsby
Newbies
*
Offline



Posts: 6
Pololu A-Star 328PB bootloader + VM
Apr 6th, 2020 at 12:29pm
 
Hi - I'm using an Atmega328PB with the Pololu A-Star 328PB bootloader installed.  5V 16Mhz. https://www.pololu.com/docs/0J74
From Arduino 1.8.12 I can upload without any issue.  Here's the verbose log:
Quote:
C:\Users\info\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-ardui
no17/bin/avrdude -CC:\Users\info\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-ard
uino17/etc/avrdude.conf -C+C:\Users\info\AppData\Local\Arduino15\packages\pololu-a-star\hardware\avr\4.0
.2/extra_avrdude.conf -v -patmega328pb -carduino -PCOM10 -b115200 -D -Uflash:w:C:\Users\info\AppData\Local\Temp\arduino_build_2563/Blink.ino.hex:i

avrdude: Version 6.3-20190619
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Users\info\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-ardu
ino17/etc/avrdude.conf"
         Additional configuration file is "C:\Users\info\AppData\Local\Arduino15\packages\pololu-a-star\hardware\avr\4.0.2
/extra_avrdude.conf"
avrdude: warning at C:\Users\info\AppData\Local\Arduino15\packages\pololu-a-star\hardware\avr\4.0.2/
extra_avrdude.conf:1: part m328pb overwrites previous definition C:\Users\info\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-ardui
no17/etc/avrdude.conf:8802.

         Using Port                    : COM10
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
         AVR Part                      : ATmega328PB
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC2
         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  3600  3600 0xff 0xff
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
           lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           lock           0     0     0    0 no          1    0      0  4500  4500 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 : Arduino
         Description     : Arduino
         Hardware Version: 3
         Firmware Version: 4.4
         Vtarget         : 0.3 V
         Varef           : 0.3 V
         Oscillator      : 28.800 kHz
         SCK period      : 3.3 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9516 (probably m328pb)
avrdude: reading input file "C:\Users\info\AppData\Local\Temp\arduino_build_2563/Blink.ino.hex"
avrdude: writing flash (1152 bytes):

Writing | ################################################## | 100% 0.29s

avrdude: 1152 bytes of flash written
avrdude: verifying flash memory against C:\Users\info\AppData\Local\Temp\arduino_build_2563/Blink.ino.hex:
avrdude: load data flash data from input file C:\Users\info\AppData\Local\Temp\arduino_build_2563/Blink.ino.hex:
avrdude: input file C:\Users\info\AppData\Local\Temp\arduino_build_2563/Blink.ino.hex contains 1152 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.38s

avrdude: verifying ...
avrdude: 1152 bytes of flash verified

avrdude done.  Thank you.


However when I use VM, I get the following error: "avrdude: no programmer has been specified on the command line or the config file"
Here's the verbose log:
Quote:
C:\Users\info\AppData\Local\arduino15\packages\arduino\tools\avrdude\6.3.0-ardui
no17\bin\avrdude "-CC:\Users\info\AppData\Local\arduino15\packages\arduino\tools\avrdude\6.3.0-ar
duino17/etc/avrdude.conf" "-C+C:\Users\info\AppData\Local\arduino15\packages\pololu-a-star\hardware\avr\4.
0.2/extra_avrdude.conf" -v {upload.verify} -patmega328pb -carduino "-PCOM10" -b115200 -D "-Uflash:w:C:\Users\info\AppData\Local\Temp\VMBuilds\SsAtxYm\POLOLU~1\Release/Ss
AtxYm.ino.hex:i"
avrdude: Version 6.3-20190619
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch
         System wide configuration file is "C:\Users\info\AppData\Local\arduino15\packages\arduino\tools\avrdude\6.3.0-ardu
ino17/etc/avrdude.conf"
         Additional configuration file is "C:\Users\info\AppData\Local\arduino15\packages\pololu-a-star\hardware\avr\4.0.2
/extra_avrdude.conf"
avrdude: warning at C:\Users\info\AppData\Local\arduino15\packages\pololu-a-star\hardware\avr\4.0.2/
extra_avrdude.conf:1: part m328pb overwrites previous definition C:\Users\info\AppData\Local\arduino15\packages\arduino\tools\avrdude\6.3.0-ardui
no17/etc/avrdude.conf:8802.
The uploader process failed
avrdude: no programmer has been specified on the command line or the config file
         Specify a programmer using the -c option and try again


The avrdude commands on both look virtually the same to me. Any ideas where the problem lies? Thanks.
Back to top
 
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline



Posts: 524
Re: Pololu A-Star 328PB bootloader + VM
Reply #1 - Apr 6th, 2020 at 1:38pm
 
I have installed the same board package, but I am struggling to get the same error at present.

Can you attach the additional information shown in the yellow box at the top so we can investigate and replicate further?
Back to top
 
 
IP Logged
 
paulsoulsby
Newbies
*
Offline



Posts: 6
Re: Pololu A-Star 328PB bootloader + VM
Reply #2 - Apr 6th, 2020 at 2:33pm
 
Here it is (attached).  The code is just blink copied and pasted into a blank project (for Atmega328PB 5V 16Mhz). thanks.
Back to top
« Last Edit: Apr 6th, 2020 at 9:36pm by paulsoulsby »  

Please Register or Login to the Forum to see File Attachments
 
IP Logged
 
paulsoulsby
Newbies
*
Offline



Posts: 6
Re: Pololu A-Star 328PB bootloader + VM
Reply #3 - Apr 7th, 2020 at 2:18pm
 
Did you manage to see anything in the text file?  I've looked and looked through it and can't see anything problematic!  I need to use VM for my project rather than Arduino because I have defines in the project properties. thanks.
Back to top
 
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline



Posts: 524
Re: Pololu A-Star 328PB bootloader + VM
Reply #4 - Apr 7th, 2020 at 4:44pm
 
Nothing has stood out so far, would it be possible to try updating to the latest version of Visual Micro and then see if this improves?

It appears to be the upload.verify parameter is missing, though it is specified in the core's platform.txt properties, and on my machine the parameter is merged in correctly.
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10895
United Kingdom
Re: Pololu A-Star 328PB bootloader + VM
Reply #5 - Apr 7th, 2020 at 9:58pm
 
The verbose property is relatively new and toolchains are support to provide both a default setting for it. This one doesn't so we will look at forcing one.

Please add a board.txt to the project with this in it:-

Code:
upload.verify= 

Back to top
 

Tim Leek
home
WWW  
IP Logged
 
paulsoulsby
Newbies
*
Offline



Posts: 6
Re: Pololu A-Star 328PB bootloader + VM
Reply #6 - Apr 8th, 2020 at 2:36pm
 
Hi - yes adding that board.txt file worked perfectly thanks Smiley  all uploading as normal now.
I've updated to latest version of VM too now.
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10895
United Kingdom
Re: Pololu A-Star 328PB bootloader + VM
Reply #7 - Apr 8th, 2020 at 4:34pm
 
Ah, thanks. The next release will add the property automatically if missing.
Back to top
« Last Edit: Apr 8th, 2020 at 6:30pm by Visual Micro »  

Tim Leek
home
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print