Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to burn my program to controller using mplab?

Status
Not open for further replies.

malhi

Newbie level 6
Joined
Nov 13, 2008
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,420
hi,
i have got the job for programming pic controller using mplab7.60

i have made the program, compiled. its ok
but i am not able to program/burn my program to controller.i am using development board for 16 bit microcontroller. not able to find the option for burning in mplab7.60
please help me out

thanx
 

mplab 8.3 download

first step download the latest version of MPLAB 8.3 free from microchip website.
seond if you are using a compatible with MPLAB programmer/debugger like ICD2, PICkit2, PICkit3...etc just just connect it and go to the drop list of programmer and select the programmer you are using.
if you are using another programmer not comptabile with MPLAB just build the project and take the hex file generated which you will find in the same directory of the project and download it through your programmer software.
attached photo demonstrates how to download the project from inside MPLAB.
good luck
 

how to burn program using mplab7.60

First you need to download the latest MPLAB IDE from MIcrochip and install it. **broken link removed**
It is FREE.

Then you will need HI-TECH C compiler. It is also FREE.

https://www.htsoft.com/downloads/demos.php

For more info, youtube videos, and tutorials visit MicrocontrollerBoard.com webiste. https://www.microcontrollerboard.com/development_tools.html


If you need USB PIC programmer ICP2 that supports wide range of PIC microcontrolles, you can obtain it here https://www.microcontrollerboard.com/pic_programmer.html
Good luck.

Microcontroller Board team
www.microcontrollerboard.com
 

how to use mplab ver 8.3?

thanks for reply.
i have got the latest version of mplab(8.3) and c compiler too.
but still i am not able to connect my pc to kit through mplab ICD3.
please provide me the steps for connecting pc to the kit. right from the selection of programmer..

thanks. waiting for reply
 

version of mplab

thanks sir for your help
is there any need of external programmer as you said. in my kit its of microchip, i have got the serial cable for communication. why cant i burn my program directly from pc to controller
 

download mplab 8.3

please check my previous post and follow it and i think you will know how to program your PIC.
 

help for mplab

Try ponyprog from they have a support to a large number of micros. you need a very little external circuit
 

Sir,

I am trying to build a program using MATLAB 7.60.If i build it a workspace is getting opened and in the workspace i am not able to add C file in Source file folder.Please guide me how to build a hex file.Thank You.
 

Hi friend,

First of all,
Open MPLAB IDE.
then go to project Menu ==> Project Wizard.
then click "Next" button ==> Select Microcontroller ==> Select compiler tool-suite(for ex. MPLAB C18 C Compiler(mcc18.exe)v3.34) ==> Create project location ==> Next ==> Finish.

then add C file in source file in workspace.

Then build it from Project Menu ==> Build all.

it will create hex file in same folder(project folder)

Hope this is help you.
Shyam
INDIA.
 
  • Like
Reactions: vikky

    vikky

    Points: 2
    Helpful Answer Positive Rating
If u r using PIC MC..... try PICProgrammer..... easy to download.... easy to use.....
 
  • Like
Reactions: vikky

    vikky

    Points: 2
    Helpful Answer Positive Rating
Hi friend,

First of all,
Open MPLAB IDE.
then go to project Menu ==> Project Wizard.
then click "Next" button ==> Select Microcontroller ==> Select compiler tool-suite(for ex. MPLAB C18 C Compiler(mcc18.exe)v3.34) ==> Create project location ==> Next ==> Finish.

then add C file in source file in workspace.

Then build it from Project Menu ==> Build all.

it will create hex file in same folder(project folder)

Hope this is help you.
Shyam
INDIA.

Thank you.

I am getting a error message as shown below.

Error 18 "HIDtest.c" Line 25(10,23): File can not be opened
Not in "C:\Program Files\PICC\devices\PIC18F458.h"
and

Error 128 "HIDtest.c" Line 29(1,14): A #DEVICE required before this line
E:\Dhruvan\Programs\PIC\USB Keyboard\HIDtest.o ===> 2 Errors, 0 Warnings.

