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 STK500 (Read 791 times)
orion
Newbies
*
Offline


Posts: 3
Joined: Dec 30th, 2019
STK500
Jun 6th, 2023 at 9:39am
Print Post  
Hi there,

I'm using VS 2022 and a STK500 programmer. I'm mainly working with an ATmega2560 and at the moment I'm experimenting with the bootloader function. I would like to know if there is any chance to adjust the settings like fuse bits and lock bits.
Which file is used by VMicro for the initial settings and can I, in case it's not possible to change the values within the VMicro environment, replace the bootloader file with another one?
If so, where is it located?

Thanks
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Online


Posts: 2499
Joined: Feb 13th, 2019
Re: STK500
Reply #1 - Jun 6th, 2023 at 10:01am
Print Post  
If you enable the vMicro > Compiler > Show Build Properties and perform a build this will show all settings which are merged together to form the bootloader pattern.

If you search the output for "fuse" and "lock" you will see a number of settings:
bootloader.unlock_bits=0x3F
bootloader.lock_bits=0x0F

bootloader.low_fuses=0xFF
menu.cpu.atmega2560.bootloader.high_fuses=0xD8
menu.cpu.atmega2560.bootloader.extended_fuses=0xFD

tools.avrdude.bootloader.pattern="{cmd.path}" "-C{config.path}" {bootloader.verbose} -p{build.mcu} -c{protocol} {program.extra_params} "-Uflash:w:{runtime.platform.path}/bootloaders/{bootloader.file}:i" -Ulock:w:{bootloader.lock_bits}:m


If you add a local board.txt to your project from vMicro > Add Code > Add Local board.txt you can paste in the entries you wish to override, and then perform the action again.

Tip: Enable vMicro > Uploader > Verbose, and try to burn the bootloader with the board disconnected so you can review the final resulting command before performing the burn to your board
« Last Edit: Jun 6th, 2023 at 10:03am by Simon@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint