Announcement

Collapse

Please Read this before posting a Bug Report

This forum is for reporting bugs in the PicBasic Pro compiler.
You will need to provide code and descriptions that clearly show the problem.

If you just have code that doesn't work but don't know why.
It is more likely to be a bug in your program instead of the compiler

Please don't post your entire program with a simple "It doesn't work".
Reduce it to the minimum amount of code required to show the problem.

Compiler bug reports get priority over anything else.
Be sure it's not in your program first.
See more
See less

USB U2 Not programming

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • USB U2 Not programming

    USB U2 Not programming

    Any body knows please Help:
    PS: My first languish is German

    I have installed :

    PBP #3 Gold
    Micro Code Studio Plus V 5.0.0.5
    Compiler V PBPX 3.0.6.4
    MPLAB IDE V 8.85

    Programmer : USB U2 melabs 4.5. Firmware 5.9
    Chip Target info ID 09A4 (16F877)

    My problem started when I tried to program PIC16F88.

    So I went back to BASICs:
    I use the USB U2 melabs with a LAB-X2 from meLAB
    Chip is 16F877-20/P .
    Yes power is supplied to the LAB-X2
    My programmer gets power from a powered USB Port

    My program is blink3x2 from meLAB sample library for the LAB-X2

    When I go [program compile inMicro Code Studio] it appears every thing is fine however
    the red programming LED on the U2 Programmer is not flashing !
    And I don’t get the desired results on the LAB-X2

    When I program from the meLAB Programmer it appears to program just
    fine [the red led is flashing].unfortunate I don’t get the desired results on the LAB-X2.
    Except now the hex code is changed !

    Code:
     ' Name        : BLINK3X2.pbp
    ' Compiler    : PICBASIC PRO Compiler 2.6
    ' Assembler   : PM or MPASM
    ' Target PIC  : 28/40-pin PIC types compatible with LAB-X2 board
    ' Hardware    : LAB-X2 Experimenter Board
    ' Oscillator  : 4MHz external crystal
    ' Keywords    : FOR NEXT
    ' Description : PICBASIC PRO program to blink 3 LEDS in sequence.
    ' 16F877
    
    ' Define LOADER_USED to allow use of the boot loader.
    ' This will not affect normal program operation.
    'Define LOADER_USED 1
    
    i    Var Byte   ' Define loop variable
    LEDS Var PORTB  ' Alias PORTB to LEDS
    
       TRISB = %00000000  ' Set PORTB to all output
    
    mainloop:
       LEDS = 1           ' First LED on
       Pause 500          ' Delay for .5 seconds
    
       For i = 1 To 2     ' Go through For..Next loop 2 times
         LEDS = LEDS << 1 ' Shift on LED one to left
         Pause 500        ' Delay for .5 seconds
       Next i
       Goto mainloop      ' Go back to mainloop and blink LED forever
    
       End












    [CODE][/CODE]
Working...
X