Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : File Upload - Xmodem - Help!
Author | Message | ||||
Zonker Guru Joined: 18/08/2012 Location: United StatesPosts: 761 |
I have a program sitting on the "A:" drive on the MM, and made many changes to and wanted to "upload" a copy back to the PC side. I tried to use the MM-IDE program to transfer it back, but it keeps reporting "Inverted blocknum mismatch:11 Checksum mismatch: 0 239"... I also tried using TeraTerm xmodem transfer without sucess either.. Maybe I just don't have things setup right... All the other functions seem to work OK... Has anyone tried this and got it to work..? Thanks in advance for any help with this...!! Zonker PS. Already seen other posts on this after looking around.. I tried a "memory" transfer that I can edit back together with notepad... Thanks everyone..! |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6098 |
If you are running V4.0 of MMBasic there is a problem which has been fixed in V4.0B If you need to get the program off your drive A before upgrading, try MM EDit. It has a fix which might do the job for you. Jim VK7JH MMedit MMBasic Help |
||||
Geoffg Guru Joined: 06/06/2011 Location: AustraliaPosts: 3194 |
Yes, 4.0 and 4.0A contained a bug which disabled XModem. 4.0B fixed it. As TassyJim said, you need to get the file off before upgrading. Another way of doing this is to use the "Log.." function of Tera Term and LIST the file to the console. After you have finished listing it you would then have to edit the log file on your PC to remove the "PRESS ANY KEY ..." entries. Tedious but it would get the file off. Geoff Geoff Graham - http://geoffg.net |
||||
bigmik Guru Joined: 20/06/2011 Location: AustraliaPosts: 2914 |
Gday Geoff, The DMBasic derivative of MMBasic had a commend called MSDON (Microsoft Disk ON) that put the DM into a state where it would appear to the PC (through the USB connection) as USB flash drive.. This allowed direct copying of files to and from the PC and SD card negating the need for XModem, A feature I liked was that it allowed direct editting of files stored on the SD card as it was, in effect, a USB flash drive. This command needed a different PC serial driver but I believe that the code to do all (or most) this was available from Microchip's libraries.. The Basic structure was at the COMMAND Prompt... MSDON -------------> Then USB drive appeared. (press any key to exit) -----------> Stayed there until a key was pressed then returned to the Command Prompt. >_ Any chance of implementing this in a future version of MMBasic? Regards, Mick Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<< |
||||
Wombat Regular Member Joined: 27/05/2011 Location: AustraliaPosts: 72 |
Good idea Mick. I won't have to remove the SD card anymore! Russ |
||||
Geoffg Guru Joined: 06/06/2011 Location: AustraliaPosts: 3194 |
Yes, a good idea Mick. I tried a while ago to make it so that you did not need to change state (ie, switch to the drive mode) and consequently would have access from both the PC and MMBasic simultaneously - but it did not work !! This is much simpler and worth a try. My only concern is that by adding a large amount of extra code I am steadily eating into the space available for the internal flash drive. Is there anyone out there who has filled their internal flash drive? Would anyone mind if it shrunk further? Geoff Geoff Graham - http://geoffg.net |
||||
Geoffg Guru Joined: 06/06/2011 Location: AustraliaPosts: 3194 |
Ah, I have just realised that MSDON would only work with the SD card. Is that an issue? Geoff Geoff Graham - http://geoffg.net |
||||
bigmik Guru Joined: 20/06/2011 Location: AustraliaPosts: 2914 |
Ahhh, yes of course it is for the SD card, although i dont see that is much of a problem as I really see this as a development process tool. It is whilst you are writing your program that it is really usefull.. Once it is written and debugged you can just use xmodem to your A drive as usual.. Regards Mick Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<< |
||||
CircuitGizmos Guru Joined: 08/09/2011 Location: United StatesPosts: 1425 |
Did you try to make a compound USB device? Micromites and Maximites! - Beginning Maximite |
||||
jman Guru Joined: 12/06/2011 Location: New ZealandPosts: 711 |
Hi I think this a great idea at the expense of a little internal code space well worth it for added convenience John |
||||
jdh2550 Regular Member Joined: 16/07/2012 Location: United StatesPosts: 62 |
I vote for MSDON too! |
||||
Zonker Guru Joined: 18/08/2012 Location: United StatesPosts: 761 |
Ok.. All done... The UB32 board (with the Mighty Mick motherboard) is now humming the v4.0B firmware tune... The recovered basic file is once again sitting on the A: drive and seems to work OK..!! However, I first tried to download the basic program using MM-IDE but encountered errors. I went back to Tera-Term and tried the Xmodem transfer wich worked OK.. Still, All is good here and the project will go on...! BTW.. The Mini-MM board is now on v4.0B (nice) I big "Thank-you" to everyone for the help on this issue. Thanks also to you Geoff for creating this project. You are making programming "fun" again..! |
||||
CircuitGizmos Guru Joined: 08/09/2011 Location: United StatesPosts: 1425 |
I'll take a look at MMIDE. I might have introduced a bug. Hear hear!! Micromites and Maximites! - Beginning Maximite |
||||
bigmik Guru Joined: 20/06/2011 Location: AustraliaPosts: 2914 |
Hi Zonker, Why did I pick a lame name like UBW32-MCC? the MMM or 'Mighty Mick Motherboard' sounds so much cooler .. Glad you have it it working for you... Yes I agree . Thanks Geoff! Regards, Mick Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<< |
||||
Print this page |