![]() |
Forum Index : Microcontroller and PC projects : Micromite program
Author | Message | ||||
tantay Newbie ![]() Joined: 30/10/2016 Location: VietnamPosts: 15 |
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 everyone |
||||
WhiteWizzard Guru ![]() Joined: 05/04/2013 Location: United KingdomPosts: 2932 |
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 ZealandPosts: 9588 |
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: VietnamPosts: 15 |
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: AustraliaPosts: 1000 |
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: AustraliaPosts: 6269 |
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: VietnamPosts: 15 |
Thanks all I have loaded successfully with FT232RL. |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6269 |
Good News. Now you can start having fun! Jim VK7JH MMedit |
||||
tantay Newbie ![]() Joined: 30/10/2016 Location: VietnamPosts: 15 |
|
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6269 |
Yes, either type RUN or click on the rUN icon. Jim VK7JH MMedit |
||||
tantay Newbie ![]() Joined: 30/10/2016 Location: VietnamPosts: 15 |
Thank you for helping. I have run Project(blink led ![]() The program lost when not power supply.You can help me saved program on flash. Thanks all. |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6269 |
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: VietnamPosts: 15 |
Thanks TassyJim. |
||||
tantay Newbie ![]() Joined: 30/10/2016 Location: VietnamPosts: 15 |
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: AustraliaPosts: 1000 |
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 |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |