Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 13:29 26 Nov 2024 Privacy Policy
Jump to

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 States
Posts: 761
Posted: 06:09pm 12 Nov 2012
Copy link to clipboard 
Print this post

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..!Edited by Zonker 2012-11-14
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6098
Posted: 08:02pm 12 Nov 2012
Copy link to clipboard 
Print this post

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: Australia
Posts: 3194
Posted: 01:05pm 13 Nov 2012
Copy link to clipboard 
Print this post

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: Australia
Posts: 2914
Posted: 07:55pm 13 Nov 2012
Copy link to clipboard 
Print this post

  Geoffg said   Yes, 4.0 and 4.0A contained a bug which disabled XModem. 4.0B fixed it.

Geoff


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


Edited by bigmik 2012-11-15
Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<<
 
Wombat

Regular Member

Joined: 27/05/2011
Location: Australia
Posts: 72
Posted: 09:37pm 13 Nov 2012
Copy link to clipboard 
Print this post

Good idea Mick.

I won't have to remove the SD card anymore!

Russ
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3194
Posted: 12:52am 14 Nov 2012
Copy link to clipboard 
Print this post

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: Australia
Posts: 3194
Posted: 12:54am 14 Nov 2012
Copy link to clipboard 
Print this post

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: Australia
Posts: 2914
Posted: 01:06am 14 Nov 2012
Copy link to clipboard 
Print this post

  Geoffg said   Ah, I have just realised that MSDON would only work with the SD card.
Is that an issue?

Geoff


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 States
Posts: 1425
Posted: 04:27am 14 Nov 2012
Copy link to clipboard 
Print this post

  Geoffg said   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 !!
Geoff


Did you try to make a compound USB device?
Micromites and Maximites! - Beginning Maximite
 
jman

Guru

Joined: 12/06/2011
Location: New Zealand
Posts: 711
Posted: 09:04am 14 Nov 2012
Copy link to clipboard 
Print this post

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 States
Posts: 62
Posted: 12:06pm 14 Nov 2012
Copy link to clipboard 
Print this post

I vote for MSDON too!
 
Zonker

Guru

Joined: 18/08/2012
Location: United States
Posts: 761
Posted: 04:05pm 14 Nov 2012
Copy link to clipboard 
Print this post

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 States
Posts: 1425
Posted: 04:35pm 14 Nov 2012
Copy link to clipboard 
Print this post

  Zonker said  However, I first tried to download the basic program using MM-IDE but encountered errors.


I'll take a look at MMIDE. I might have introduced a bug.


  Zonker said  Thanks also to you Geoff for creating this project.
You are making programming "fun" again..!


Hear hear!!
Micromites and Maximites! - Beginning Maximite
 
bigmik

Guru

Joined: 20/06/2011
Location: Australia
Posts: 2914
Posted: 07:49pm 14 Nov 2012
Copy link to clipboard 
Print this post

  Zonker said   Ok.. All done... The UB32 board (with the Mighty Mick motherboard) is now humming the v4.0B firmware tune...


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...

  Zonker said   Thanks also to you Geoff for creating this project.
You are making programming "fun" again..!


Yes I agree . Thanks Geoff!

Regards,

Mick

Mick's uMite Stuff can be found >>> HERE (Kindly hosted by Dontronics) <<<
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024