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.

Help with MPLAB X please.

Status
Not open for further replies.

ljcox

Full Member level 5
Full Member level 5
Joined
Feb 1, 2006
Messages
253
Helped
25
Reputation
50
Reaction score
23
Trophy points
1,298
Location
Melbourne Australia
Activity points
3,118
I recently downloaded MPLAB X since the PIC I'm currently using (16F1708) cannot be fully tested in MPLAB 8.92 since that PIC is not fully supported in 8.92.

I have been able to import the programme into MPLAB x, but I can't see how to test it. There is a daunting array of info available but I can't find anything relevant to answer my question.

In MPLAB 8.92, I used the function keys F7 & F9 to step through the programme so I could test it.

But with MPLAB X, I cannot find the equivalent facilities.

So I think that I need to interface an actual PIC via Pickit3. Is that correct?

Any assistance will be appreciated.

Len
 

It still has the simulator as before but it's a bit harder to configure it.

1. import the original project as a "v8" project, it should create a new MPLABX project with the same name. The original is untouched.
2. under 'project/properties' select the simulator as the hardware tool. You can also select hardware debuggers here too.
3. under 'window' you should then see various simulation tools, much as in MPLAB v8.
4. use the hammer icon (or F11) to build the files.

If the build is successful you should see 'reset', 'step', 'step over' and all the old debugging icons at the top of source window. You can select which registers to display and the display format in the output window and you can set/disable breakpoints by clicking on the source line number in the left margin.

Brian.
 

Thanks Brian, I have added some comments in red to your post in order to help anyone like me who may be trying to learn MPLAB X.

It still has the simulator as before but it's a bit harder to configure it.

1. import the original project as a "v8" project, it should create a new MPLABX project with the same name. File>import/MPLAB IDE V8 project. The original is untouched.
2. under 'File> project/properties' select the simulator as the hardware tool. You can also select hardware debuggers here too.
3. under 'window' you should then see various simulation tools, much as in MPLAB v8. Under Window>Simulator I found 4 options:- Stimulus, Analyzer, IOPin, Register Trace. I chose Stimulus.
4. use the hammer icon (or F11) to build the files. I did this & the build was successful.

If the build is successful you should see 'reset', 'step', 'step over' and all the old debugging icons at the top of source window. You can select which registers to display and the display format in the output window and you can set/disable breakpoints by clicking on the source line number in the left margin.

Brian.

However, as you can see in the attachment, I could not find the 'reset', 'step', 'step over' icons. I must be missing something. Please advise.
Len
 

Attachments

  • MPLAB X window.jpg
    MPLAB X window.jpg
    334.2 KB · Views: 79

I'll have to throw this open for others to reply as I use the Linux version and the screen layout is slightly different.
This is what I see but I am using XC8 rather than the assembler:
Screenshot_20171130_085733.jpg

Brian.
 
  • Like
Reactions: ljcox

    ljcox

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top