Gamebuino uploader tool

Libraries, utilities, bootloaders...

Gamebuino uploader tool

Postby inversesandwich » Thu May 01, 2014 8:23 pm

If you've ever used a Teensy, you'll know that it uses a nifty loader program.

Image Image
Image

You can run it standalone, and it also automatically pops up when uploading with Arduino.

We could have a similar thing for Gamebuino for a number of reasons;
  • Some people just want to upload their game straight to the board
  • Others would like to put the hex file on their SD card
  • and some may want to use the emulator

A loader could be a great way to do it.

Here's a mockup (albeit crappy one):
Image

The browse box would be pre-filled in if you launched from the Arduino environment, and the bar above the go button is a progress bar. The circles on the side are radio boxes to select an option.

What do you think?
User avatar
inversesandwich
 
Posts: 32
Joined: Sat Apr 19, 2014 10:34 pm
Location: United Kingdom

Re: Gamebuino uploader tool

Postby dotdan » Thu May 01, 2014 9:48 pm

Sounds great to me.

smart tools are very important in my Point of view


Cheers
Daniel
User avatar
dotdan
 
Posts: 29
Joined: Tue Apr 22, 2014 9:00 pm
Location: Germany

Re: Gamebuino uploader tool

Postby Myndale » Tue Sep 23, 2014 1:03 pm

I'm a fair way along in developing a tool that does all this but in practice it's not working out so well. When you upload a game via the Arduino IDE it uploads a byte at a time. HEX files, on the other hand, store bytes as hex strings i.e. 2 characters per byte. Add the overhead of the per-line header and checksum and they wind up being 3 times larger than the program they represent.

Or to put it another way, raw HEX files take about 3 times longer to upload to the Gamebuino for storage on the SD card than uploading the program directly via the IDE. And that's just how long it takes to send it across the serial link, you then have to save it to SD with the notoriously slow tinyFAT library, which was a pain in the rear end because it doesn't actually support binary writes so I had to add that feature myself. Take saving into account and you wind up looking at roughly 10 times slower....now multiply that by however many files you're trying to upload to the SD card at once.

I guess I could still keep plugging away at it if people really wanted it, but from what I've seen so far it doesn't seem worth it.
Myndale
 
Posts: 507
Joined: Sat Mar 01, 2014 1:25 am

Re: Gamebuino uploader tool

Postby ripper121 » Mon Oct 06, 2014 4:26 pm

Pleas add a option to upload or run it with emu.
User avatar
ripper121
 
Posts: 224
Joined: Fri Apr 04, 2014 2:02 pm
Location: Germany

Re: Gamebuino uploader tool

Postby Myndale » Mon Oct 06, 2014 11:07 pm

ripper121 wrote:Pleas add a option to upload or run it with emu.


You mean if there's a HEX file already loaded in the emulator then add a menu option to upload it to a connected Gamebuino? Actually that's not a bad idea...
Myndale
 
Posts: 507
Joined: Sat Mar 01, 2014 1:25 am

Re: Gamebuino uploader tool

Postby Myndale » Tue Oct 07, 2014 3:36 am

Done! Latest version available from the usual place.

Wow, that was fast! I wonder if we'll end up having a full featured Gamebuino IDE :P
Myndale
 
Posts: 507
Joined: Sat Mar 01, 2014 1:25 am

Re: Gamebuino uploader tool

Postby ripper121 » Fri Oct 10, 2014 8:42 am

Myndale wrote:
ripper121 wrote:Pleas add a option to upload or run it with emu.


You mean if there's a HEX file already loaded in the emulator then add a menu option to upload it to a connected Gamebuino? Actually that's not a bad idea...

No i mean that you can chouse in the IDE between Upload to Gamebuino or Start it with the Emulator
User avatar
ripper121
 
Posts: 224
Joined: Fri Apr 04, 2014 2:02 pm
Location: Germany

Re: Gamebuino uploader tool

Postby Myndale » Fri Oct 10, 2014 12:12 pm

Myndale wrote:Wow, that was fast! I wonder if we'll end up having a full featured Gamebuino IDE :P


I didn't actually type that sentence into my post. Did someone with admin privileges accidentally hit "Edit" instead of "Quote"?
Myndale
 
Posts: 507
Joined: Sat Mar 01, 2014 1:25 am

Re: Gamebuino uploader tool

Postby Myndale » Fri Oct 10, 2014 12:20 pm

ripper121 wrote:No i mean that you can chouse in the IDE between Upload to Gamebuino or Start it with the Emulator


Tricky. Unlike my emulator, the IDE doesn't talk directly to the Arduino using the bootloader's native protocol, it instead calls avrdude to do the upload for it. I looked into the avdude source code and it doesn't seem to support any kind of plugin architecture, which means I'd have to either provide a new version of avrdude for people to install over the existing one or write a driver to emulate a serial or asp device, which is a nightmare in win8. Alternatively, I could make people install one of the freeware utilities that bridge serial port connections, but again this is getting really messy and unreliable. It should be easy, but itwon't be until the Arduino team provide support for customization devices.

Great suggestion, but at this stage I'm concentrating on Lunar Lander and emulator bug fixes.
Myndale
 
Posts: 507
Joined: Sat Mar 01, 2014 1:25 am


Return to Software Development

Who is online

Users browsing this forum: No registered users and 4 guests

cron