MPLAB assembler with EasyPIC 5 ???
MPLAB assembler with EasyPIC 5 ???
I know this is off topic, but is it possible to program from MPLAB assembler with the EasyPIC5?
-
- Posts: 619
- Joined: 05 Jul 2008 06:05
- Location: Thailand
-
- Posts: 21
- Joined: 19 Nov 2009 04:57
- Location: Germany
- Contact:
dsl that shoud work just fine. I am an AVR Guy, but I programm in AVRStudio all the time and just use microElektronica AVR Flash Tool to load the hex in the Controller.
Should work the same way for PIC.
The only thing is that you will need to get the MMC/SD Card, GLCD and LCD librarys from somewhrere else or programm them yourself. Because microelektronica does not publish asm librarys or any other language libs for other compilers.
But nevermind. If you get or are any good with asm you can make a library for GLCD (in 50 hrs + if you are a beginner, so you better look where you get one if so) that maybe is faster (if you use the registers and the stack clever) and smaller than the C libs from here.
Hope that helped you.
Should work the same way for PIC.
The only thing is that you will need to get the MMC/SD Card, GLCD and LCD librarys from somewhrere else or programm them yourself. Because microelektronica does not publish asm librarys or any other language libs for other compilers.
But nevermind. If you get or are any good with asm you can make a library for GLCD (in 50 hrs + if you are a beginner, so you better look where you get one if so) that maybe is faster (if you use the registers and the stack clever) and smaller than the C libs from here.
Hope that helped you.
MPLAB Support
Good day all,
My apologies for the 'lazy' posting but I figured that the answer might also mean that you had tried it.
MicroChip MPLAB: Does MikroC Pro support this nicely ie write code in Mikro C and then take the source + Hex file to MPLAB for debugging using a PICKIT 3 or ICD 2?
Thanks in advance
Michael
My apologies for the 'lazy' posting but I figured that the answer might also mean that you had tried it.
MicroChip MPLAB: Does MikroC Pro support this nicely ie write code in Mikro C and then take the source + Hex file to MPLAB for debugging using a PICKIT 3 or ICD 2?
Thanks in advance
Michael
ZarDynamix | Fidelis et fortis semper
An embedded solutions company
Site | http://www.zardynamix.com
An embedded solutions company
Site | http://www.zardynamix.com
- tihomir.losic
- mikroElektronika team
- Posts: 2138
- Joined: 02 Dec 2009 14:16
- Location: Serbia
- Contact:
Re: MPLAB Support
Hello Michael,Dxmaxim wrote:MicroChip MPLAB: Does MikroC Pro support this nicely ie write code in Mikro C and then take the source + Hex file to MPLAB for debugging using a PICKIT 3 or ICD 2?
1) if you use examples from older versions of compilers (mikroC), my recommendation to you is that with the help of Migration Document (Help -> Document Migration) alone fix your code and customize it to the new version.
2) our compilers generate COFF files, which you can use to import with MPLAB, and then you can use hardware debugging with PicKit2 or PicKit3.
COFF File Format
The Common Object File Format (COFF) is a specific file format suitable for code debugging.
The COFF incorporates symbolic procedure, function, variable and constant names information; line number information, breakpoints settings, code highlighter and all the necessary information for effective and fast debugging.
By using COFF, it is possible to import and debug code generated by mikroElektronika compilers under Microchip's MPLAB®.
Best regards,
Losic Tihomir
mikroElektronika [Support team]
-
- Posts: 2780
- Joined: 25 Dec 2008 15:22
- Location: Scotland
Re: MPLAB Support
and it works very well!tihomir.losic wrote:Hello Michael,Dxmaxim wrote:MicroChip MPLAB: Does MikroC Pro support this nicely ie write code in Mikro C and then take the source + Hex file to MPLAB for debugging using a PICKIT 3 or ICD 2?
1) if you use examples from older versions of compilers (mikroC), my recommendation to you is that with the help of Migration Document (Help -> Document Migration) alone fix your code and customize it to the new version.
2) our compilers generate COFF files, which you can use to import with MPLAB, and then you can use hardware debugging with PicKit2 or PicKit3.
COFF File Format
The Common Object File Format (COFF) is a specific file format suitable for code debugging.
The COFF incorporates symbolic procedure, function, variable and constant names information; line number information, breakpoints settings, code highlighter and all the necessary information for effective and fast debugging.
By using COFF, it is possible to import and debug code generated by mikroElektronika compilers under Microchip's MPLAB®.
Best regards,
Losic Tihomir
-
- Posts: 1
- Joined: 01 Oct 2010 07:21
Re: MPLAB assembler with EasyPIC 5 ???
Hi Losic,
Can you please tell me to how to generate COFF files in MicroC compiler? I am also facing the same problem.I have a frequency counter with LCD working code in MicroC compiler and due to some technical issues I am forced now to use a MPLAB IDE i.e. using Hitech PIC C compiler. I am struggling to make the Micro C code compatible to work with MPLAB IDE but despair that it doesnot build successfully.I was very happy when I came across this solution.I tried building the same project under Micro C but I could see that it build successfully and generates a .hex file but not the COFF file which you have stated in your mail.
I am planning to use PIC Kit3 as the debugger/programmer and MPLAB IDE i.e. Hitech C Compiler and hence I was interested to know if I can debug the code by programming the COFF file generated using the MicroC Compiler?
Please help me out
Thanks in advance,
Regards,
Shilpa
Can you please tell me to how to generate COFF files in MicroC compiler? I am also facing the same problem.I have a frequency counter with LCD working code in MicroC compiler and due to some technical issues I am forced now to use a MPLAB IDE i.e. using Hitech PIC C compiler. I am struggling to make the Micro C code compatible to work with MPLAB IDE but despair that it doesnot build successfully.I was very happy when I came across this solution.I tried building the same project under Micro C but I could see that it build successfully and generates a .hex file but not the COFF file which you have stated in your mail.
I am planning to use PIC Kit3 as the debugger/programmer and MPLAB IDE i.e. Hitech C Compiler and hence I was interested to know if I can debug the code by programming the COFF file generated using the MicroC Compiler?
Please help me out
Thanks in advance,
Regards,
Shilpa
Re: MPLAB assembler with EasyPIC 5 ???
Main menu -> Tools -> Options -> Output -> Generate Coff fileShilpa Deepak wrote:Can you please tell me to how to generate COFF files in MicroC compiler?