Please can you help me to solve this problem

Thank You

---------- Post added at 13:19 ---------- Previous post was at 13:15 ----------

If u r using PIC MC..... try PICProgrammer..... easy to download.... easy to use.....

I just need to generate a HEX file.I have a universal programmer to burn it.Will it be easy for compiling too?
 

Hi friend,

First confirm that, you should properly install Compiler.
Because, MPLAB is only IDE(Integrated development environment ) Not compiler.
You must install Compiler like MPLAB-C18-Student-Edition-doc-v3_00-win32.
It is download freely from Microchip website.

Then Try this option,

Go to Project Menu ==> Build Options... ==> Project.
It will open one window,
In Directories tab, Give proper path for all directory
For ex.
Show directories for: Linker-Script Search path
gives ==> C:\MCC18\bin\mcc18.exe

Hope this is help you.
Good luck.
Shyam.
 
  • Like
Reactions: vikky

    vikky

    Points: 2
    Helpful Answer Positive Rating
Hi friend,

First confirm that, you should properly install Compiler.
Because, MPLAB is only IDE(Integrated development environment ) Not compiler.
You must install Compiler like MPLAB-C18-Student-Edition-doc-v3_00-win32.
It is download freely from Microchip website.

Then Try this option,

Go to Project Menu ==> Build Options... ==> Project.
It will open one window,
In Directories tab, Give proper path for all directory
For ex.
Show directories for: Linker-Script Search path
gives ==> C:\MCC18\bin\mcc18.exe

Hope this is help you.
Good luck.
Shyam.

Thank you Shyam.I will try and keep you posted.Thanks once again.
 

i cudnt find the compiler suggested by you in microchip website.Please can you give me the link.
 

Hi vikky

I have give you just example Name for Compiler.
The latest Microchip Compiler for PIC18F Series is below.

**broken link removed**

Use Lite or demo version, it is free.

good luck
Shyam
 

    V

    Points: 2
    Helpful Answer Positive Rating
Thank You Shyam.

---------- Post added at 06:45 ---------- Previous post was at 05:48 ----------

Hi shyam,

I am again getting the same error message does it has anything to do it with Configuration setting?If so,How to do configuration setting for 18f4550.Thank you.
 

Hi vikky,

Error 18 "HIDtest.c" Line 25(10,23): File can not be opened
Not in "C:\Program Files\PICC\devices\PIC18F458.h"

For this error, give proper directory path of include file.
which is done by this way,

Go to Project Menu ==> Build Options... ==> Project.
It will open one window,
In Directories tab, Give proper path for all directory

Show directories for: Include Search path

give your header file path in box of window.

for ex.
gives ==> C:\MCC18\h

For configuration bit

Go to Help Menu ==> Topics.... ==> PIC18 Config setting ==> select your Microcontroller
It give you proper description of configuration bit and how it is set.

Hope this is help you.
Good luck.
Shyam.
 
  • Like
Reactions: vikky

    vikky

    Points: 2
    Helpful Answer Positive Rating
Hi vikky,



For this error, give proper directory path of include file.
which is done by this way,

Go to Project Menu ==> Build Options... ==> Project.
It will open one window,
In Directories tab, Give proper path for all directory

Show directories for: Include Search path

give your header file path in box of window.

for ex.
gives ==> C:\MCC18\h

For configuration bit

Go to Help Menu ==> Topics.... ==> PIC18 Config setting ==> select your Microcontroller
It give you proper description of configuration bit and how it is set.

Hope this is help you.
Good luck.
Shyam.

Hi...I am getting a message failed to load USB1.cof(USB1 is project name).Is this problem due to compiler or supportive files?Thank you.

---------- Post added at 08:10 ---------- Previous post was at 07:54 ----------

hi shyam,if necessary i can send you my source files.

---------- Post added at 08:27 ---------- Previous post was at 08:10 ----------

Is it necessary for me to uninstall all other compilers except the mcc which i am using now?
 
Last edited:

Thanks for your help.I was help to solve the problem by using uC compiler:smile:
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top