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
Normal Topic Pololu A-Star 328PB bootloader + VM (Read 3454 times)
paulsoulsby
Newbies
*
Offline


Posts: 6
Joined: Jun 21st, 2018
Pololu A-Star 328PB bootloader + VM
Apr 6th, 2020 at 11:29am
Print Post  
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:
no17/bin/avrdude uino17/etc/avrdude.conf .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 ino17/etc/avrdude.conf"
         Additional configuration file is /extra_avrdude.conf"
avrdude: warning at extra_avrdude.conf:1: part m328pb overwrites previous definition 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:

no17\bin\avrdude duino17/etc/avrdude.conf" 0.2/extra_avrdude.conf" -v {upload.verify} -patmega328pb -carduino "-PCOM10" -b115200 -D 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 ino17/etc/avrdude.conf"
         Additional configuration file is /extra_avrdude.conf"
avrdude: warning at extra_avrdude.conf:1: part m328pb overwrites previous definition 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: 2145
Joined: Feb 13th, 2019
Re: Pololu A-Star 328PB bootloader + VM
Reply #1 - Apr 6th, 2020 at 12:38pm
Print Post  
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
Joined: Jun 21st, 2018
Re: Pololu A-Star 328PB bootloader + VM
Reply #2 - Apr 6th, 2020 at 1:33pm
Print Post  
Here it is (attached).  The code is just blink copied and pasted into a blank project (for Atmega328PB 5V 16Mhz). thanks.
« Last Edit: Apr 6th, 2020 at 8:36pm by paulsoulsby »  

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


Posts: 6
Joined: Jun 21st, 2018
Re: Pololu A-Star 328PB bootloader + VM
Reply #3 - Apr 7th, 2020 at 1:18pm
Print Post  
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: 2145
Joined: Feb 13th, 2019
Re: Pololu A-Star 328PB bootloader + VM
Reply #4 - Apr 7th, 2020 at 3:44pm
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Pololu A-Star 328PB bootloader + VM
Reply #5 - Apr 7th, 2020 at 8:58pm
Print Post  
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
Select All
upload.verify= 

  
Back to top
WWW  
IP Logged
 
paulsoulsby
Newbies
*
Offline


Posts: 6
Joined: Jun 21st, 2018
Re: Pololu A-Star 328PB bootloader + VM
Reply #6 - Apr 8th, 2020 at 1:36pm
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Pololu A-Star 328PB bootloader + VM
Reply #7 - Apr 8th, 2020 at 3:34pm
Print Post  
Ah, thanks. The next release will add the property automatically if missing.
« Last Edit: Apr 8th, 2020 at 5:30pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint