Home→Forums→MonoBrick EV3 Firmware→Temeplate for Monobrick
- This topic has 13 replies, 3 voices, and was last updated 9 years, 10 months ago by Anders Søborg.
-
AuthorPosts
-
May 27, 2014 at 17:59 #4392
Tcm0ParticipantTo make programming with the Visual Studio a bit easier, I decided to write a temeplate for MonoBrick for the Visual Studio (currently only 2013). The special thing: I wrote an application that gets executed when starting debugging that uploads the file directly to the EV3. You can enter the settings manually or it can read the settings from a file.
Please read the readme.txt for more information.
Just as a hint: Everything worked if the window closes without an message when the upload is completed.Download:
EV3TemeplateV2May 27, 2014 at 20:41 #4397
Martin WagnerParticipantHi Max,
could not try your template. I have to get an “un-rarer” first. Or could you provide a zipped version?
To my question:
Is it just uploading the binary or did you get a remote debugging session running with VisualStudio?
See you,
MartinMay 28, 2014 at 12:50 #4398
Tcm0ParticipantMaybe I’ll try to get remote debugging to run soon, but currently it’s only for uploading.
Here is a ZIP archive: klick me.May 28, 2014 at 23:52 #4399
Tcm0ParticipantDebugging with the normal Visual Studio Debugger seems not to work because the EV3 would have to run the “msvsmon.exe” from “Microsoft Visual Studio 12.0\Common7\IDE\Remote Debugger\x86”. I don’t think that it’s compatible with the Mono/ Xamarin debugger.
Maybe the debugger of Xamarin can be used alone/ the VS plugin of Xamarin can be used but I’m still testing that.August 29, 2014 at 14:58 #4720
Anders SøborgKeymasterNice work. Are you able to create a Add-in for Visual Studio?
/Anders
August 30, 2014 at 00:03 #4724
Tcm0ParticipantUm… It seems like VS doesn’t support EV3 debugging so easy.
What else should an Add-in do what the template doesn’t do yet?August 30, 2014 at 18:22 #4728
Anders SøborgKeymasterHi Max
I was just hoping for a Visual Studio Add-in and not a template. But after seeing your YouTube video I can see that the template works quite nicely. I would like to use this on my site if that is ok with you? You would of course get full credit. Also if you could write a guide along the lines of this that would be great. What do you say?
Concerning debugging I know that it is possible to debug Mono programs from Visual Studio – but not easy and not free!!
Anders
August 30, 2014 at 20:33 #4730
Tcm0ParticipantFeel free to use the template however you want. But it would be great if someone could test the template before it gets released officially since there might be some problems I havn’t noticed yet. In addition to that, it only works on Visual Studio 2013 since 2010 doesn’t support relative file paths.
I can write a guide if you want but I can’t guarantee that it won’t contain mistakes (language-wise).Okay, thank you for the information.
September 8, 2014 at 18:01 #4817
Anders SøborgKeymasterHi Max
How is the guide coming along?
/Anders
September 8, 2014 at 20:39 #4830
Tcm0ParticipantFirst I updated the template for the new MonoBrick release: http://www.mediafire.com/download/2w8q8xq55y7gsdn/EV3TemeplateV2.1.zip.
It’s finished.
0. Make sure to have Visual Studio 2013 installed.
1. Unzip the latest version of the EV3 Template.
2. Make sure to save a backup somewhere as you need it for every new project.
3. Extract the EV3Temeplate folder from within the archive to the place you want to have your project.
4. Rename the folder as you like.
5. Go into [Your Name]\EV3Temeplate and open the config.cfg.
6. You can enter the IP of the EV3 under “IP:” and the name you want the final file to have on the EV3 under “Name:”. It’s Temeplate.exe by default. You will be requested every time you try to debug the application if you don’t enter anyting.
7. Open the “EV3Temeplate.sln” and edit the code as you wish.
8. Press “F5” or the small green arrow to compile and upload the application. Make sure that your anti virus scanner doesn’t delete the EV3Upload.exe in this step!
9. Start the application from within the EV3’s menu.You can find the most important parts in the Readme.txt in the archive, too.
- This reply was modified 10 years, 2 months ago by Tcm0.
January 12, 2015 at 15:03 #5203
Tcm0ParticipantA small update: the express version of visual studio doesn’t allow to change the start action. Here is a list on how to still use the template:
0. Make sure to have Visual Studio 2013 installed.
1. Unzip the latest version of the EV3 Template.
2. Make sure to save a backup somewhere as you need it for every new project.
3. Extract the EV3Temeplate folder from within the archive to the place you want to have your project.
4. Rename the folder as you like.
5. Go into [Your Name]\EV3Temeplate and open the config.cfg.
6. You can enter the IP of the EV3 under “IP:” and the name you want the final file to have on the EV3 under “Name:”. It’s Temeplate.exe by default. You will be requested every time you try to debug the application if you don’t enter anyting.
7. Open the “EV3Temeplate.sln” and edit the code as you wish.
8.1 Press “F6” to compile the program.
8.2 Go into the “EV3Temeplate” folder and open the “EV3Upload.exe” to upload the program. Make sure that your anti virus scanner doesn’t delete the EV3Upload.exe in this step!
9. Start the application from within the EV3′s menu.January 14, 2015 at 21:33 #5209
Anders SøborgKeymasterHi Max
Looks great – but the template comes with a MonoBrickFirmware.dll… would it be possible to make the template a part of the git repository this way when a new MonoBrickFirware.dll is created the template will be up to date.
/Anders
January 15, 2015 at 18:30 #5210
Tcm0ParticipantFeel free to do with it whatever you want.
January 22, 2015 at 21:21 #5226
Anders SøborgKeymasterHi Max
I just updated the frontpage of the EV3 firmware with short description of your template and a link to this thread. Thanks a lot
/Anders
-
AuthorPosts
You must be logged in to reply to this topic.
Follow