PBP, Vista and MPLAB


Closed Thread
Results 1 to 28 of 28
  1. #1
    Join Date
    Nov 2005
    Posts
    18

    Default PBP, Vista and MPLAB

    Hello,

    despite my efforts to install PBP with MPLAB IDE under Windows Vista I have been unsuccesful.

    Can anybody tell me or point me to the right way to do this?

    I've tried changing the system PATH and installed the PBTools, but so far I cannot see the melabs tool tool suite in the "Set Language Tool Locations" window.

    I will really appreciate your help.

    I am running MPLAB 7.50, PBP 2.46a and Vista Bussiness.

    Thanks in advance, Gabriel

  2. #2


    Did you find this post helpful? Yes | No

    Default Any luck yet?

    i'm having the same problem..I've been hoping someone would post a response to your question. By chance have you found a resolution?

    Thanks,

    Sam

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    VISTA
    Will be probably good enough in 2077

    Did you tried it with MicroCodeStudio?

    Did you contact Melabs?

    Sorry... i don't have Vista... still afraid of For now, i will suggest you to trash it, and reinstall XP.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4
    Join Date
    Nov 2005
    Posts
    18


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by millersamsr View Post
    i'm having the same problem..I've been hoping someone would post a response to your question. By chance have you found a resolution?

    Thanks,

    Sam
    Actually yes, I made it work. The problem is that I don't remember what I did.
    I believe I set it to run (MPLAB and PBPW) as WinXP compatible, but I don't remember what else I did. I will check my computer with Vista later today and if I remember what I did I will post it here (right now I am at the WinXP computer).
    Gabriel

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    i don't know how much how much this will help ...
    Quote Originally Posted by http://www.melabs.com/support/mplab.htm
    Next, download the following plugins zip file and extract its contents into your PBP installation folder. The path is usually "C:\PBP". Once extracted, run the file "PBregister.bat" (Start - Run - C:\PBP\PBregister.bat). (WINDOWS VISTA users may need to right-click the bat file in My Computer or Windows Explorer and select "Run As Administrator".

    Restart MPLAB for the changes to take effect.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  6. #6
    Join Date
    Nov 2005
    Posts
    18


    Did you find this post helpful? Yes | No

    Default

    Yes, I believe that is what I did.

    Gabriel

  7. #7


    Did you find this post helpful? Yes | No

    Default Thanks, but I tried that

    gabrielg74 and mister_e,

    I had already tried both of your suggestions, but to no avail. I'll be contacting both MELabs and Microchip for suggestions.

    Thank you both,

    Sam

  8. #8
    Join Date
    Nov 2005
    Posts
    18


    Did you find this post helpful? Yes | No

    Default

    I remember now, when I tried to run the bat file it just opened briefly a DOS window, but nothing seemed to happen. Then I run it as Admin and then it worked.

    Gabriel

  9. #9


    Did you find this post helpful? Yes | No

    Default That was it..

    I tried that multiple times, but..here is what I did to finally get it to work. I'm not sure which things did it and which had no affect, so I'll post everything.

    I set compatibility to win98 for all executables
    I ran command prompt as administrator, then ran the bat file.

    Thanks for your persistance.

    Sam

  10. #10
    T.Jackson's Avatar
    T.Jackson Guest


    Did you find this post helpful? Yes | No

    Post

    Quote Originally Posted by mister_e View Post
    VISTA
    Will be probably good enough in 2077

    Did you tried it with MicroCodeStudio?

    Did you contact Melabs?

    Sorry... i don't have Vista... still afraid of For now, i will suggest you to trash it, and reinstall XP.
    Mister_e, you've given Vista a serious hard knock there. Wondering if you might be willing to "elaborate" a bit on your dislikes about it.

  11. #11
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    It's just my own opinion based on many post i saw here and there + blend mix of local people i know here. But like everything... you hear more about bad comments than good.

    I don't like to use MicroSoft product within at least 1-2 years after their initial Official release date. But it's me.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  12. #12
    Join Date
    Feb 2003
    Posts
    432


    Did you find this post helpful? Yes | No

    Default

    I havent used Vista properly yet and have no intention of installing it on any of my PCs. In fact I think only one of my PCs would actually meet the required specification.

    I have seen the glitzy interface on PCs in the shops but at the moment XP Pro does everything I want my PC to do.

    I have used a Vista machine once when I was trying to sort out a friends email problems. The first hurdle I encountered was that I couldnt see "Run" anywhere on the start menu.

    Flash of inspiration..."WindowsKey + R" rings up the Run dialogue box. Type "cmd" and got a command prompt. Great

    Type "Telnet"

    'Telnet' is not recognized as an internal or external command,
    operable program or batch file.


    At that point I went to the XP machine in the same room to use Telnet

    I have seen reports that sevral of the programs that are important to me will not run on Vista so for the time being I am steering well clear of it.

    I dont see the point in upgrading just for the sake of it
    Keith

    www.diyha.co.uk
    www.kat5.tv

  13. #13
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    Hi Keith,

    See this link about Telnet and Vista.
    http://www.techronical.com/2006/10/05/

    Best regards,

    Luciano

  14. #14
    Join Date
    Feb 2003
    Posts
    432


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Luciano View Post
    Hi Keith,

    See this link about Telnet and Vista.
    http://www.techronical.com/2006/10/05/

    Best regards,

    Luciano
    Thanks Luciano

    I actually saw that last week but that was a week after I needed it.

    Microsoft actually seem to be making PCs more difficult to use for anything other than mainstream tasks. Its bad enough that a basic install of XP puts "pretty" views of control panel etc. First thing I do is switch to classic view so that I can see what I am looking for. LOL

    I know that DOS is dead but the command line still has its uses when you are trying to find out why you are having internet problems etc using ping, tracert, ipconfig etc. especially when the help Wizards dont help !!!

    Regards

    Keith
    Keith

    www.diyha.co.uk
    www.kat5.tv

  15. #15
    Join Date
    Dec 2005
    Location
    So Cal and loving it
    Posts
    40


    Did you find this post helpful? Yes | No

    Default

    I have just bought a new laptop with Vista 32 home premium. Finally got around to installing my pic stuff and all seems to be ok

    Downloaded and installed latest MPLab.
    Downloaded and installed latest Microcodestudio.
    Installed my PBP compiler V2.46

    Loaded an old project compiled it, loaded in to MPlab and programmed and confirmed a pic via my picstart plus programmer.

    Never had to run anything as administrator. Not really sure why you are having problems.

    Try un-installing everything, dowloading the latest versions and try again.

    As for Vista - I have had no problems with it, its the best OS I have used yet. Only lost one program so far and a Vista update will be out in the fall for it.

    sorry I cant help, but it 'should' work.

    Good luck.

  16. #16
    Join Date
    Jan 2007
    Posts
    24


    Did you find this post helpful? Yes | No

    Default

    Vista?? EEEUUUUUURRRRRRRGHHHHHH What a load of junk. Does things it THINKS you want it to with no regard for what you ACTUALLY want to do.

    FACT!! Did you know that at the current rate of take-up, it will take until late in 2009 for Vista to overtake sales of XP and then it will only be 54% of the market.

    Vista has been a disaster for Microsoft sales wise. Most IT professionals I know have rejected ANY idea of installing it until it is proved to be more stable.

    One classic was an error message stating "A Critical ERROR has occured - Windows Vista has succesfully installed on your computer"! I have seen this quite a few times when a few people I know ran out and bought the latest "must have" junk from the Seattle Screw Crew.

    Steer clear is the best advice, UNLESS it's the Business Pro version. Stay with XP Pro, far more stable.

  17. #17
    Join Date
    Feb 2006
    Location
    Brussels, Belgium
    Posts
    104


    Did you find this post helpful? Yes | No

    Default What about Vista 64 bit ?

    Has anyone had any luck getting MPLAB to recognise PBP under Vista64 bit ?
    I'm making no progress with it at all
    Setting the compatibility to Win98 stopped MPLAB from loading so I tried XP SP2 and still couldn't see the language pack.

  18. #18
    Join Date
    Feb 2006
    Location
    Brussels, Belgium
    Posts
    104


    Did you find this post helpful? Yes | No

    Default

    For anyone interested there is an effective workaround to run 32bit XP apps inside the Vista 64 bit environment. Microsoft has a free Virtual PC download. You can install that and then install XP as a virtual 32 bit OS inside a shell. Microsoft do state that Virtual PC is "unsupported" in Vista Home and Premium but "unsupported" is not the same as "does not work"

    Update: gnash, gnash - the software all works but Virtual PC does not pass thru USB connections and I've got a USB programmer.
    Last edited by AndrewC; - 11th September 2007 at 22:35.

  19. #19


    Did you find this post helpful? Yes | No

    Default Try VMWare

    I believe VMWare supports USB...it did a few versions back.

    Sam
    Last edited by millersamsr; - 12th September 2007 at 01:08. Reason: spelling error

  20. #20
    tomislav07's Avatar
    tomislav07 Guest


    Did you find this post helpful? Yes | No

    Default Got it working in VISTA...

    I copied the PBP plugin files into the ...\Microchip\MPASM Suite folder and the run the BAT file as Administrator, after that it was registered in MPLAB IDE.

    Keep PICing...

  21. #21
    Join Date
    Nov 2005
    Location
    Newcastle, Australia
    Posts
    19


    Did you find this post helpful? Yes | No

    Question

    Hi all,
    Yeh, I am in the same boat as well.
    New laptop, Vista Home Premium.
    Ive installed from cd Microcode Studio Plus 2.3.0.0
    The Complier (PBP 2.45), Assembler (MPASM) and Programmer (Epic 2.44) have all been setup in ... View/Compile and Program options.... area.

    When I run the Microcode Studio Plus program I get this little error message popup.....
    " List index out of bounds (11) "
    and the program closes.
    I run it a second time and it loads up ok,
    so I open a *.bas file and try a complie (with the correct chip file eg: p16f876a)
    Then I get THIS error popup.....
    " Cannot create file run.bat. "

    ANY advice will be most welcome,

    regards
    Shaun Woods

  22. #22
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Lucky me I still not have that Beautiful Vista here

    More than often, people solve most problem by raising their software privilege to Administrator (run as administrator).

    http://www.optimizingpc.com/vista/co..._software.html

    And it's more likely due to an older version as per Mecanique
    http://www.mecanique.co.uk/code-studio/history.html
    Last edited by mister_e; - 28th January 2009 at 22:40.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  23. #23
    Join Date
    Nov 2005
    Location
    Newcastle, Australia
    Posts
    19


    Did you find this post helpful? Yes | No

    Default

    Thanks for your help mister_e.
    As soon as I get Vista running again, yes it went haywire etc. reformat was needed.
    Might consider installing XP methinks

    cheers
    Woodzy

  24. #24
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    I have MCS, & PBP in vista 32 home edition, installed as admin ( I think you are supposed to intall all that way), works fine. It is not running in compatibility mode. HTH
    JS
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  25. #25
    Join Date
    Nov 2005
    Location
    Newcastle, Australia
    Posts
    19


    Did you find this post helpful? Yes | No

    Default

    Just an update fellas. Finally got all working ok on Vista. Yep admin and untick the files and folders as read only.

    SO, after working away quite nicely for a time.... and after adding extra code for ADC, etc. this compilation/assembly error raises it ugly head........

    Error[113] f:\!_Woods\plc_pbp245\pbppic18.lib 1165 : Symbol not previously defined (ROLLOVER)

    Using.....

    Microcode Studio Plus v2.3.0.0
    MPASM v03.90
    PicBasic Pro 2.45
    PIC18F452


    Any tips, hints, etc would be muchly appreciated.
    If you need more info, please ask.

    regards
    Shaun Woods

  26. #26
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Looks like you forgot to define a variable or you have misspeelled something in you code.
    Dave
    Always wear safety glasses while programming.

  27. #27
    Join Date
    Nov 2005
    Location
    Newcastle, Australia
    Posts
    19


    Did you find this post helpful? Yes | No

    Default

    Thanks mackrackit,
    Yeh I found the culprit. Using an include "int.bas" for a continous clock.

    Code:
    'FILENAME	:	INT.BAS	
    'PROGRAM	:	INCLUE for continuous clock
    'DATE		:	01NOV2005
    
    DEFINE	INTHAND	ROLLOVER
    
    wsave		var	BYTE 	$020 SYSTEM
    wsave1		var	BYTE 	$0a0 SYSTEM
    wsave2		var	BYTE 	$120 SYSTEM
    wsave3		var	BYTE 	$1a0 SYSTEM
    ssave		var	BYTE 	BANK0 SYSTEM
    psave		var	BYTE 	BANK0 SYSTEM
    i_hour		var	BYTE
    i_minu		var	BYTE
    i_sec		var	BYTE
    i_tic		var	BYTE
    
    
    GOTO AFTERINT				'Jump past interrupthandler
    
    asm
    
    rollover
    
    ;*****************************************************************************************
    ;*****************************************************************************************
    ;
    ;		If you are using a PIC with 2K or less, 
    ;		you MUST unremarke the lines that follow.
    ;
    ;	movwf	wsave			;only for PICs with 2k or less
    ;	swapf	STATUS,w		;only for PICs with 2k or less
    ;	clrf	STATUS			;only for PICs with 2k or less
    ;	movwf	ssave			;only for PICs with 2k or less
    ;	movf	PCLATH,w		;only for PICs with 2k or less
    ;	movwf	psave			;only for PICs with 2k or less
    ;
    ;*****************************************************************************************
    ;*****************************************************************************************
    
    ; interrupcode follows here 
    
    
    	movlw	0x58
    	movwf	TMR1L
    	movlw	0x9e			;restart timer from ffff - 9e58 => 5Hz if using 4MHz
    	movwf	TMR1H
    	decfsz 	_i_tic,f
    	goto 	slutint
    	incf	_i_sec,f
    	movlw	5			;5 = 1Hz if using 4MHz (change to 10 for 8MHz and so on)
     	movwf	_i_tic
    
    	movf	_i_sec,w
    	sublw	60
    	btfss	STATUS,Z		;check for 60 sec
    	goto 	slutint			;no
    	clrf	_i_sec			;yes
    	incf	_i_minu,f
    
    	movf	_i_minu,w
    	sublw	60
    	btfss	STATUS,Z		;check for 60 minutes
    	goto 	slutint			;no
    	clrf	_i_minu			;yes
    	incf	_i_hour
    
    	movf	_i_hour,w
    	sublw	24
    	btfss	STATUS,Z		;check for 24 hours
    	goto 	slutint			;no
    	clrf	_i_hour			;yes
    
    slutint
    	bcf	PIR1,0			;zero tmr1 interrupt flag
    
    
    ;end of interruptcode
    ; restorecode follows here
    
    	movf	psave,w			;restore
    	movwf	PCLATH
    	swapf	ssave,w
    	movwf	STATUS
    	swapf	wsave,f
    	swapf	wsave,w
    	retfie
    
    endasm
    
    
    AFTERINT:
    
    INTCON = %00000000			'all interrupts off
    PIR1 = %00000000			'zero tmr1 interrupt flag
    PIE1 = %00000001			'enable timer1 interrupt
    TMR1L = $58
    TMR1H = $9e
    i_hour = 0				
    i_minu = 0
    i_sec = 0
    i_tic = 5				'this value should be the same as the value of line 8 in the ISR
    T1CON = %00110001			'timer1 on, prescaler=1/8
    INTCON =  %11000000			'interrupt on
    
    '-----------------------------------------------------------------------------------------
    Ive underlined the problem symbols i think.....

    fits in my main program like so.....

    Code:
    DEFIN:	clear
    	DEFINE	OSC	4			'set to 4MHz oscill@@
    	INCLUDE "int.bas"
    	INCLUDE	"modedefs.bas"
    
    blah....
    blah....
    blah....
    gosub TICK
    blah....
    blah....
    blah....
    TICK:	if i_sec.0 <> OSCbit then
    		return
    	endif
    'etc.
    Cant understand getting a symbol not defined error when it defines it first line.
    cheers
    Woodzy
    Last edited by Woodzy; - 2nd March 2009 at 04:43.

  28. #28
    Join Date
    Nov 2005
    Location
    Newcastle, Australia
    Posts
    19


    Did you find this post helpful? Yes | No

    Default

    Mystery solved !

    Thanks to a four year old post .......

    http://www.picbasic.co.uk/forum/showthread.php?t=1090

    dissimilar caps. Funny how mpasm is case sensitive.
    A BBIIGG thanks to the forum mods keepin old threads alive. They are just as relevent today.

    cheers
    Woodzy
    Last edited by Woodzy; - 2nd March 2009 at 04:59.

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts