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 Setting fuses with visual micro (Read 3901 times)
Fuk
Newbies
*
Offline


Posts: 3
Joined: Apr 19th, 2017
Setting fuses with visual micro
Apr 19th, 2017 at 5:05pm
Print Post  
Hi all, I'm new to this board.

using blank atmega, and icsp programmer.
Now I must burn bootloader - which sets fuses (as per boards.txt)

I don't want to use bootloader, just set the fuses when uploading my sketch.

Thanks for help
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Setting fuses with visual micro
Reply #1 - Apr 19th, 2017 at 5:29pm
Print Post  
If you are asking how you upload a sketch using a programmer and without a bootloader then click vMicro>uploader and set both a programmer in addition to enabling "always use programmer for upload". Then all of the upload commands will use the programmer instead of the serial/usb bootloader

If you want to make custom arduino events that run before an upload you can use an arduino build hook called hooks.deploy.preupload

If using the vmicro menu is cumbersome there is a "Micro Programmers" tool bar that can be displayed by right clicking the blank area of any tool strip in the IDE

Does this answer the question?



« Last Edit: Apr 19th, 2017 at 5:30pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Fuk
Newbies
*
Offline


Posts: 3
Joined: Apr 19th, 2017
Re: Setting fuses with visual micro
Reply #2 - Apr 20th, 2017 at 7:23am
Print Post  
Hello Tim, thanks for reply. I'm not sure that i've explained my problem clearly.

I want to set fuses in a single step together with uploading my sketch. With a programmer to a blank mcu.
Now the only way to do so is burning bootloader, (which i dont need) and then overwrite the memory with my sketch.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Setting fuses with visual micro
Reply #3 - Apr 20th, 2017 at 7:35am
Print Post  
The programmer allows you to upload a sketch to a blank mcu without need for bootloader. Can you explain why you also need to burn fuses? Sorry for my lack of understanding.

If you really do need this then the hooks are the only way because they require a separate operation(s) to the upload.
  
Back to top
WWW  
IP Logged
 
Fuk
Newbies
*
Offline


Posts: 3
Joined: Apr 19th, 2017
Re: Setting fuses with visual micro
Reply #4 - Apr 20th, 2017 at 7:49am
Print Post  
Agree, I do burn sketch to a controller with a programmer. Bootloader not needed.

But I need to set fuses as well. I can do so by burning bootloader, but this is one step more, which i wanted to avoid.

As I understood the only way is hooks.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Setting fuses with visual micro
Reply #5 - Apr 20th, 2017 at 2:39pm
Print Post  
Yes but shouldn't be too difficult. 

Another alternative might be to use atmel studio with visual micro. There is a programmer in the list in atmel studio called "Atmel Device Programming". This causes visual micro to hand over to the atmel tools for upload. I don't know if that will help you, the hooks might be a more seamless solution, however it was worth a mention.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint