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 Build/burn AVR bootloader with VS/VM ? (Read 6451 times)
stevech
Member
***
Offline


Posts: 147
Location: So. Calif. US
Joined: Jun 16th, 2013
Build/burn AVR bootloader with VS/VM ?
Dec 11th, 2014 at 5:57pm
Print Post  
I have a wireless-capable bootloader that I wrote.
Currently, I have to use a Windows command window to run compile via ye ole makefile. Then I go into VS/VM to run the Atmel JTAGICE software to burn the .hex for the bootloader to boards.

Anyone know how to get VS/VM to use the makefile to do the build?

Better yet would be to setup a project in VS/VM that would also compile per project settings so I could eliminate the antique makefile. There are 3 build target chip-types, all AVR.

The makefile method works but it's so 1980's.

TIA
steve
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Build/burn AVR bootloader with VS/VM ?
Reply #1 - Dec 12th, 2014 at 11:47am
Print Post  
Why can't you just use a native atmel studio project? What benefit is VM in this scenario?

Thanks
  
Back to top
WWW  
IP Logged
 
stevech
Member
***
Offline


Posts: 147
Location: So. Calif. US
Joined: Jun 16th, 2013
Re: Build/burn AVR bootloader with VS/VM ?
Reply #2 - Dec 13th, 2014 at 6:39am
Print Post  
er, I dunno!

I've not tried to do a bootloader compile using AStudio either!  
I was thinking of how to get project properties in VS/VM arranged to do a boot compile (origin in flash) and not use a makefile.

One hangup is that apparently, STILL, the mega1284p requires its own core files. I would have thought that by now, #ifdef's in the standard core files would accommodate that years old part, for both bootloader and main.
« Last Edit: Dec 13th, 2014 at 6:42am by stevech »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Build/burn AVR bootloader with VS/VM ?
Reply #3 - Dec 13th, 2014 at 12:47pm
Print Post  
Maybe I haven't understood correctly.

You can burn any bootloader as long as it is in the correct location

You can use any arduino compatible core as long as it is in the correct location

Visual Micro supports the arduino 3rd party build process + teensy build + some extra stuff on top of that.

It's probably worth investigating how to create your own boards.txt, platform.txt and programmer.txt which are all part of the 3rd party build processes.

Take a look at arduinoide/hardware/arduino/sam/ or arduinoide/hardware/arduino/avr

Thanks

  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint