Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 00:16 06 Jul 2025 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 : Micromite program

Author Message
tantay
Newbie

Joined: 30/10/2016
Location: Vietnam
Posts: 15
Posted: 12:39am 30 Oct 2016
Copy link to clipboard 
Print this post


Hello everyone.
I am a new member.
I'm working the project with micromite 64 pin (pic32mx470f512h).
I use MM Edit to programming but I can not create hex file from MM Edit.
You can help me build hex file from MM Edit or how can load the program into microcontrollers.
Thanks everyoneEdited by tantay 2016-10-31
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2932
Posted: 01:02am 30 Oct 2016
Copy link to clipboard 
Print this post

Hi tantay, and welcome.

Not quite clear on what you mean but I will explain the following.

A program you create/write in MMBASIC on the MicroMite is saved as a .BAS file.
MMEdit is an environment to write/edit/save programs which you can then download to the MicroMite.

If you save any programs to the MM64 SD card then you will see them listed when you issue the FILES command.

However, you refer to the HEX file which in terms of the MM64 is effectively the Firmware (i.e. MMBasic).

To get the HEX file loaded into the PIC so that you can then start to use MMBASIC you need to use one of several methods. If you have a PicKit3 then use MicroChip's MPLab IPE. There is also the option to use an Arduino Nano (Robert Rozee has posted about this here on The Backshed Forum), and also other methods exist if you do a quick search.

As far as I know, MMEdit does not create a HEX file BUT I may well be wrong here as I am still running an 'old' version of MMEdit.

TassyJim may chime in here to confirm anything about MMEdit.

WW

 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9588
Posted: 01:22am 30 Oct 2016
Copy link to clipboard 
Print this post

Write your program, then when you are happy with it, use a PICKIT3 and MPLAB-X's IPE application to read the entire PIC32 memory, and export it as a HEX file.

You can then program that HEX file into any compatible blank PIC32 chip, and it will contain MMBASIC and your code all in the one HEX file.

Is that what you are trying to do?

Welcome aboard.
Smoke makes things work. When the smoke gets out, it stops!
 
tantay
Newbie

Joined: 30/10/2016
Location: Vietnam
Posts: 15
Posted: 04:07am 30 Oct 2016
Copy link to clipboard 
Print this post

Thanks WhiteWizzard and Grogster!
Programs ok but I can not to load and run curent code from MMEdit.
Can you help me how to to load and run curent code from MMEdit Or packed MMBASIC and my code into the hex file to load it through MPLAB IPE.
Thanks all.
 
disco4now

Guru

Joined: 18/12/2014
Location: Australia
Posts: 1000
Posted: 02:09pm 30 Oct 2016
Copy link to clipboard 
Print this post


Hi tantay,

Can you confirm you are able to talk to the Micromite via its console. This would be a prerequisite.
i.e.
When its restarted can you see the banner

Micromite Plus MMBasic Ver 5.2
Copyright 2011-2016 Geoff Graham


The Console Connection section in the MMBasic Manual will help if you have not reached this stage.










Latest F4 Latest H7 FotS
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6269
Posted: 03:59pm 30 Oct 2016
Copy link to clipboard 
Print this post

You are using a MX470 chip so you should have loaded the Micromite Plus HEX file (using MPLAB IPE)

Then you will have a USB to serial interface which might need a driver depending on you version of Windows.

Windows 10 has a builtin driver and doesn't need the Silicon Chip driver but all other versions of Windows do.
You can get the driver from here:
http://geoffg.net/Downloads/Maximite/Silicon_Chip_USB_Serial_Port_Driver.zip

Most of us use a separate USB-TTL converter instead of the builtin USB interface so that the Windows connection can still remain active when you reset the micromite.

Once you have a micromite that you can talk to using Teraterm (or MMEdit or any other terminal program), you can start programming it.

MMEdit only helps with writing the BASIC programs and is no use with loading the HEX firmware.

Jim
VK7JH
MMedit
 
tantay
Newbie

Joined: 30/10/2016
Location: Vietnam
Posts: 15
Posted: 06:22pm 30 Oct 2016
Copy link to clipboard 
Print this post

Thanks all
I have loaded successfully with FT232RL.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6269
Posted: 06:41pm 30 Oct 2016
Copy link to clipboard 
Print this post

Good News.
Now you can start having fun!

Jim
VK7JH
MMedit
 
tantay
Newbie

Joined: 30/10/2016
Location: Vietnam
Posts: 15
Posted: 07:06pm 30 Oct 2016
Copy link to clipboard 
Print this post

  tantay said   Thanks all
I have loaded with FT232RL.
MMEdit notification File transfer completed and then I click run symbol on MicroMite Plus chat on the windows.
Such is the true or false?
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6269
Posted: 08:17pm 30 Oct 2016
Copy link to clipboard 
Print this post

Yes, either type RUN or click on the rUN icon.

Jim
VK7JH
MMedit
 
tantay
Newbie

Joined: 30/10/2016
Location: Vietnam
Posts: 15
Posted: 04:11am 31 Oct 2016
Copy link to clipboard 
Print this post

Thank you for helping.
I have run Project(blink led ) but my program is not saved on flash.
The program lost when not power supply.You can help me saved program on flash.
Thanks all.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6269
Posted: 10:20am 31 Oct 2016
Copy link to clipboard 
Print this post

The program will be saved but you have to enter RUN to start it each time.

If you want it to run automatically, use the OPTION AUTORUN command.

VK7JH
MMedit
 
tantay
Newbie

Joined: 30/10/2016
Location: Vietnam
Posts: 15
Posted: 08:03pm 31 Oct 2016
Copy link to clipboard 
Print this post

Thanks TassyJim.
 
tantay
Newbie

Joined: 30/10/2016
Location: Vietnam
Posts: 15
Posted: 01:52am 01 Nov 2016
Copy link to clipboard 
Print this post

Hi all
You can help me this error:
CLS
GUI DELETE ALL
Font 4,1
When run appear error:
CLS error
Display not configured
Thanks.

 
disco4now

Guru

Joined: 18/12/2014
Location: Australia
Posts: 1000
Posted: 02:52am 01 Nov 2016
Copy link to clipboard 
Print this post

You will need to configure the LCD panel.

See the manual for the command like this.

OPTION LCDPANEL ILI9341, orientation, D/C pin, reset pin [,CS pin]


The command needs to match your LCD type and pin numbers used.



Regards
Gerry
Latest F4 Latest H7 FotS
 
Print this page


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

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025