F10 is compile *and program* - F9 is compile only. Good luck!
All your methods worked very well. I had some errors in the program. MicroCode Studio told me which lines the errors were on and what type of error they were. So I went back to those lines and corrected them. Then I tried compiling again and it was successful and it told me how many words it used. It compiled the Basic program into an assembly program. The only problem I have now is how do I compile the assembly program into an Intel HEX file? I have a BK Precision Universal Programmer which uses the Intel HEX file.
hi
while you are in microcode studio press alt+H then enter
then scroll down and
click on......... installing a programmer............
you should find everything you need
HTH
Duncan
You are quite right Dave
I misread and therefore misunderstood the question, sorryThat is where you tell MCS where to find MPASM and to output INHX8M,8S, or32.
I think that is what you need.
Duncan
I tried the ALT-H that duncan303 posted and that just opened the help pulldown menu. Mackrakit, I do have the Microchip MPLAB IDE v7.61. It contains the Application Maestro, MPASMWIN, and Visual Procmd. I have no idea what any of these applications are used for. Can any of these applications be used to create a HEX file? It also has something called Setup MPLAB Tools. I clicked this and a window appeared which allowed me to modify the existing settings. I was afraid to change anything since I didn't know what I was doing. So I just exited without changing anything.
They're up to MPLAB 8.01 or something now.
Shouldn't have to mess with anything in MPLAB.I clicked this and a window appeared which allowed me to modify the existing settings. I was afraid to change anything since I didn't know what I was doing. So I just exited without changing anything.
Open up MCS, hit the preferences/options/whatever, hit the assembler tab, and have it search for MPASM.exe. Should be located in your Microchip/MPLAB subdirectory.
MCS - is a front end for creating PicBasicPro compatible code. It also invokes:
PBPW - which is the inital compiler responsible for compiling the source code created in MCS into assembly code which gets assembled by:
MPASM - which is the final assembly program from Microchip (also invoked from MCS), responsible for create the end result of a HEX file which will get loaded into your PIC via your chosen PIC Programmer.
Get all that?
Both PBPW and MPASM have to be configured in MCS.
Here's my method for setting up a new PC:
1 - The machine is blank, fresh reload, whatever
2 - Load the programmer software for my chosen programmer, in my case, Microchip's PICKIT2...anything else...well, in my opinion, just asking for trouble down the road. And make sure the programmer responds as it should!!!
3 - Install the latest version of MPLAB direct from Microchip and any patches required. And make sure it can find your programmer, which with the PICKIT2, it's a piece of cake.
4 - Install PicBasicPro 2.50. Other than remembering where you put it, you shouldn't need to do much else.
5 - Install Microcode Studio and configure the options listed above to the directories you just got done installing those other items to.
Doing this, you're working from the bottom-up, instead of the top-down. Just seems to work better like that for me, and probably 16 bazillion other people too.
Last edited by skimask; - 30th January 2008 at 17:57.
Bookmarks