![]() |
Forum Index : Microcontroller and PC projects : Exporting hex from a Duinomite
Author | Message | ||||
fundamental Newbie ![]() Joined: 26/05/2014 Location: United KingdomPosts: 3 |
Hello, Can someone please assist... I have a Duinomite Mini with :- Maximite BASIC Version 2.7A Copyright 2011 Geoff Graham > and I am thinking of trying Pinguino or C or a newer version of MMBasic. Once I am finished I would like to go back to exactly what I had before. My understanding is that there are several versions of 2.7A for Duinomite, so one way or another, I need to backup! It would be particularly nice to be able to simply extract the "hex on the chip" in the same or similar format to the hex files supplied for new versions of Maximite BASIC. It would be particularly annoying to have to buy a programmer. I had a brief look at a naive way of doing things by doing something like this : - 200 OPEN "MYDAT.DAT" FOR OUTPUT AS #1 210 for i = 0 to 10 220 x = peek(PROGMEM,i) 230 print #1, right$("0" + hex$(x), 2) 240 next 250 close #1 It bombed, presumably examining memory in this manner is a bad idea. Even if it worked it would still need some formatting to get it to the same format as an input hex file. Any other thoughts? |
||||
BobD![]() Guru ![]() Joined: 07/12/2011 Location: AustraliaPosts: 935 |
I can't help you with V2.7A but I can point you to MMBasic version from V3.1 to the current. V2.7A was very basic (sorry about the pun) and V3 was a vast improvement. You can get the current downloads here. This page also includes a link to the archive of previous versions. http://geoffg.net/maximite.html#Downloads direct link to the Duino latest http://geoffg.net/Downloads/Maximite/DuinoMite_MMBasic.zip and the archive with all of the old versions http://geoffg.net/Downloads/Maximite/Archives/ |
||||
JohnS Guru ![]() Joined: 18/11/2011 Location: United KingdomPosts: 4071 |
I think there was only one DM 2.7A version. Regardless, Olimex will have the HEX (or bin or ...) for your board and be happy to provide it. I just looked and couldn't find it on Geoff's site. I have the one for the DM Mega and I think they're the same. Wait... the HEX is linked from your board's product page. However, to change to some other ways of using a DM I think you'll need to change the bootloader and for that you need a way to reprogram. In essence, there are 2 flash memory areas: 12K for the bootloader and 512K for the main flash. The bootloader in theory could be the same but I suspect it isn't. Also in theory each bootloader could replace itself with another but I don't think they do. There's a thread on here at the moment about creating ways to program these chips without needing to buy a $20-30 tool (PICkit3, readily available e.g. ebay) so if you wait a while that would bridge the gap. John |
||||
jman![]() Guru ![]() Joined: 12/06/2011 Location: New ZealandPosts: 711 |
Here you go Jman 2014-05-27_081451_Duinomite27B.zip |
||||
fundamental Newbie ![]() Joined: 26/05/2014 Location: United KingdomPosts: 3 |
Thanks for the replies and later version of the code, much appreciated. I think the fact that it's not just me who could not find the 2.7A DM proves the need for a tool to retrieve the hex ![]() Hopefully such functionality may be considered for this new programmer being built. It's a real shame the naive basic programming method does not work! |
||||
JohnS Guru ![]() Joined: 18/11/2011 Location: United KingdomPosts: 4071 |
Can you not reprogram it just by using a USB cable and an app like mphidflash? I suspect it'll work fine. Be a good idea to have a PICkit2 or 3 just in case, though. John |
||||
fundamental Newbie ![]() Joined: 26/05/2014 Location: United KingdomPosts: 3 |
Quite possibly. However, in order to later get back to *exactly* where I was, it seems I need to backup what I already have installed in a format that can be used to reprogram. |
||||
MicroBlocks![]() Guru ![]() Joined: 12/05/2012 Location: ThailandPosts: 2209 |
Having a programmer is less annoying then buying one. :) I had the same problem before when i just used the built in bootloader to update the chip, until i got a non working update. Going back was difficult as my previous hex was nowhere to be found. Now that i have a pickit 3 i just read the chip first, just in case. Makes live much easier. It was one of the best buys. Microblocks. Build with logic. |
||||
psergiu![]() Regular Member ![]() Joined: 09/02/2013 Location: United StatesPosts: 83 |
Always use the latest firmware: Either Geoff's MMBasic (link above, 4.5 was just released) or Olimex's DMBasic ( https://github.com/OLIMEX/DuinoMite/tree/master/SOFTWARE/FIR MWARE ) Looks like Olimex just deleted all the old 2.x versions from their github site and kept only the latest ones. |
||||
plasma Guru ![]() Joined: 08/04/2012 Location: GermanyPosts: 437 |
i use Geoffs latest version on a Duinomite Mega . works like a charm. Upgrade and be happy. |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |