Add support for debugging under MPLAB

Post your requests and ideas on the future development of mikroBasic for dsPIC30/33 and PIC24.
Post Reply
Author
Message
Bob Shannon
Posts: 66
Joined: 21 Feb 2006 15:34
Location: Massachusetts, USA

Add support for debugging under MPLAB

#1 Post by Bob Shannon » 26 Jun 2006 22:45

The simulator does not let me figure out what is happening to my hardware.

What is needed is a .COD file that would let me bring my mBasic code into MPLAB to use an ICD2, so I can debug my code on the actual hardware.

Also, why not use MPASM? The mBasic assembler is not working correctly (see my post on setting the LPOSCEN bit on a 30F6011A).

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

Re: Add support for debugging under MPLAB

#2 Post by zristic » 27 Jun 2006 09:53

You can import the hex file into MPLAB:
1. Start MPLAB
2. Go to File-> Import
3. Point to HEX file generated by mikroBasic
4. Click Open.

Now your hex file is imported into MPLAB and is ready for ICD2 debugger. You can use ASM listing of mikroBasic to follow instructions flow.

At the moment it is the only way. We will make this procedure much easeir in future versions.

guyfoc
Posts: 297
Joined: 09 Sep 2005 11:34
Location: belgium

#3 Post by guyfoc » 03 Jul 2006 16:54

i am not an expert in asm but i tried also to debug some prog in mb.
that works in mplab but it is very difficult to find the variable name and locations to place in mplab
things we are knowing are always easy

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

#4 Post by zristic » 04 Jul 2006 08:09

That is the way it is now. We tend to improve the simulator in mikroIDE. In each version it gets better and better. One day I hope all of us will be satisfied.

The incoming version has a much, much better simulator than the current one.

javok
Posts: 7
Joined: 20 Nov 2006 22:59

#5 Post by javok » 27 Dec 2006 00:31

Why I cannot import an .hex file to the mplab??
When I try to import a .hex, the mpllab shows: The format of the file "root\name.hex" can not be read or written because its extension was not recognized

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

#6 Post by zristic » 27 Dec 2006 09:34

That is a bug in mplab, you have to reinstall it.

Post Reply

Return to “mikroBasic for dsPIC30/33 and PIC24 Wish List”