Visual Micro
https://www.visualmicro.com/forums/YaBB.pl
Visual Micro >> Atmel Studio 7.0 >> Pololu A-Star 328PB bootloader + VM
https://www.visualmicro.com/forums/YaBB.pl?num=1586172582

Message started by paulsoulsby on Apr 6th, 2020 at 12:29pm

Title: Pololu A-Star 328PB bootloader + VM
Post by paulsoulsby on 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-arduino17/bin/avrdude -CC:\Users\info\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/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-arduino17/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-arduino17/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-arduino17\bin\avrdude "-CC:\Users\info\AppData\Local\arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/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/SsAtxYm.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-arduino17/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-arduino17/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.

Title: Re: Pololu A-Star 328PB bootloader + VM
Post by Simon Hopkinson on 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?

Title: Re: Pololu A-Star 328PB bootloader + VM
Post by paulsoulsby on 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.
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=verbose_009.txt (31 KB | 19 )

Title: Re: Pololu A-Star 328PB bootloader + VM
Post by paulsoulsby on 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.

Title: Re: Pololu A-Star 328PB bootloader + VM
Post by Simon Hopkinson on 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.

Title: Re: Pololu A-Star 328PB bootloader + VM
Post by Visual Micro on 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=[/code]

Title: Re: Pololu A-Star 328PB bootloader + VM
Post by paulsoulsby on Apr 8th, 2020 at 2:36pm
Hi - yes adding that board.txt file worked perfectly thanks :)  all uploading as normal now.
I've updated to latest version of VM too now.

Title: Re: Pololu A-Star 328PB bootloader + VM
Post by Visual Micro on Apr 8th, 2020 at 4:34pm
Ah, thanks. The next release will add the property automatically if missing.

Visual Micro » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2021. All Rights Reserved.