Problem with compiler 5.7

General discussion on mikroBasic PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
frasca
Posts: 21
Joined: 02 Feb 2011 10:32

Problem with compiler 5.7

#1 Post by frasca » 02 Jul 2012 17:34

now i can compile my project without errors but it dont work!!!
I can not understand, but it seems that the ASM files are different
for example the basic statment LATG12_bit=0
with compiler 5.6 is translate to BCLR LATG12_bit, #12
with compiler 5.7 is translate to BCLR LATG12_bit, BitPos(LATG12_bit+0)
Is it correct?
my project seems to move regarding the comunication on UART but the internal harware
of my pic seem not run!?!

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Problem with compiler 5.7

#2 Post by filip » 03 Jul 2012 08:37

Hi,

Yes, there were some changes regarding bit usage.
Could you please attach here the project that you are having trouble with ?

Regards,
Filip.

frasca
Posts: 21
Joined: 02 Feb 2011 10:32

Re: Problem with compiler 5.7

#3 Post by frasca » 03 Jul 2012 10:56

My project is very complex, it uses UART, I2C, ADC, DMA, IC, OC,INTERRUPT, TIMERS etc.
Unfortunately I'm not allowed to publish my source files for reasons of privacy :(
My project is working perfectly with compiler 5.60,
but compiled with version 5.70 does not work.
I try to compare the asm output files and i found some differences.
In Basic I write:
IC2IF_bit=0
the compiler 5.60 translates BCLR IC2IF_bit, #5
the compiler 5.70 translates BCLR IC2IF_bit, BitPos(IC2IF_bit+0)
I do not know the assembler, but if the instruction BCLR need to have a register and a bit position,
I do not think that the two translations are equivalent!
There are also other variations on the use of registers....
I have been authorized to attach as an example two asm files obtained by two different compilers :D
Can I install both the two compilers? I spend a lot of time to continue to install and uninstall the two compilers
Attachments
exampleasm.zip
(23.28 KiB) Downloaded 167 times

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Problem with compiler 5.7

#4 Post by filip » 04 Jul 2012 07:33

Hi,

I have also received your ticket on our Support Desk so we will continue there.

Regards,
Filip.

Post Reply

Return to “mikroBasic PRO for dsPIC30/33 and PIC24 General”