mikrbasic error

Please check the frequently asked questions before posting to the forum.
Post Reply
Author
Message
wishes
Posts: 2
Joined: 09 Jul 2010 16:40
Contact:

mikrbasic error

#1 Post by wishes » 09 Jul 2010 17:09

hello all ,
I am new member and also new in PIC Iam trying to learn PIC programming in mikrobasic and I copy the program in the help and I copy programe in the USB HID Library

//////////////////////////////////////////
program myproject3
dim k as byte
dim userRD_buffer as byte[64]
dim userWR_buffer as byte[64]

sub procedure interrupt
asm
CALL _Hid_InterruptProc
nop
end asm
end sub

sub procedure Init_Main
' Disable all interrupts
' Disable GIE, PEIE, TMR0IE, INT0IE,RBIE
INTCON = 0
INTCON2 = $F5
INTCON3 = $C0
' Disable Priority Levels on interrupts
RCON.IPEN = 0
PIE1 = 0
PIE2 = 0
PIR1 = 0
PIR2 = 0

' Configure all ports with analog function as digital
ADCON1 = ADCON1 or $0F

' Ports Configuration
TRISA = 0
TRISB = 0
TRISC = $FF
TRISD = $FF
TRISE = $07

LATA = 0
LATB = 0
LATC = 0
LATD = 0
LATE = 0

' Clear user RAM
' Banks [00 .. 07] ( 8 x 256 = 2048 Bytes )
asm
LFSR FSR0, $000
MOVLW $08
CLRF POSTINC0, 0
CPFSEQ FSR0H, 0
BRA $ - 2
end asm

' Timer 0
T0CON = $07
TMR0H = (65536 - 156) >> 8
TMR0L = (65536 - 156) and $FF
INTCON.T0IE = 1 ' Enable T0IE
T0CON.TMR0ON = 1
end sub


'** Main Program **

main:
Init_Main()
Hid_Enable(@userRD_buffer, @userWR_buffer)

do
for k = 0 to 255
' Prepare send buffer
userWR_buffer[0] = k

' Send the number via USB
Hid_Write(@userWR_buffer, 1)
next k
loop until FALSE

Hid_Disable
end.


/////////////// but I have the following two error
0:0 E-0 Linker error: UEP1: argument not found
0:0 E-0 Linker error: Bank not found: UEP1

User avatar
slavisa.zlatanovic
mikroElektronika team
Posts: 1321
Joined: 07 Apr 2009 09:39

Re: mikrbasic error

#2 Post by slavisa.zlatanovic » 12 Jul 2010 13:28

Hi!

We warmly suggest you to switch to mikroBasic PRO for PIC compiler.
If you're a registered user you'll receive PRO license key free of charge.
PRO version is in so many ways better than the version you have.
See the migration document for more details:
migration_mikroBasic_PRO_PIC.rar
(44.14 KiB) Downloaded 216 times
Also, we have greatly improved our USB-HID Library in our PRO compilers.

We strongly encourage users to switch to PRO version because non-PRO version is an ancestor of PRO compiler,
which is no longer being developed. Every new feature, improvement and bug fix will only affect new versions of PRO compilers.
Therefore, even if you have come across some compiler bug in older compilers, we won't be able to fix it, nor help you, because that's just natural order of things.

P.S.
If using mikroBasic compiler, please don't post to mikroPascal forum.

Best regards
Slavisa
Best regards
Slavisa

Post Reply

Return to “mikroPascal FAQ”